@fased/fased 0.1.48 → 0.1.51
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/auth-health.js +11 -5
- package/dist/agents/current-model-catalog.js +45 -0
- package/dist/agents/model-catalog-source.js +28 -3
- package/dist/agents/provider-id.js +1 -1
- package/dist/brand.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/cli/lightweight/gateway-runtime-probe.js +50 -0
- package/dist/cli/update-cli/update-command.js +120 -0
- package/dist/commands/doctor-state-integrity.js +25 -2
- package/dist/config/sessions/transcript.js +30 -16
- package/dist/config/sessions.js +2 -2
- package/dist/control-ui/assets/{app-CHqTx3P_.js → app-wJm5kuje.js} +1274 -1259
- package/dist/control-ui/assets/{chat-model-ref-BbrdMKjQ.js → chat-model-ref-Cs2TTOtF.js} +2 -2
- package/dist/control-ui/assets/{config-FFZLTSLS.js → config-CU5Zi8Dh.js} +2 -2
- package/dist/control-ui/assets/{index-CFHfNlLv.js → index-vTDTf5Zv.js} +3 -3
- package/dist/control-ui/assets/{mining-D_VAMFMY.js → mining-BdhMn18r.js} +3 -3
- package/dist/control-ui/assets/{providers-DqFL6WrJ.js → providers-C0DEXi8e.js} +14 -3
- package/dist/control-ui/index.html +1 -1
- package/dist/gateway/probe-payload.js +14 -0
- package/dist/gateway/probe.js +8 -4
- package/dist/gateway/protocol/schema/agents-models-skills.js +1 -0
- package/dist/gateway/protocol/schema/frames.js +5 -0
- package/dist/gateway/protocol/schema/snapshot.js +1 -0
- package/dist/gateway/server/ws-connection/message-handler.js +2 -1
- package/dist/gateway/server-http-lazy.js +2 -4
- package/dist/gateway/server-http.js +3 -4
- package/dist/gateway/server-methods/chat.js +4 -29
- package/dist/gateway/server-methods/models.js +3 -2
- package/dist/infra/system-presence.js +4 -2
- package/dist/light-update-precheck.js +1 -1
- package/dist/light-update-status.js +1 -1
- package/dist/memory/inventory.js +19 -0
- package/dist/plugin-sdk/{accounts-DI5226U8.js → accounts-BfdIB9Ud.js} +1 -1
- package/dist/plugin-sdk/{actions-CEj4gOU2.js → actions-DHN_x97P.js} +2 -2
- package/dist/plugin-sdk/{active-listener-Ss4UKXZb.js → active-listener-CIP_Ht8d.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-Cu4alGjb.js → audio-preflight-CKGhXtyV.js} +26 -26
- package/dist/plugin-sdk/{audit-BTskqjJ_.js → audit-Cmg38KPG.js} +1 -1
- package/dist/plugin-sdk/{channel-access-B1KciKmw.js → channel-access-JHDguu4T.js} +1 -1
- package/dist/plugin-sdk/{channel-access-configure-Y91FLOJc.js → channel-access-configure-B8mwKp-Z.js} +1 -1
- package/dist/plugin-sdk/channel-plugin-common.d.ts +2 -2
- package/dist/plugin-sdk/channel-plugin-common.js +4 -4
- package/dist/plugin-sdk/{chunk-items-Q8HhMuSe.js → chunk-items-iKdlZyWZ.js} +1 -1
- package/dist/plugin-sdk/{chunk-CSUjIQSx.js → chunk-oJRyTNTL.js} +1 -1
- package/dist/plugin-sdk/command-status.js +26 -26
- package/dist/plugin-sdk/{commands-registry-DJ0pfCcY.js → commands-registry-Cjo7OjIf.js} +2 -2
- package/dist/plugin-sdk/{common-Cjm8psuW.js → common-Dx4sUa9f.js} +1 -1
- package/dist/plugin-sdk/{config-DutIeFge.js → config-DdS0zHiU.js} +80 -4
- package/dist/plugin-sdk/{config-schema-Cg6PYSHR.js → config-schema-BJQEjMPz.js} +2090 -523
- package/dist/plugin-sdk/device-pair.d.ts +1 -1
- package/dist/plugin-sdk/discord.d.ts +4 -4
- package/dist/plugin-sdk/discord.js +19 -19
- package/dist/plugin-sdk/{handle-action-Dp2741iu.js → handle-action-wR0x9b0c.js} +13 -13
- package/dist/plugin-sdk/{helpers-BCZ9d3fl.js → helpers-DkauqZNP.js} +1 -1
- package/dist/plugin-sdk/{image-ops-B-QR_M9Z.js → image-ops-DmSjpAeh.js} +1 -1
- package/dist/plugin-sdk/index.d.ts +17 -17
- package/dist/plugin-sdk/index.js +28 -28
- package/dist/plugin-sdk/{login-BFvQxf9o.js → login-DB9LIbi8.js} +3 -3
- package/dist/plugin-sdk/{login-qr-CERTe_nD.js → login-qr-CDhMa-c7.js} +3 -3
- package/dist/plugin-sdk/{manager-Dhq3SXpO.js → manager-DGZsMQWR.js} +2 -2
- package/dist/plugin-sdk/{markdown-tables-B1Tx7c77.js → markdown-tables-BX7JXDUV.js} +1 -1
- package/dist/plugin-sdk/{media-BwsqooWC.js → media-DyzsScOp.js} +2 -2
- package/dist/plugin-sdk/{monitor-BYzN5Qr4.js → monitor-B91PZ2mD.js} +31 -31
- package/dist/plugin-sdk/{monitor-CJiacqtR.js → monitor-BH9rTJFq.js} +30 -30
- package/dist/plugin-sdk/{openresponses-http-VLSSqCZZ.js → openresponses-http-CmBLZ9bH.js} +26 -26
- package/dist/plugin-sdk/{optional-runtime-dependency-BEBP4VFJ.js → optional-runtime-dependency-DaMkPVe_.js} +1 -1
- package/dist/plugin-sdk/{outbound-BqWgaC5M.js → outbound-X-m2mBZn.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-L1q40kiu.js → outbound-attachment-M0NCUSG-.js} +2 -2
- package/dist/plugin-sdk/{pairing-message-DWXHX-jt.d.ts → pairing-message-BaQiXKLE.d.ts} +1 -1
- package/dist/plugin-sdk/{pairing-message-CZBahREg.js → pairing-message-hnmpJlW2.js} +1 -1
- package/dist/plugin-sdk/{pairing-store-D7I1Qmiw.js → pairing-store-DyghUm9G.js} +2 -2
- package/dist/plugin-sdk/{pi-model-discovery-C5klknQZ.js → pi-model-discovery-ReorOh7W.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-DIEMhCZ5.js → pi-model-discovery-runtime-C-CHZo03.js} +2 -2
- package/dist/plugin-sdk/provider-web-search-config-contract.d.ts +1 -1
- package/dist/plugin-sdk/{pw-ai-Bv-q25gY.js → pw-ai-D_gli3_r.js} +3 -3
- package/dist/plugin-sdk/{replies-Bd9ktEkq.js → replies-Djyehmcu.js} +2 -2
- package/dist/plugin-sdk/{resolve-outbound-target-CCIyBb5H.js → resolve-outbound-target-Chznq8rS.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-B7vZ3nKp.js → resolve-route-Ce08Fx-G.js} +1 -1
- package/dist/plugin-sdk/{retry-policy-ChC3G4lv.js → retry-policy-eS25atAo.js} +1 -1
- package/dist/plugin-sdk/{runtime-BLknHFGz.js → runtime-Cv3gX3Wc.js} +31 -18
- package/dist/plugin-sdk/{runtime-dependency-C5rJfC0u.js → runtime-dependency-p_iKbESf.js} +2 -2
- package/dist/plugin-sdk/sat-runtime.d.ts +2 -2
- package/dist/plugin-sdk/sat-runtime.js +5 -5
- package/dist/plugin-sdk/{send-Bd3Z-jAd.js → send-B3RAELvw.js} +6 -6
- package/dist/plugin-sdk/{send-Bmtz9ICm.js → send-BuPGxx3-.js} +8 -8
- package/dist/plugin-sdk/{send-mkyZzhCO.js → send-C-jaxZJG.js} +5 -5
- package/dist/plugin-sdk/{send-CUGEhiUa.js → send-CSob7dn9.js} +6 -6
- package/dist/plugin-sdk/{send-CMoWt-EX.js → send-CsLJsIvv.js} +7 -7
- package/dist/plugin-sdk/{session-D2zmelOL.js → session-DKJGakm1.js} +2 -2
- package/dist/plugin-sdk/{skill-commands-BybEjJ1_.js → skill-commands-BqpZG5nW.js} +2 -2
- package/dist/plugin-sdk/{slack-DogXvGG3.js → slack-CQqN9uBH.js} +38 -38
- package/dist/plugin-sdk/{slack-actions-uXb55QWW.js → slack-actions-DlbVH5SS.js} +11 -11
- package/dist/plugin-sdk/slack.d.ts +4 -4
- package/dist/plugin-sdk/slack.js +9 -9
- package/dist/plugin-sdk/{sticker-cache-BuPw7fTf.js → sticker-cache-CDyt2ZMh.js} +3 -3
- package/dist/plugin-sdk/{tables-CVDOT5dX.js → tables-Cij4iAXw.js} +1 -1
- package/dist/plugin-sdk/{targets-DskkhJAp.js → targets-VrYeAmeT.js} +1 -1
- package/dist/plugin-sdk/{telegram-actions-_KQPbjpI.js → telegram-actions-ZwUBOkwa.js} +29 -29
- package/dist/plugin-sdk/telegram.d.ts +4 -4
- package/dist/plugin-sdk/telegram.js +8 -8
- package/dist/plugin-sdk/{thread-bindings.lifecycle-CrhQXYEU.js → thread-bindings.lifecycle-BWIzwpPM.js} +3 -3
- package/dist/plugin-sdk/{thread-bindings.state-ssxdG7xV.js → thread-bindings.state-CpAQrGco.js} +2 -2
- package/dist/plugin-sdk/{tmp-fased-dir-Be1wBhVz.d.ts → tmp-fased-dir-DLba1ePP.d.ts} +1 -1
- package/dist/plugin-sdk/{types-CXLEOrJX.d.ts → types-CKR2Lvsa.d.ts} +1 -1
- package/dist/plugin-sdk/{types-CJGVZX6j.d.ts → types-NR-f-rw-.d.ts} +3 -3
- package/dist/plugin-sdk/{wallet-status-CQI89c_6.js → wallet-status-ClmXigGN.js} +10 -3
- package/dist/plugin-sdk/{web-C8DwA0eO.js → web-BK2j9z6c.js} +31 -31
- package/dist/plugin-sdk/{whatsapp-actions-DfvM-mlZ.js → whatsapp-actions-CaenMy79.js} +13 -13
- package/dist/plugin-sdk/{whatsapp-heartbeat-DyJasLDB.js → whatsapp-heartbeat-Cr9K5Sil.js} +2 -2
- package/dist/plugin-sdk/whatsapp.d.ts +11 -11
- package/dist/plugin-sdk/whatsapp.js +12 -12
- package/dist/plugin-sdk/{wsl-JwmI6Zu8.js → wsl-D_I-iL4U.js} +3 -3
- package/dist/plugin-sdk/{zod-schema.providers-core-BE_5DNhj.d.ts → zod-schema.providers-core-CIzCjXH9.d.ts} +71 -71
- package/dist/plugins/status-cache.js +1 -1
- package/dist/providers/refresh.js +1 -1
- package/dist/providers/refreshed-model-capabilities.js +1935 -406
- package/dist/providers/registry.js +14 -3
- package/dist/version.js +11 -1
- 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 +18 -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 +18 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +18 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/sat-mining/index.ts +121 -12
- package/extensions/sat-mining/package.json +1 -1
- package/extensions/sat-mining/src/runtime.ts +9 -3
- 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 +18 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +18 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +18 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +18 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/scripts/start-managed.sh +35 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as clearHistoryEntriesIfEnabled, G as logTypingFailure, Gn as textToSpeech, Gt as createMediaAttachmentCache, Ht as enqueueSystemEvent, I as createTypingCallbacks, Ir as resolveCommandAuthorizedFromAuthorizers, K as buildPairingReply, Kn as parseTtsDirectives, Kt as normalizeMediaAttachments, Lr as resolveControlCommandGate, Mr as readStoreAllowFromForDmPolicy, Pr as resolveDmGroupAccessWithLists, R as resolveMentionGatingWithBypass, U as logAckFailure, Un as resolveAgentAvatar, Vt as formatDurationSeconds, W as logInboundDrop, Wn as resolveTtsConfig, Wt as buildProviderRegistry, Yt as runCapability, Z as buildPendingHistoryContextFromMap, _n as stripReasoningTagsFromText, _t as EmbeddedBlockChunker, at as shouldAckReaction, bt as buildModelsProviderData, c as addAllowlistUserEntriesFromConfigEntry, ct as dispatchReplyWithDispatcher, dt as resolveInboundDebounceMs, f as patchAllowlistUsersInConfigEntries, fn as buildMentionRegexes, ft as formatInboundEnvelope, gt as createReplyDispatcherWithTyping, ht as dispatchInboundMessage, j as agentCommand, l as buildAllowlistResolutionSummary, ln as hasControlCommand, mt as resolveEnvelopeFormatOptions, nt as recordPendingHistoryEntryIfEnabled, p as summarizeMapping, pn as matchesMentionWithExplicit, ri as formatAllowlistMatchMeta, rt as recordInboundSession, s as buildMediaPayload, st as dispatchReplyWithBufferedBlockDispatcher, u as canonicalizeAllowlistWithResolvedIds, ut as createInboundDebouncer, x as isDangerousNameMatchingEnabled, yt as resolveStoredModelOverride } 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 clearHistoryEntriesIfEnabled, G as logTypingFailure, Gn as textToSpeech, Gt as createMediaAttachmentCache, Ht as enqueueSystemEvent, I as createTypingCallbacks, Ir as resolveCommandAuthorizedFromAuthorizers, K as buildPairingReply, Kn as parseTtsDirectives, Kt as normalizeMediaAttachments, Lr as resolveControlCommandGate, Mr as readStoreAllowFromForDmPolicy, Pr as resolveDmGroupAccessWithLists, R as resolveMentionGatingWithBypass, U as logAckFailure, Un as resolveAgentAvatar, Vt as formatDurationSeconds, W as logInboundDrop, Wn as resolveTtsConfig, Wt as buildProviderRegistry, Yt as runCapability, Z as buildPendingHistoryContextFromMap, _n as stripReasoningTagsFromText, _t as EmbeddedBlockChunker, at as shouldAckReaction, bt as buildModelsProviderData, c as addAllowlistUserEntriesFromConfigEntry, ct as dispatchReplyWithDispatcher, dt as resolveInboundDebounceMs, f as patchAllowlistUsersInConfigEntries, fn as buildMentionRegexes, ft as formatInboundEnvelope, gt as createReplyDispatcherWithTyping, ht as dispatchInboundMessage, j as agentCommand, l as buildAllowlistResolutionSummary, ln as hasControlCommand, mt as resolveEnvelopeFormatOptions, nt as recordPendingHistoryEntryIfEnabled, p as summarizeMapping, pn as matchesMentionWithExplicit, ri as formatAllowlistMatchMeta, rt as recordInboundSession, s as buildMediaPayload, st as dispatchReplyWithBufferedBlockDispatcher, u as canonicalizeAllowlistWithResolvedIds, ut as createInboundDebouncer, x as isDangerousNameMatchingEnabled, yt as resolveStoredModelOverride } from "./config-schema-BJQEjMPz.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-Cv3gX3Wc.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 { Fn as withFileLock, Kt as normalizeProviderId, Mt as resolveDiscordPreviewStreamMode,
|
|
7
|
+
import { Fn as withFileLock, Kt as normalizeProviderId, Mt as resolveDiscordPreviewStreamMode, mr as formatErrorMessage, n as loadConfig } from "./config-DdS0zHiU.js";
|
|
8
8
|
import { a as resolveAgentDir } from "./agent-scope-BbgPlhtw.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-BfdIB9Ud.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-BYeKk0Sy.js";
|
|
18
18
|
import { i as compileSafeRegex } from "./redact-Bm8vu_ju.js";
|
|
19
19
|
import "./github-copilot-token-CUK__1s1.js";
|
|
@@ -22,11 +22,11 @@ import { l as resolveStorePath } from "./paths-CTZ2RS_E.js";
|
|
|
22
22
|
import "./ip-C70a-YlD.js";
|
|
23
23
|
import "./ssrf-BZG8Ztod.js";
|
|
24
24
|
import "./fetch-guard-BuYrl6q2.js";
|
|
25
|
-
import "./send-
|
|
26
|
-
import { A as resolveDefaultGroupPolicy, M as warnMissingProviderGroupPolicyFallbackOnce, O as GROUP_POLICY_BLOCKED_LABEL, j as resolveOpenProviderRuntimeGroupPolicy } from "./helpers-
|
|
27
|
-
import "./wsl-
|
|
28
|
-
import { a as upsertChannelPairingRequest, o as readJsonFileWithFallback, s as writeJsonFileAtomically } from "./pairing-store-
|
|
29
|
-
import { c as resolveChunkMode, l as resolveTextChunkLimit } from "./chunk-
|
|
25
|
+
import "./send-CSob7dn9.js";
|
|
26
|
+
import { A as resolveDefaultGroupPolicy, M as warnMissingProviderGroupPolicyFallbackOnce, O as GROUP_POLICY_BLOCKED_LABEL, j as resolveOpenProviderRuntimeGroupPolicy } from "./helpers-DkauqZNP.js";
|
|
27
|
+
import "./wsl-D_I-iL4U.js";
|
|
28
|
+
import { a as upsertChannelPairingRequest, o as readJsonFileWithFallback, s as writeJsonFileAtomically } from "./pairing-store-DyghUm9G.js";
|
|
29
|
+
import { c as resolveChunkMode, l as resolveTextChunkLimit } from "./chunk-oJRyTNTL.js";
|
|
30
30
|
import "./tailscale-status-ClsquRGs.js";
|
|
31
31
|
import { a as resolveAckReaction, c as resolveHumanDelayConfig, n as createReplyPrefixOptions } from "./reply-prefix-Bqzm6DC1.js";
|
|
32
32
|
import "./tokens-BvtlOzVP.js";
|
|
@@ -34,43 +34,43 @@ import "./device-pairing-D2Yq-_U6.js";
|
|
|
34
34
|
import "./pairing-token-N_6Jbt1L.js";
|
|
35
35
|
import "./diagnostic-Dfn1iERm.js";
|
|
36
36
|
import "./diagnostic-session-state-HO94DMou.js";
|
|
37
|
-
import "./optional-runtime-dependency-
|
|
38
|
-
import "./image-ops-
|
|
39
|
-
import { mt as GatewayClient, st as buildGatewayConnectionDetails } from "./wallet-status-
|
|
40
|
-
import "./pi-model-discovery-
|
|
41
|
-
import "./runtime-dependency-
|
|
37
|
+
import "./optional-runtime-dependency-DaMkPVe_.js";
|
|
38
|
+
import "./image-ops-DmSjpAeh.js";
|
|
39
|
+
import { mt as GatewayClient, st as buildGatewayConnectionDetails } from "./wallet-status-ClmXigGN.js";
|
|
40
|
+
import "./pi-model-discovery-ReorOh7W.js";
|
|
41
|
+
import "./runtime-dependency-p_iKbESf.js";
|
|
42
42
|
import "./ws-CocpWGhl.js";
|
|
43
43
|
import "./path-alias-guards-Dg3gU-MA.js";
|
|
44
44
|
import "./fs-safe-BG-VzVkL.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-BX7JXDUV.js";
|
|
46
|
+
import { a as fetchRemoteMedia, n as loadWebMedia, u as getAgentScopedMediaLocalRoots } from "./media-DyzsScOp.js";
|
|
47
|
+
import "./send-B3RAELvw.js";
|
|
48
|
+
import { a as saveMediaBuffer } from "./outbound-attachment-M0NCUSG-.js";
|
|
49
49
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-Cu-ahkie.js";
|
|
50
|
-
import { N as formatThreadBindingDurationLabel, u as isRecentlyUnboundThreadWebhookMessage, z as getSessionBindingService } from "./thread-bindings.state-
|
|
50
|
+
import { N as formatThreadBindingDurationLabel, u as isRecentlyUnboundThreadWebhookMessage, z as getSessionBindingService } from "./thread-bindings.state-CpAQrGco.js";
|
|
51
51
|
import "./memory-search-C3C0bD2H.js";
|
|
52
|
-
import "./manager-
|
|
52
|
+
import "./manager-DGZsMQWR.js";
|
|
53
53
|
import "./query-expansion-Zr9qQixm.js";
|
|
54
|
-
import "./common-
|
|
55
|
-
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-
|
|
56
|
-
import { n as listSkillCommandsForAgents } from "./skill-commands-
|
|
54
|
+
import "./common-Dx4sUa9f.js";
|
|
55
|
+
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-Cjo7OjIf.js";
|
|
56
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-BqpZG5nW.js";
|
|
57
57
|
import { t as finalizeInboundContext } from "./inbound-context-BFnIdcqI.js";
|
|
58
58
|
import "./directory-live-DatqU-eS.js";
|
|
59
|
-
import "./targets-
|
|
59
|
+
import "./targets-VrYeAmeT.js";
|
|
60
60
|
import "./sandbox-paths-lj7_EVuA.js";
|
|
61
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
61
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-Ce08Fx-G.js";
|
|
62
62
|
import "./render-Bwu_WxwA.js";
|
|
63
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
63
|
+
import { t as convertMarkdownTables } from "./tables-Cij4iAXw.js";
|
|
64
64
|
import { n as recordChannelActivity } from "./channel-activity-Cg1xRoc2.js";
|
|
65
65
|
import { t as withTimeout } from "./with-timeout-BYrRAYFV.js";
|
|
66
66
|
import "./shared-clhhbWN3.js";
|
|
67
|
-
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-
|
|
68
|
-
import { t as createDiscordRetryRunner } from "./retry-policy-
|
|
69
|
-
import { o as createNoopThreadBindingManager, r as reconcileAcpThreadBindingsOnStartup, s as createThreadBindingManager } from "./thread-bindings.lifecycle-
|
|
67
|
+
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-BuPGxx3-.js";
|
|
68
|
+
import { t as createDiscordRetryRunner } from "./retry-policy-eS25atAo.js";
|
|
69
|
+
import { o as createNoopThreadBindingManager, r as reconcileAcpThreadBindingsOnStartup, s as createThreadBindingManager } from "./thread-bindings.lifecycle-BWIzwpPM.js";
|
|
70
70
|
import { a as setPresence, n as registerGateway, r as unregisterGateway } from "./gateway-registry-DFsoY6C0.js";
|
|
71
71
|
import { t as createReplyReferencePlanner } from "./reply-reference-BkbK_DWT.js";
|
|
72
72
|
import { i as createStatusReactionController, r as DEFAULT_TIMING, t as createFinalizableDraftLifecycle } from "./draft-stream-controls-D4Tb_iS_.js";
|
|
73
|
-
import { n as buildUntrustedChannelMetadata, t as chunkItems } from "./chunk-items-
|
|
73
|
+
import { n as buildUntrustedChannelMetadata, t as chunkItems } from "./chunk-items-iKdlZyWZ.js";
|
|
74
74
|
import { t as fetchDiscordApplicationId } from "./probe-Dlk0Jxpw.js";
|
|
75
75
|
import { t as DiscordUiContainer } from "./ui-e020ouhJ.js";
|
|
76
76
|
import "./guilds-BeT3iHHJ.js";
|
|
@@ -1401,7 +1401,7 @@ async function preflightDiscordMessage(params) {
|
|
|
1401
1401
|
let preflightTranscript;
|
|
1402
1402
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
1403
1403
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
1404
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
1404
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-CKGhXtyV.js");
|
|
1405
1405
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
1406
1406
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
1407
1407
|
ctx: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { $ as clearHistoryEntriesIfEnabled, Bt as formatDurationPrecise, Ct as buildProviderKeyboard, Dt as buildCommandsPaginationKeyboard, Et as parseModelCallbackData, G as logTypingFailure, Ht as enqueueSystemEvent, I as createTypingCallbacks, In as readJsonBodyWithLimit, Ir as resolveCommandAuthorizedFromAuthorizers, J as sleepWithAbort, K as buildPairingReply, Lr as resolveControlCommandGate, M as findModelInCatalog, N as loadModelCatalog, P as modelSupportsVision, R as resolveMentionGatingWithBypass, Rt as buildCommandsMessagePaginated, St as buildModelsKeyboard, Tt as getModelsPageSize, U as logAckFailure, Ut as resolveChannelConfigWrites, W as logInboundDrop, Y as DEFAULT_GROUP_HISTORY_LIMIT, Z as buildPendingHistoryContextFromMap, Zt as registerUnhandledRejectionHandler, _n as stripReasoningTagsFromText, at as shouldAckReaction, bt as buildModelsProviderData, dn as isAbortRequestText, dt as resolveInboundDebounceMs, fn as buildMentionRegexes, ft as formatInboundEnvelope, gn as formatReasoningMessage, it as removeAckReactionAfterReply, ln as hasControlCommand, mt as resolveEnvelopeFormatOptions, nr as resolveTelegramInlineButtonsScope, nt as recordPendingHistoryEntryIfEnabled, or as createDedupeCache, pn as matchesMentionWithExplicit, q as computeBackoff, rr as waitForAbortSignal, rt as recordInboundSession, st as dispatchReplyWithBufferedBlockDispatcher, ut as createInboundDebouncer, vn as findCodeRegions, wt as calculateTotalPages, xt as formatModelsAvailableHeader, yn as isInsideCode, yt as resolveStoredModelOverride } from "./config-schema-
|
|
2
|
-
import { C as recordSessionMetaFromInbound, Gn as getPluginCommandSpecs, S as readSessionUpdatedAt, Wn as executePluginCommand, _n as resolveChannelGroupRequireMention, gn as resolveChannelGroupPolicy, in as resolveTelegramAccount, qn as matchPluginCommand, x as loadSessionStore } from "./runtime-
|
|
1
|
+
import { $ as clearHistoryEntriesIfEnabled, Bt as formatDurationPrecise, Ct as buildProviderKeyboard, Dt as buildCommandsPaginationKeyboard, Et as parseModelCallbackData, G as logTypingFailure, Ht as enqueueSystemEvent, I as createTypingCallbacks, In as readJsonBodyWithLimit, Ir as resolveCommandAuthorizedFromAuthorizers, J as sleepWithAbort, K as buildPairingReply, Lr as resolveControlCommandGate, M as findModelInCatalog, N as loadModelCatalog, P as modelSupportsVision, R as resolveMentionGatingWithBypass, Rt as buildCommandsMessagePaginated, St as buildModelsKeyboard, Tt as getModelsPageSize, U as logAckFailure, Ut as resolveChannelConfigWrites, W as logInboundDrop, Y as DEFAULT_GROUP_HISTORY_LIMIT, Z as buildPendingHistoryContextFromMap, Zt as registerUnhandledRejectionHandler, _n as stripReasoningTagsFromText, at as shouldAckReaction, bt as buildModelsProviderData, dn as isAbortRequestText, dt as resolveInboundDebounceMs, fn as buildMentionRegexes, ft as formatInboundEnvelope, gn as formatReasoningMessage, it as removeAckReactionAfterReply, ln as hasControlCommand, mt as resolveEnvelopeFormatOptions, nr as resolveTelegramInlineButtonsScope, nt as recordPendingHistoryEntryIfEnabled, or as createDedupeCache, pn as matchesMentionWithExplicit, q as computeBackoff, rr as waitForAbortSignal, rt as recordInboundSession, st as dispatchReplyWithBufferedBlockDispatcher, ut as createInboundDebouncer, vn as findCodeRegions, wt as calculateTotalPages, xt as formatModelsAvailableHeader, yn as isInsideCode, yt as resolveStoredModelOverride } from "./config-schema-BJQEjMPz.js";
|
|
2
|
+
import { C as recordSessionMetaFromInbound, Gn as getPluginCommandSpecs, S as readSessionUpdatedAt, Wn as executePluginCommand, _n as resolveChannelGroupRequireMention, gn as resolveChannelGroupPolicy, in as resolveTelegramAccount, qn as matchPluginCommand, x as loadSessionStore } from "./runtime-Cv3gX3Wc.js";
|
|
3
3
|
import { i as defaultRuntime, 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 } from "./globals-B_jjtAje.js";
|
|
5
5
|
import { s as resolveStateDir } from "./paths-BEmvSyOV.js";
|
|
6
6
|
import "./utils-CYk9EKoq.js";
|
|
7
|
-
import { Lt as resolveAgentMaxConcurrent, Yt as resolveDefaultModelForAgent, _ as TELEGRAM_COMMAND_NAME_PATTERN,
|
|
7
|
+
import { Lt as resolveAgentMaxConcurrent, Yt as resolveDefaultModelForAgent, _ as TELEGRAM_COMMAND_NAME_PATTERN, hr as formatUncaughtError, mr as formatErrorMessage, n as loadConfig, s as writeConfigFile, v as normalizeTelegramCommandName, y as resolveTelegramCustomCommands } from "./config-DdS0zHiU.js";
|
|
8
8
|
import { a as resolveAgentDir, u as resolveDefaultAgentId } from "./agent-scope-BbgPlhtw.js";
|
|
9
9
|
import { p as normalizeAccountId$1, u as resolveThreadSessionKeys } from "./session-key-HSJ2KQTc.js";
|
|
10
10
|
import "./accounts-RHZyaB73.js";
|
|
11
11
|
import "./accounts-CuqIKU8X.js";
|
|
12
12
|
import "./logger-BbFvCoKk.js";
|
|
13
13
|
import "./exec-DQ8j4Fm3.js";
|
|
14
|
-
import "./accounts-
|
|
14
|
+
import "./accounts-BfdIB9Ud.js";
|
|
15
15
|
import "./allow-list-BYeKk0Sy.js";
|
|
16
16
|
import "./redact-Bm8vu_ju.js";
|
|
17
17
|
import "./github-copilot-token-CUK__1s1.js";
|
|
@@ -20,11 +20,11 @@ import { l as resolveStorePath } from "./paths-CTZ2RS_E.js";
|
|
|
20
20
|
import "./ip-C70a-YlD.js";
|
|
21
21
|
import "./ssrf-BZG8Ztod.js";
|
|
22
22
|
import "./fetch-guard-BuYrl6q2.js";
|
|
23
|
-
import "./send-
|
|
24
|
-
import { j as resolveOpenProviderRuntimeGroupPolicy } from "./helpers-
|
|
25
|
-
import { C as isSenderAllowed, D as formatLocationText, E as resolveSenderAllowMatch, O as toLocationContext, P as firstDefined, S as resolveTelegramThreadSpec, T as normalizeDmAllowFromWithStore, _ as resolveTelegramForumThreadId, a as buildSenderLabel, b as resolveTelegramReplyId, c as buildTelegramGroupPeerId, d as buildTypingThreadParams, f as describeReplyTarget, g as normalizeForwardedContext, h as hasBotMention, i as buildGroupLabel, l as buildTelegramParentPeer, m as extractTelegramLocation, o as buildSenderName, p as expandTextLinks, s as buildTelegramGroupFrom, u as buildTelegramThreadParams, v as resolveTelegramGroupAllowFromContext, w as normalizeAllowFrom, x as resolveTelegramStreamMode, y as resolveTelegramMediaPlaceholder } from "./wsl-
|
|
26
|
-
import { a as upsertChannelPairingRequest, n as readChannelAllowFromStore } from "./pairing-store-
|
|
27
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
23
|
+
import "./send-CSob7dn9.js";
|
|
24
|
+
import { j as resolveOpenProviderRuntimeGroupPolicy } from "./helpers-DkauqZNP.js";
|
|
25
|
+
import { C as isSenderAllowed, D as formatLocationText, E as resolveSenderAllowMatch, O as toLocationContext, P as firstDefined, S as resolveTelegramThreadSpec, T as normalizeDmAllowFromWithStore, _ as resolveTelegramForumThreadId, a as buildSenderLabel, b as resolveTelegramReplyId, c as buildTelegramGroupPeerId, d as buildTypingThreadParams, f as describeReplyTarget, g as normalizeForwardedContext, h as hasBotMention, i as buildGroupLabel, l as buildTelegramParentPeer, m as extractTelegramLocation, o as buildSenderName, p as expandTextLinks, s as buildTelegramGroupFrom, u as buildTelegramThreadParams, v as resolveTelegramGroupAllowFromContext, w as normalizeAllowFrom, x as resolveTelegramStreamMode, y as resolveTelegramMediaPlaceholder } from "./wsl-D_I-iL4U.js";
|
|
26
|
+
import { a as upsertChannelPairingRequest, n as readChannelAllowFromStore } from "./pairing-store-DyghUm9G.js";
|
|
27
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-oJRyTNTL.js";
|
|
28
28
|
import "./tailscale-status-ClsquRGs.js";
|
|
29
29
|
import { a as resolveAckReaction, n as createReplyPrefixOptions } from "./reply-prefix-Bqzm6DC1.js";
|
|
30
30
|
import "./tokens-BvtlOzVP.js";
|
|
@@ -32,39 +32,39 @@ import "./device-pairing-D2Yq-_U6.js";
|
|
|
32
32
|
import "./pairing-token-N_6Jbt1L.js";
|
|
33
33
|
import { c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, l as logWebhookProcessed, m as isDiagnosticsEnabled, u as logWebhookReceived } from "./diagnostic-Dfn1iERm.js";
|
|
34
34
|
import "./diagnostic-session-state-HO94DMou.js";
|
|
35
|
-
import "./optional-runtime-dependency-
|
|
36
|
-
import { p as isGifMedia, v as mediaKindFromMime } from "./image-ops-
|
|
37
|
-
import "./wallet-status-
|
|
38
|
-
import "./pi-model-discovery-
|
|
39
|
-
import "./runtime-dependency-
|
|
35
|
+
import "./optional-runtime-dependency-DaMkPVe_.js";
|
|
36
|
+
import { p as isGifMedia, v as mediaKindFromMime } from "./image-ops-DmSjpAeh.js";
|
|
37
|
+
import "./wallet-status-ClmXigGN.js";
|
|
38
|
+
import "./pi-model-discovery-ReorOh7W.js";
|
|
39
|
+
import "./runtime-dependency-p_iKbESf.js";
|
|
40
40
|
import "./ws-CocpWGhl.js";
|
|
41
41
|
import "./path-alias-guards-Dg3gU-MA.js";
|
|
42
42
|
import "./fs-safe-BG-VzVkL.js";
|
|
43
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
44
|
-
import { a as fetchRemoteMedia, i as MediaFetchError, n as loadWebMedia, u as getAgentScopedMediaLocalRoots } from "./media-
|
|
45
|
-
import "./send-
|
|
46
|
-
import { a as saveMediaBuffer } from "./outbound-attachment-
|
|
43
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BX7JXDUV.js";
|
|
44
|
+
import { a as fetchRemoteMedia, i as MediaFetchError, n as loadWebMedia, u as getAgentScopedMediaLocalRoots } from "./media-DyzsScOp.js";
|
|
45
|
+
import "./send-B3RAELvw.js";
|
|
46
|
+
import { a as saveMediaBuffer } from "./outbound-attachment-M0NCUSG-.js";
|
|
47
47
|
import "./fetch-Cu-ahkie.js";
|
|
48
|
-
import "./thread-bindings.state-
|
|
48
|
+
import "./thread-bindings.state-CpAQrGco.js";
|
|
49
49
|
import "./memory-search-C3C0bD2H.js";
|
|
50
|
-
import "./manager-
|
|
50
|
+
import "./manager-DGZsMQWR.js";
|
|
51
51
|
import "./query-expansion-Zr9qQixm.js";
|
|
52
|
-
import "./common-
|
|
53
|
-
import { C as isNativeCommandsExplicitlyDisabled, E as resolveNativeSkillsEnabled, T as resolveNativeCommandsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody } from "./commands-registry-
|
|
54
|
-
import { n as listSkillCommandsForAgents } from "./skill-commands-
|
|
52
|
+
import "./common-Dx4sUa9f.js";
|
|
53
|
+
import { C as isNativeCommandsExplicitlyDisabled, E as resolveNativeSkillsEnabled, T as resolveNativeCommandsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody } from "./commands-registry-Cjo7OjIf.js";
|
|
54
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-BqpZG5nW.js";
|
|
55
55
|
import { t as finalizeInboundContext } from "./inbound-context-BFnIdcqI.js";
|
|
56
56
|
import "./directory-live-DatqU-eS.js";
|
|
57
|
-
import "./targets-
|
|
57
|
+
import "./targets-VrYeAmeT.js";
|
|
58
58
|
import "./sandbox-paths-lj7_EVuA.js";
|
|
59
|
-
import { n as resolveAgentRoute } from "./resolve-route-
|
|
59
|
+
import { n as resolveAgentRoute } from "./resolve-route-Ce08Fx-G.js";
|
|
60
60
|
import "./render-Bwu_WxwA.js";
|
|
61
|
-
import "./tables-
|
|
61
|
+
import "./tables-Cij4iAXw.js";
|
|
62
62
|
import { n as recordChannelActivity } from "./channel-activity-Cg1xRoc2.js";
|
|
63
63
|
import "./shared-clhhbWN3.js";
|
|
64
|
-
import "./retry-policy-
|
|
65
|
-
import { _ as splitTelegramCaption, d as isRecoverableTelegramNetworkError, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, p as markdownToTelegramHtml, t as buildInlineKeyboard, u as wasSentByBot, v as withTelegramApiErrorLogging } from "./send-
|
|
64
|
+
import "./retry-policy-eS25atAo.js";
|
|
65
|
+
import { _ as splitTelegramCaption, d as isRecoverableTelegramNetworkError, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, p as markdownToTelegramHtml, t as buildInlineKeyboard, u as wasSentByBot, v as withTelegramApiErrorLogging } from "./send-CsLJsIvv.js";
|
|
66
66
|
import { t as makeProxyFetch } from "./proxy-7xs_rsnV.js";
|
|
67
|
-
import { i as getCachedSticker, n as describeStickerImage, t as cacheSticker } from "./sticker-cache-
|
|
67
|
+
import { i as getCachedSticker, n as describeStickerImage, t as cacheSticker } from "./sticker-cache-CDyt2ZMh.js";
|
|
68
68
|
import { i as createStatusReactionController, n as DEFAULT_EMOJIS, t as createFinalizableDraftLifecycle } from "./draft-stream-controls-D4Tb_iS_.js";
|
|
69
69
|
import path from "node:path";
|
|
70
70
|
import os from "node:os";
|
|
@@ -2048,7 +2048,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
2048
2048
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
2049
2049
|
let preflightTranscript;
|
|
2050
2050
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
2051
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
2051
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-CKGhXtyV.js");
|
|
2052
2052
|
preflightTranscript = await transcribeFirstAudio({
|
|
2053
2053
|
ctx: {
|
|
2054
2054
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { $t as DEFAULT_INPUT_IMAGE_MIMES, A as resolveAssistantStreamDeltaText, An as writeDone, Dn as resolveSessionKey, En as resolveAgentIdForRequest, O as handleGatewayPostJsonEndpoint, On as sendJson, Qt as DEFAULT_INPUT_IMAGE_MAX_BYTES, Tn as createDefaultDeps, an as resolveInputFileLimits, bn as emitAgentEvent, en as DEFAULT_INPUT_MAX_REDIRECTS, in as normalizeMimeList, j as agentCommand, k as buildAgentMessageFromConversationEntries, kn as setSseHeaders, nn as extractFileContentFromSource, rn as extractImageContentFromSource, tn as DEFAULT_INPUT_TIMEOUT_MS, xn as onAgentEvent } from "./config-schema-
|
|
2
|
-
import "./runtime-
|
|
1
|
+
import { $t as DEFAULT_INPUT_IMAGE_MIMES, A as resolveAssistantStreamDeltaText, An as writeDone, Dn as resolveSessionKey, En as resolveAgentIdForRequest, O as handleGatewayPostJsonEndpoint, On as sendJson, Qt as DEFAULT_INPUT_IMAGE_MAX_BYTES, Tn as createDefaultDeps, an as resolveInputFileLimits, bn as emitAgentEvent, en as DEFAULT_INPUT_MAX_REDIRECTS, in as normalizeMimeList, j as agentCommand, k as buildAgentMessageFromConversationEntries, kn as setSseHeaders, nn as extractFileContentFromSource, rn as extractImageContentFromSource, tn as DEFAULT_INPUT_TIMEOUT_MS, xn as onAgentEvent } from "./config-schema-BJQEjMPz.js";
|
|
2
|
+
import "./runtime-Cv3gX3Wc.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-DdS0zHiU.js";
|
|
8
8
|
import "./agent-scope-BbgPlhtw.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-BfdIB9Ud.js";
|
|
14
14
|
import "./allow-list-BYeKk0Sy.js";
|
|
15
15
|
import "./redact-Bm8vu_ju.js";
|
|
16
16
|
import "./github-copilot-token-CUK__1s1.js";
|
|
@@ -19,11 +19,11 @@ import "./paths-CTZ2RS_E.js";
|
|
|
19
19
|
import "./ip-C70a-YlD.js";
|
|
20
20
|
import "./ssrf-BZG8Ztod.js";
|
|
21
21
|
import "./fetch-guard-BuYrl6q2.js";
|
|
22
|
-
import "./send-
|
|
23
|
-
import "./helpers-
|
|
24
|
-
import "./wsl-
|
|
25
|
-
import "./pairing-store-
|
|
26
|
-
import "./chunk-
|
|
22
|
+
import "./send-CSob7dn9.js";
|
|
23
|
+
import "./helpers-DkauqZNP.js";
|
|
24
|
+
import "./wsl-D_I-iL4U.js";
|
|
25
|
+
import "./pairing-store-DyghUm9G.js";
|
|
26
|
+
import "./chunk-oJRyTNTL.js";
|
|
27
27
|
import "./tailscale-status-ClsquRGs.js";
|
|
28
28
|
import "./reply-prefix-Bqzm6DC1.js";
|
|
29
29
|
import "./tokens-BvtlOzVP.js";
|
|
@@ -31,32 +31,32 @@ import "./device-pairing-D2Yq-_U6.js";
|
|
|
31
31
|
import "./pairing-token-N_6Jbt1L.js";
|
|
32
32
|
import "./diagnostic-Dfn1iERm.js";
|
|
33
33
|
import "./diagnostic-session-state-HO94DMou.js";
|
|
34
|
-
import "./optional-runtime-dependency-
|
|
35
|
-
import "./image-ops-
|
|
36
|
-
import "./wallet-status-
|
|
37
|
-
import "./pi-model-discovery-
|
|
38
|
-
import "./runtime-dependency-
|
|
34
|
+
import "./optional-runtime-dependency-DaMkPVe_.js";
|
|
35
|
+
import "./image-ops-DmSjpAeh.js";
|
|
36
|
+
import "./wallet-status-ClmXigGN.js";
|
|
37
|
+
import "./pi-model-discovery-ReorOh7W.js";
|
|
38
|
+
import "./runtime-dependency-p_iKbESf.js";
|
|
39
39
|
import "./ws-CocpWGhl.js";
|
|
40
40
|
import "./path-alias-guards-Dg3gU-MA.js";
|
|
41
41
|
import "./fs-safe-BG-VzVkL.js";
|
|
42
|
-
import "./markdown-tables-
|
|
43
|
-
import "./media-
|
|
44
|
-
import "./send-
|
|
45
|
-
import "./outbound-attachment-
|
|
42
|
+
import "./markdown-tables-BX7JXDUV.js";
|
|
43
|
+
import "./media-DyzsScOp.js";
|
|
44
|
+
import "./send-B3RAELvw.js";
|
|
45
|
+
import "./outbound-attachment-M0NCUSG-.js";
|
|
46
46
|
import "./fetch-Cu-ahkie.js";
|
|
47
|
-
import "./thread-bindings.state-
|
|
47
|
+
import "./thread-bindings.state-CpAQrGco.js";
|
|
48
48
|
import "./memory-search-C3C0bD2H.js";
|
|
49
|
-
import "./manager-
|
|
49
|
+
import "./manager-DGZsMQWR.js";
|
|
50
50
|
import "./query-expansion-Zr9qQixm.js";
|
|
51
|
-
import "./common-
|
|
52
|
-
import "./commands-registry-
|
|
53
|
-
import "./skill-commands-
|
|
51
|
+
import "./common-Dx4sUa9f.js";
|
|
52
|
+
import "./commands-registry-Cjo7OjIf.js";
|
|
53
|
+
import "./skill-commands-BqpZG5nW.js";
|
|
54
54
|
import "./directory-live-DatqU-eS.js";
|
|
55
|
-
import "./targets-
|
|
55
|
+
import "./targets-VrYeAmeT.js";
|
|
56
56
|
import "./sandbox-paths-lj7_EVuA.js";
|
|
57
|
-
import "./resolve-route-
|
|
57
|
+
import "./resolve-route-Ce08Fx-G.js";
|
|
58
58
|
import "./render-Bwu_WxwA.js";
|
|
59
|
-
import "./tables-
|
|
59
|
+
import "./tables-Cij4iAXw.js";
|
|
60
60
|
import "./shared-clhhbWN3.js";
|
|
61
61
|
import { randomUUID } from "node:crypto";
|
|
62
62
|
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-DdS0zHiU.js";
|
|
6
6
|
import { n as generateSecureUuid } from "./secure-random-Bl-AVLVb.js";
|
|
7
7
|
import { t as redactIdentifier } from "./redact-identifier-Q3tkvxhm.js";
|
|
8
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
9
|
-
import { n as loadWebMedia } from "./media-
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BX7JXDUV.js";
|
|
9
|
+
import { n as loadWebMedia } from "./media-DyzsScOp.js";
|
|
10
10
|
import { n as normalizePollInput } from "./polls-DQrR-qT3.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-Cij4iAXw.js";
|
|
12
|
+
import { n as requireActiveWebListener } from "./active-listener-CIP_Ht8d.js";
|
|
13
|
+
import { n as formatError } from "./session-DKJGakm1.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-DmSjpAeh.js";
|
|
3
|
+
import { n as loadWebMedia } from "./media-DyzsScOp.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,5 +1,5 @@
|
|
|
1
1
|
import { At as FasedAgentConfig, t as ChannelConfigSchema } from "./types.plugin-CvUiB3Kh.js";
|
|
2
|
-
import { v as FasedAgentPluginConfigSchema } from "./types-
|
|
2
|
+
import { v as FasedAgentPluginConfigSchema } from "./types-CKR2Lvsa.js";
|
|
3
3
|
import { ZodTypeAny } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/config-schema.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ct as listChannelPlugins, st as getChannelPlugin } from "./runtime-
|
|
1
|
+
import { ct as listChannelPlugins, st as getChannelPlugin } from "./runtime-Cv3gX3Wc.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 { Fn as withFileLock$1 } from "./config-
|
|
4
|
+
import { Fn as withFileLock$1 } from "./config-DdS0zHiU.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 { An as ensureAuthProfileStore, Kt as normalizeProviderId } from "./config-
|
|
2
|
+
import { An as ensureAuthProfileStore, Kt as normalizeProviderId } from "./config-DdS0zHiU.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-DdS0zHiU.js";
|
|
6
6
|
import "./agent-scope-BbgPlhtw.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-ReorOh7W.js";
|
|
13
13
|
|
|
14
14
|
export { discoverAuthStorage, discoverModels };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { At as FasedAgentConfig } from "./types.plugin-CvUiB3Kh.js";
|
|
2
|
-
import { Q as RuntimeWebSearchMetadata, R as WebSearchProviderPlugin, z as WebSearchProviderToolDefinition } from "./types-
|
|
2
|
+
import { Q as RuntimeWebSearchMetadata, R as WebSearchProviderPlugin, z as WebSearchProviderToolDefinition } from "./types-CKR2Lvsa.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin-sdk/provider-web-search-config-contract.d.ts
|
|
5
5
|
type WebSearchCredentialResolutionSource = "config" | "env" | "none";
|
|
@@ -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 { Tr as formatCliCommand, mr as formatErrorMessage } from "./config-DdS0zHiU.js";
|
|
6
6
|
import "./agent-scope-BbgPlhtw.js";
|
|
7
7
|
import "./logger-BbFvCoKk.js";
|
|
8
8
|
import "./exec-DQ8j4Fm3.js";
|
|
@@ -11,8 +11,8 @@ import "./github-copilot-token-CUK__1s1.js";
|
|
|
11
11
|
import "./retry-DstNBhDW.js";
|
|
12
12
|
import "./ip-C70a-YlD.js";
|
|
13
13
|
import "./ssrf-BZG8Ztod.js";
|
|
14
|
-
import "./optional-runtime-dependency-
|
|
15
|
-
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-
|
|
14
|
+
import "./optional-runtime-dependency-DaMkPVe_.js";
|
|
15
|
+
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-p_iKbESf.js";
|
|
16
16
|
import "./ws-CocpWGhl.js";
|
|
17
17
|
import "./path-alias-guards-Dg3gU-MA.js";
|
|
18
18
|
import "./fs-safe-BG-VzVkL.js";
|
|
@@ -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-oJRyTNTL.js";
|
|
3
3
|
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-BvtlOzVP.js";
|
|
4
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
4
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-C-jaxZJG.js";
|
|
5
5
|
import { t as createReplyReferencePlanner } from "./reply-reference-BkbK_DWT.js";
|
|
6
6
|
|
|
7
7
|
//#region src/slack/monitor/replies.ts
|
package/dist/plugin-sdk/{resolve-outbound-target-CCIyBb5H.js → resolve-outbound-target-Chznq8rS.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-Cv3gX3Wc.js";
|
|
2
2
|
import { n as missingTargetError } from "./target-errors-C_SVKoEv.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-Cv3gX3Wc.js";
|
|
3
3
|
import { s as shouldLogVerbose } from "./globals-B_jjtAje.js";
|
|
4
4
|
import { u as resolveDefaultAgentId } from "./agent-scope-BbgPlhtw.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 { mr as formatErrorMessage } from "./config-DdS0zHiU.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 { G as isAvatarDataUrl, H as parseDurationMs, Ht as inferUniqueProviderFromConfiguredModels, In as resolveProcessScopedMap, Jt as resolveConfiguredModelRef, K as isAvatarHttpUrl, Kt as normalizeProviderId, Ln as isPidAlive,
|
|
6
|
+
import { Ar as isPluginRuntimeSessionReadAllowed, Dr as isTruthyEnvValue, G as isAvatarDataUrl, H as parseDurationMs, Ht as inferUniqueProviderFromConfiguredModels, In as resolveProcessScopedMap, Jt as resolveConfiguredModelRef, K as isAvatarHttpUrl, Kt as normalizeProviderId, Ln as isPidAlive, Nn as resolveFasedAgentDir, Pr as resolvePluginAdminRpcActionGrant, U as parseByteSize, W as AVATAR_MAX_BYTES, X as resolveAvatarMime, Xt as resolveExplicitConfiguredModelRef, Y as isWorkspaceRelativeAvatarPath, Yt as resolveDefaultModelForAgent, cr as DEFAULT_PROVIDER, in as resolveImplicitProviders, jr as normalizePluginsConfig, n as loadConfig, nn as normalizeProviders, or as DEFAULT_CONTEXT_TOKENS, q as isPathWithinRoot, qt as parseModelRef, rn as resolveImplicitCopilotProvider, sr as DEFAULT_MODEL } from "./config-DdS0zHiU.js";
|
|
7
7
|
import { A as openBoundaryFileSync, G as normalizeHyphenSlug, W as normalizeAtHashSlug, l as resolveAgentWorkspaceDir, u as resolveDefaultAgentId } from "./agent-scope-BbgPlhtw.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-BfdIB9Ud.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";
|
|
@@ -4987,20 +4987,28 @@ async function resolveSessionTranscriptFile(params) {
|
|
|
4987
4987
|
activeSessionKey: params.activeSessionKey
|
|
4988
4988
|
});
|
|
4989
4989
|
}
|
|
4990
|
-
|
|
4991
|
-
if (fs.existsSync(params.sessionFile)) return;
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
4990
|
+
function ensureSessionTranscriptHeader(params) {
|
|
4991
|
+
if (fs.existsSync(params.sessionFile)) return { created: false };
|
|
4992
|
+
try {
|
|
4993
|
+
fs.mkdirSync(path.dirname(params.sessionFile), { recursive: true });
|
|
4994
|
+
const header = {
|
|
4995
|
+
type: "session",
|
|
4996
|
+
version: CURRENT_SESSION_VERSION,
|
|
4997
|
+
id: params.sessionId,
|
|
4998
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4999
|
+
cwd: process.cwd()
|
|
5000
|
+
};
|
|
5001
|
+
fs.writeFileSync(params.sessionFile, `${JSON.stringify(header)}\n`, {
|
|
5002
|
+
encoding: "utf-8",
|
|
5003
|
+
mode: 384
|
|
5004
|
+
});
|
|
5005
|
+
return { created: true };
|
|
5006
|
+
} catch (error) {
|
|
5007
|
+
return {
|
|
5008
|
+
created: false,
|
|
5009
|
+
error: error instanceof Error ? error.message : String(error)
|
|
5010
|
+
};
|
|
5011
|
+
}
|
|
5004
5012
|
}
|
|
5005
5013
|
async function appendAssistantMessageToSessionTranscript(params) {
|
|
5006
5014
|
const sessionKey = params.sessionKey.trim();
|
|
@@ -5040,10 +5048,14 @@ async function appendAssistantMessageToSessionTranscript(params) {
|
|
|
5040
5048
|
reason: err instanceof Error ? err.message : String(err)
|
|
5041
5049
|
};
|
|
5042
5050
|
}
|
|
5043
|
-
|
|
5051
|
+
const ensured = ensureSessionTranscriptHeader({
|
|
5044
5052
|
sessionFile,
|
|
5045
5053
|
sessionId: entry.sessionId
|
|
5046
5054
|
});
|
|
5055
|
+
if (ensured.error) return {
|
|
5056
|
+
ok: false,
|
|
5057
|
+
reason: ensured.error
|
|
5058
|
+
};
|
|
5047
5059
|
const sessionManager = SessionManager.open(sessionFile);
|
|
5048
5060
|
const message = {
|
|
5049
5061
|
role: "assistant",
|
|
@@ -5160,6 +5172,7 @@ var sessions_exports = /* @__PURE__ */ __exportAll({
|
|
|
5160
5172
|
deriveSessionOrigin: () => deriveSessionOrigin,
|
|
5161
5173
|
drainSessionStoreLockQueuesForTest: () => drainSessionStoreLockQueuesForTest,
|
|
5162
5174
|
enforceSessionDiskBudget: () => enforceSessionDiskBudget,
|
|
5175
|
+
ensureSessionTranscriptHeader: () => ensureSessionTranscriptHeader,
|
|
5163
5176
|
evaluateSessionFreshness: () => evaluateSessionFreshness,
|
|
5164
5177
|
extractDeliveryInfo: () => extractDeliveryInfo,
|
|
5165
5178
|
formatSessionArchiveTimestamp: () => formatSessionArchiveTimestamp,
|
|
@@ -5398,7 +5411,7 @@ async function loadContextCache() {
|
|
|
5398
5411
|
await ensureFasedModelsJson(cfg);
|
|
5399
5412
|
} catch {}
|
|
5400
5413
|
try {
|
|
5401
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-
|
|
5414
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-C-CHZo03.js");
|
|
5402
5415
|
const agentDir = resolveFasedAgentDir();
|
|
5403
5416
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
5404
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 { gr as isErrno, n as loadConfig } from "./config-DdS0zHiU.js";
|
|
5
5
|
import { F as isNotFoundPathError, I as isPathInside } from "./agent-scope-BbgPlhtw.js";
|
|
6
6
|
import { s as resolvePinnedHostnameWithPolicy } from "./ssrf-BZG8Ztod.js";
|
|
7
|
-
import { t as importOptionalRuntimeDependency } from "./optional-runtime-dependency-
|
|
7
|
+
import { t as importOptionalRuntimeDependency } from "./optional-runtime-dependency-DaMkPVe_.js";
|
|
8
8
|
import { n as isLoopbackAddress, r as isLoopbackHost, t as rawDataToString } from "./ws-CocpWGhl.js";
|
|
9
9
|
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-BG-VzVkL.js";
|
|
10
10
|
import path from "node:path";
|