remoteclaw 0.2.0 → 0.2.1
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/{accounts-Qulj3jS8.js → accounts-B0V43QEN.js} +1 -1
- package/dist/{accounts-PoAEsvXo.js → accounts-DObM4hAF.js} +2 -2
- package/dist/{accounts-C_7Xc5wa.js → accounts-DZ4c6f7x.js} +1 -1
- package/dist/{active-listener-nMUQ-dVt.js → active-listener-DVLYzYd3.js} +1 -1
- package/dist/{agent-O04J-JEw.js → agent-B2leLOo0.js} +377 -355
- package/dist/{agent-scope-wbu0VZoq.js → agent-scope-CYJrXxD6.js} +1 -1
- package/dist/{agents-BbQIzW1N.js → agents-Eg0_nSnn.js} +1 -1
- package/dist/{banner-DONy2WbW.js → banner-B52X-rEb.js} +1 -1
- package/dist/{bindings-0dx8vqz9.js → bindings-AUVd82yI.js} +2 -2
- package/dist/boot/handler.js +46 -46
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-D47P56pj.js → channel-activity-Bydtz0cv.js} +2 -2
- package/dist/{channel-options-DWOSBsjN.js → channel-options-CD6ZBbON.js} +1 -1
- package/dist/{channel-options-JoYluwGr.js → channel-options-h1pCAx0w.js} +1 -1
- package/dist/{channel-web-YLHk99fU.js → channel-web-DbNWyl5A.js} +2 -2
- package/dist/{channel-web-Cvf5FKyf.js → channel-web-FA7MGFJO.js} +2 -2
- package/dist/{channels-cli-Be0_n1L2.js → channels-cli-BIArqz2T.js} +9 -9
- package/dist/{channels-cli-BoDA0aQ1.js → channels-cli-BZ5sRWaP.js} +9 -9
- package/dist/{chunk-C5Oai9vm.js → chunk-0ZB8yVlw.js} +1 -1
- package/dist/{cli-BEOzFl_6.js → cli-C8XFOFxS.js} +5 -5
- package/dist/{cli-D1ORFJ6n.js → cli-ifZiERUK.js} +5 -5
- package/dist/command-logger/handler.js +1 -1
- package/dist/{command-registry-D6LIEhaY.js → command-registry-kxjFHjjE.js} +9 -9
- package/dist/{commands-registry-CB3qR3Ui.js → commands-registry-BQrQnwzJ.js} +3 -3
- package/dist/{completion-cli-ohSjYC4v.js → completion-cli-eH6YXa0H.js} +1 -1
- package/dist/{completion-cli-D93-g9B7.js → completion-cli-wYa36YaL.js} +2 -2
- package/dist/{config-Ca5Dfk8O.js → config-BIrnJuXL.js} +8 -8
- package/dist/{config-cli-CJ1S3_VC.js → config-cli-BfJacpda.js} +1 -1
- package/dist/{config-cli-uJUr7Pe-.js → config-cli-CkJFUL61.js} +1 -1
- package/dist/{configure-CXjIsq-V.js → configure-C9cTz03s.js} +2 -2
- package/dist/{configure-BAlORoYU.js → configure-Dh-yP8hn.js} +2 -2
- package/dist/{deliver-BGpFaGMz.js → deliver-B5eZoNwr.js} +2 -2
- package/dist/{deliver-D3lJfcWr.js → deliver-Cu2kD7-u.js} +2 -2
- package/dist/{deliver-BTjGqSGN.js → deliver-z04wZfnQ.js} +8 -8
- package/dist/{dock-C0qWBS5h.js → dock-BQ3iSblF.js} +5 -5
- package/dist/{doctor-completion-CKGabXFn.js → doctor-completion-Cz3-0qwJ.js} +1 -1
- package/dist/{doctor-completion-Bo9yo8-v.js → doctor-completion-D6DqtWrm.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{env-Bs-DOhs6.js → env-D3fELH5B.js} +1 -1
- package/dist/{errors-bgTXk4n7.js → errors-Bg7BK273.js} +1 -1
- package/dist/extensionAPI.js +23 -1
- package/dist/{fetch-C-q-x9xS.js → fetch--eFpeNac.js} +3 -3
- package/dist/{fetch-B_D1a6ac.js → fetch-C3R1kkzO.js} +1 -1
- package/dist/{gateway-cli-DC1V6Fdf.js → gateway-cli-DuMZZmMm.js} +23 -14
- package/dist/{gateway-cli-CUPV9YIf.js → gateway-cli-ZPbldBb7.js} +23 -14
- package/dist/{health-D5YyZkng.js → health-6NZ23ZCc.js} +5 -5
- package/dist/{health-uTVcqwOx.js → health-D6T18gwU.js} +5 -5
- package/dist/{heartbeat-visibility-Z_3IqRgn.js → heartbeat-visibility-CXLlnSbK.js} +1 -1
- package/dist/{heartbeat-visibility-GeWWsF3e.js → heartbeat-visibility-CksK28e2.js} +1 -1
- package/dist/{hook-runner-global-D8bMcDPD.js → hook-runner-global-DPdZsDAH.js} +1 -1
- package/dist/{hooks-cli-DToXVDBQ.js → hooks-cli-CQAdRG0h.js} +6 -6
- package/dist/{hooks-cli-CpWC6lUu.js → hooks-cli-c8IB_ozo.js} +6 -6
- package/dist/{image-ops-CAVojpnw.js → image-ops-CD4YRYFY.js} +2 -2
- package/dist/index.js +10 -10
- package/dist/{ir-CDjoXuIW.js → ir-BK7K3Bbu.js} +6 -6
- package/dist/{logger-Bp0X6yHd.js → logger-BKFID___.js} +1 -1
- package/dist/{login-DWKSrC5K.js → login-BYHOjw55.js} +6 -6
- package/dist/{login-qr-C7zaGKxz.js → login-qr-ZRBRz2BA.js} +8 -8
- package/dist/{markdown-tables-Bm7xJUcn.js → markdown-tables-CfM1ner1.js} +1 -1
- package/dist/{message-action-names-y0-o46BN.js → message-action-names-AEii-fdA.js} +5 -5
- package/dist/{message-action-names-PbKqmcBa.js → message-action-names-CPJVqkJL.js} +5 -5
- package/dist/{message-channel-BuWy8hEk.js → message-channel-tSSi5C96.js} +1 -1
- package/dist/{npm-resolution-BLL-hroo.js → npm-resolution-C6jVPSqS.js} +1 -1
- package/dist/{npm-resolution-o9lE9iRL.js → npm-resolution-CdEbWlwy.js} +1 -1
- package/dist/{onboard-BohVFYna.js → onboard-CVpITzvB.js} +2 -2
- package/dist/{onboard-channels-DMgpmtQu.js → onboard-channels-D664lpQl.js} +1 -1
- package/dist/{onboard-channels-DzuidyBQ.js → onboard-channels-DReWe-Pi.js} +1 -1
- package/dist/{onboard-BKfLjwEp.js → onboard-zh78fAIB.js} +2 -2
- package/dist/{onboarding-sWcrQljf.js → onboarding-BnS6FhcE.js} +3 -3
- package/dist/{onboarding-BLgEs3xo.js → onboarding-CCahs79c.js} +3 -3
- package/dist/{onboarding.finalize-D5VLM268.js → onboarding.finalize-CmYoFs6n.js} +9 -9
- package/dist/{onboarding.finalize-CLmpb0fB.js → onboarding.finalize-uTFFUZ8O.js} +10 -10
- package/dist/{onboarding.gateway-config-DsTEqzPz.js → onboarding.gateway-config-DQX6SBU8.js} +1 -1
- package/dist/{onboarding.gateway-config-D-ZMefuj.js → onboarding.gateway-config-DYjDeKEw.js} +1 -1
- package/dist/{outbound-CCvRhb_6.js → outbound-BCY7cG5r.js} +6 -6
- package/dist/{outbound-attachment-BXwueqll.js → outbound-attachment-6NNNORlp.js} +3 -3
- package/dist/{plugin-registry-C-OlCiRd.js → plugin-registry-BC1RH6cl.js} +1 -1
- package/dist/{plugin-registry-LBCvRwK8.js → plugin-registry-TC2kC2iG.js} +1 -1
- package/dist/plugin-sdk/agents/session-run-registry.d.ts +36 -0
- package/dist/plugin-sdk/{channel-web-CM3jOFIe.js → channel-web-DSYJDq30.js} +4 -4
- package/dist/plugin-sdk/{deliver-DOBaX9a2.js → deliver-BzPIWEw5.js} +1 -1
- package/dist/plugin-sdk/index.js +5 -5
- package/dist/plugin-sdk/{reply-sVftK2Ge.js → reply-Dzts0EiK.js} +22 -8
- package/dist/plugin-sdk/{reply-payloads-DybMtW8a.js → reply-payloads-DwsjAWzB.js} +7 -1
- package/dist/plugin-sdk/{subagent-registry-BfxxwQv4.js → subagent-registry-DrBYYinw.js} +221 -5
- package/dist/plugin-sdk/web-afnwTWMq.js +7 -0
- package/dist/{plugins-cli-DCkrm_Bp.js → plugins-cli-CModgvwT.js} +6 -6
- package/dist/{plugins-cli-ChGSPhWr.js → plugins-cli-CpdkQdKD.js} +6 -6
- package/dist/{plugins-ODda1fNU.js → plugins-sjrWIkqk.js} +4 -4
- package/dist/{preflight-B9B3VBaW.js → preflight-a80t-iPi.js} +63 -63
- package/dist/{program-DYx2DvMr.js → program-BlZGbNe5.js} +11 -11
- package/dist/{program-context-B_oA8k9e.js → program-context-BVx30291.js} +16 -16
- package/dist/{prompt-select-styled-tATNv5wG.js → prompt-select-styled-Bqov4T-S.js} +4 -4
- package/dist/{prompt-select-styled-CHuBVQoF.js → prompt-select-styled-CtPeDmXo.js} +4 -4
- package/dist/{provider-dispatcher-CaVZ8Nhx.js → provider-dispatcher-BD5K64cR.js} +44 -22
- package/dist/{redact-DUvSdQvv.js → redact-D2_cayCv.js} +1 -1
- package/dist/{register.agent-mJGdqH4r.js → register.agent-B89Ymzwt.js} +8 -8
- package/dist/{register.agent-CAkJcVgr.js → register.agent-CuhMDT3t.js} +7 -7
- package/dist/{register.configure-BhkIDDW5.js → register.configure-C8WcdyT6.js} +9 -9
- package/dist/{register.configure-DvwKyrwL.js → register.configure-b8Ic06Uw.js} +9 -9
- package/dist/{register.maintenance-CKwKHDhS.js → register.maintenance-BlMuoELU.js} +11 -11
- package/dist/{register.maintenance-vpQOTI6u.js → register.maintenance-D5RP4wO6.js} +10 -10
- package/dist/{register.message-h_ydGqf0.js → register.message-CSeNrxdd.js} +7 -7
- package/dist/{register.message-NSrj_UY0.js → register.message-D7jdDTte.js} +7 -7
- package/dist/{register.onboard-C08IBU41.js → register.onboard-CRiXHw0n.js} +3 -3
- package/dist/{register.onboard-CcOONokP.js → register.onboard-Dj8wICC1.js} +3 -3
- package/dist/{register.setup-BHbQcv1_.js → register.setup-8gos4jqr.js} +3 -3
- package/dist/{register.setup-JYGpPbA2.js → register.setup-C_-8vfKv.js} +3 -3
- package/dist/{register.status-health-sessions-CAVFepVm.js → register.status-health-sessions-CrCsnTEq.js} +9 -9
- package/dist/{register.status-health-sessions-CV4R4Fe2.js → register.status-health-sessions-Df9SxgpH.js} +8 -8
- package/dist/{register.subclis-pRE159Cu.js → register.subclis-CxT7d8Bs.js} +8 -8
- package/dist/{replies-Cu8SG6CK.js → replies-Dsu1hdd7.js} +3 -3
- package/dist/{reply-DqJBHDn_.js → reply-Ccq9RRYF.js} +44 -22
- package/dist/{reply-payloads-DbQW7c5s.js → reply-payloads-DwEnDy7C.js} +4 -4
- package/dist/{reply-payloads-C4mbcSP-.js → reply-payloads-KYLwM629.js} +1 -1
- package/dist/{reply-prefix-DwJ8gxoz.js → reply-prefix-DtQ_7Eac.js} +1 -1
- package/dist/{resolve-route-BBztqaX0.js → resolve-route-DFUMTbRD.js} +4 -4
- package/dist/{response-prefix-template-BgDMziqu.js → response-prefix-template-DDQsoC2g.js} +1 -1
- package/dist/{run-main-D4CHxIUS.js → run-main-3RfLQTiu.js} +17 -17
- package/dist/{send-D3Uuw_MA.js → send-4gX7wep2.js} +8 -8
- package/dist/{send-CeBdN3Dp.js → send-CgAV9I1-.js} +15 -15
- package/dist/{send-DgVCmydL.js → send-CkPRLaz-.js} +8 -8
- package/dist/{send-C2J41ICD.js → send-DBeVQI-J.js} +7 -7
- package/dist/{send-Cibl-r-E.js → send-fdOUhBcN.js} +10 -10
- package/dist/{server-node-events-B60wtfXc.js → server-node-events-CRRE92S3.js} +6 -6
- package/dist/{server-node-events-DdwEsXLN.js → server-node-events-wpvPI-kw.js} +6 -6
- package/dist/{session-Bj8e8O8R.js → session-IUmTrU6A.js} +4 -4
- package/dist/{session-utils-CpgeP4rB.js → session-utils-ChEnoQCt.js} +1 -1
- package/dist/{session-utils-BUNcG-B2.js → session-utils-Dq5uiNDE.js} +1 -1
- package/dist/{sessions-3ACDrmHu.js → sessions-C6O5qrbx.js} +7 -1
- package/dist/{sessions-BePPqEtN.js → sessions-D5CiijxL.js} +12 -6
- package/dist/{sessions-n_z2PE4-.js → sessions-DPke45uf.js} +2 -2
- package/dist/{shell-env-DPAvieDD.js → shell-env-CKQ7fvtT.js} +1 -1
- package/dist/{status-BLKhFWFc.js → status-BeGUnsBd.js} +4 -4
- package/dist/{status-Ccfq5H-G.js → status-uyg2yOTM.js} +4 -4
- package/dist/{store-BS8fRU9w.js → store-BfW5-y9S.js} +7 -1
- package/dist/{subagent-registry-DIReZNw1.js → subagent-registry-BTv48FFX.js} +239 -6
- package/dist/{subagent-registry-DvnyYXMs.js → subagent-registry-D2yHvOBr.js} +238 -22
- package/dist/{subagent-registry-DMTgcI99.js → subagent-registry-DljM1oxO.js} +239 -6
- package/dist/{subsystem-DLQY6iY4.js → subsystem-9R2eOxp2.js} +2 -2
- package/dist/{tables-Bk8AXTIS.js → tables-CDsRjvfB.js} +2 -2
- package/dist/{tokens-CgIfCmK3.js → tokens-CFajuiSx.js} +1 -1
- package/dist/{tool-images-BMnWMHwL.js → tool-images-Cmsx31Bo.js} +1 -1
- package/dist/{update-cli-DCK9HF3t.js → update-cli-ChJoLU8L.js} +11 -11
- package/dist/{update-cli-1qesJ1_a.js → update-cli-DaW75dJC.js} +10 -10
- package/dist/{web-DG3SWzn_.js → web-BS0azDPB.js} +6 -6
- package/dist/{web-CCw02lmy.js → web-C_Alo-mS.js} +6 -6
- package/dist/{web-CKces-ap.js → web-DHXIgMOC.js} +50 -50
- package/dist/{whatsapp-actions-BzyFEHw4.js → whatsapp-actions-sR-u0T6U.js} +21 -21
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/googlechat/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/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/plugin-sdk/web-C24fSRzu.js +0 -7
- /package/dist/{fetch-timeout-DTIN7CGM.js → fetch-timeout-jOIu9Xud.js} +0 -0
- /package/dist/{file-lock-BftAtpBn.js → file-lock-CEhZlbAi.js} +0 -0
- /package/dist/{ip-B27WD9wk.js → ip-N_XHHVsM.js} +0 -0
- /package/dist/{json-file-CRyYLqpu.js → json-file-DYQIVLc1.js} +0 -0
- /package/dist/{render-DSLzcBxk.js → render-TpKSK5RV.js} +0 -0
- /package/dist/{target-errors-owiG6LWY.js → target-errors-D7fLx8zG.js} +0 -0
|
@@ -7,7 +7,7 @@ import { i as defaultRuntime, r as createNonExitingRuntime } from "./ansi-DtaiOn
|
|
|
7
7
|
import { C as parseAgentSessionKey, _ as isBlockedObjectKey, c as normalizeMainKey, g as normalizeOptionalAccountId, h as normalizeAccountId$2, l as resolveAgentIdFromSessionKey, m as DEFAULT_ACCOUNT_ID, s as normalizeAgentId, u as resolveThreadSessionKeys, v as deriveSessionChatType } from "./session-key-DUewR3Vl.js";
|
|
8
8
|
import { a as resolveAgentDir, c as resolveAgentRuntimeOrThrow, d as resolveDefaultAgentId, f as resolveSessionAgentId, i as resolveAgentConfig, l as resolveAgentWorkspaceDir, n as listAgentIds, o as resolveAgentRuntimeArgs, r as resolveAgentAuth, s as resolveAgentRuntimeEnv } from "./agent-scope-CqLq7cFg.js";
|
|
9
9
|
import { a as normalizeProviderId, i as normalizeModelRef, n as modelKey, o as parseModelRef, t as isCliProvider } from "./provider-utils-C9kBVF1f.js";
|
|
10
|
-
import { B as AGENT_LANE_SUBAGENT, Ct as
|
|
10
|
+
import { $ as enqueueFollowupRun, At as emitAgentEvent, B as AGENT_LANE_SUBAGENT, Ct as logWebhookReceived, D as stripToolMessages, Dt as isDiagnosticsEnabled, E as sanitizeTextContent, Et as emitDiagnosticEvent, F as resolveInternalSessionKey, Ft as resolveAgentTimeoutMs, G as registerSessionRun, I as resolveMainSessionAlias, J as extractTextFromChatContent, K as unregisterSessionRun, Nt as registerAgentRunContext, O as stripReasoningTagsFromText, Ot as extractQueueDirective, P as resolveDisplaySessionKey, Pt as createReceiptCard, Q as resolveQueueSettings, St as logWebhookProcessed, T as extractAssistantText, Tt as stopDiagnosticHeartbeat, U as isSessionRunActive, V as getSubagentDepthFromSessionStore, W as killSessionRun, X as registerSessionBindingAdapter, Y as getSessionBindingService, Z as unregisterSessionBindingAdapter, bt as logSessionStateChange, c as markSubagentRunTerminated, ct as clearSessionQueues, dt as getQueueSize, et as getFollowupQueueDepth, f as buildSubagentSystemPrompt, it as normalizeReplyPayload, kt as clearAgentRunContext, l as registerSubagentRun, lt as clearCommandLane, nt as isRoutableChannel, o as listSubagentRunsForRequester, r as countActiveRunsForSession, rt as routeReply, s as markSubagentRunForSteerRestart, st as buildOutboundSessionContext, t as clearSubagentRunSteerRestart, tt as scheduleFollowupDrain, u as replaceSubagentRunAfterSteer, vt as logMessageProcessed, wt as startDiagnosticHeartbeat, xt as logWebhookError, yt as logMessageQueued, z as AGENT_LANE_NESTED } from "./subagent-registry-DljM1oxO.js";
|
|
11
11
|
import { C as ensureAgentWorkspace, n as detectBinary } from "./onboard-helpers-D2nzz93W.js";
|
|
12
12
|
import { a as isInternalMessageChannel, c as normalizeMessageChannel, i as isGatewayMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, s as listDeliverableMessageChannels, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-Byxx9SGy.js";
|
|
13
13
|
import { $ as hasAnyGuildPermissionDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as applyChannelMatchMeta, D as pinMessageDiscord, E as listThreadsDiscord, Et as resolveChannelEntryMatchWithFallback, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, Q as fetchChannelPermissionsDiscord, R as kickMemberDiscord, S as deleteMessageDiscord, St as fetchDiscord, T as listPinsDiscord, Tt as normalizeChannelSlug, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as shouldEmitDiscordReactionNotification, a as removeReactionDiscord, at as listDiscordDirectoryPeersLive, b as sendWebhookMessageDiscord, bt as resolveDiscordSystemLocation, c as formatDiscordComponentEventText, ct as normalizeDiscordAllowList, d as parseDiscordModalCustomId, dt as resolveDiscordChannelConfigWithFallback, et as chunkDiscordTextWithMode, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordGuildEntry, g as sendMessageDiscord, gt as resolveGroupDmAllow, h as resolveDiscordModalEntry, ht as resolveDiscordShouldRequireMention, i as removeOwnReactionsDiscord, it as listDiscordDirectoryGroupsLive, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as normalizeDiscordSlug, m as resolveDiscordComponentEntry, mt as resolveDiscordOwnerAllowFrom, n as fetchReactionsDiscord, nt as parseDiscordTarget, o as sendDiscordComponentMessage, ot as allowListMatches$1, p as readDiscordComponentSpec, pt as resolveDiscordMemberAccessState, q as deleteChannelDiscord, r as reactMessageDiscord, rt as resolveDiscordChannelId, s as createDiscordFormModal, st as isDiscordGroupAllowedByPolicy, tt as createDiscordRestClient, u as parseDiscordComponentCustomIdForCarbon, ut as resolveDiscordAllowListMatch, v as sendStickerDiscord, vt as formatDiscordReactionEmoji, w as fetchMessageDiscord, wt as buildChannelKeyCandidates, x as createThreadDiscord, xt as resolveTimestampMs, y as sendVoiceMessageDiscord, yt as formatDiscordUserTag, z as listGuildChannelsDiscord } from "./send-CoDb77BF.js";
|
|
@@ -24,7 +24,7 @@ import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./acc
|
|
|
24
24
|
import { t as normalizeChatType } from "./chat-type-BP9akbag.js";
|
|
25
25
|
import { t as formatCliCommand } from "./command-format-Dntg_tnC.js";
|
|
26
26
|
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText } from "./tokens-DJrhANSO.js";
|
|
27
|
-
import { a as isRenderablePayload, c as createReplyToModeFilterForChannel, i as filterMessagingToolMediaDuplicates, l as resolveReplyToMode, m as initializeGlobalHookRunner, n as applyReplyThreading, o as shouldSuppressMessagingToolReplies, p as getGlobalHookRunner, r as filterMessagingToolDuplicates, s as shouldSuppressReasoningPayload, t as applyReplyTagsToPayload } from "./reply-payloads-
|
|
27
|
+
import { a as isRenderablePayload, c as createReplyToModeFilterForChannel, i as filterMessagingToolMediaDuplicates, l as resolveReplyToMode, m as initializeGlobalHookRunner, n as applyReplyThreading, o as shouldSuppressMessagingToolReplies, p as getGlobalHookRunner, r as filterMessagingToolDuplicates, s as shouldSuppressReasoningPayload, t as applyReplyTagsToPayload } from "./reply-payloads-KYLwM629.js";
|
|
28
28
|
import { a as validateSlackBlocksArray, c as resolveSlackWebClientOptions, i as parseSlackBlocksInput, l as parseSlackTarget, o as buildSlackBlocksFallbackText, s as createSlackWebClient, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-Bj1TUsUZ.js";
|
|
29
29
|
import { i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-YI4OIEz0.js";
|
|
30
30
|
import { a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, i as listChatCommands, l as parseCommandArgs, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices } from "./commands-registry-BKzejEC3.js";
|
|
@@ -33,7 +33,7 @@ import { n as fetchWithTimeout } from "./fetch-timeout-CPe2rPLq.js";
|
|
|
33
33
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-CfIaWynF.js";
|
|
34
34
|
import { n as recordChannelActivity, o as retryAsync, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-0siRvnUT.js";
|
|
35
35
|
import { c as resolveSessionFilePath, l as resolveSessionFilePathOptions, m as resolveStorePath, s as resolveDefaultSessionStorePath, u as resolveSessionTranscriptPath } from "./chat-envelope-DPKIEKwe.js";
|
|
36
|
-
import {
|
|
36
|
+
import { $ as deriveSessionMetaPatch, B as evaluateSessionFreshness, G as DEFAULT_RESET_TRIGGERS, H as resolveSessionResetPolicy, I as resolveAndPersistSessionFile, L as CURRENT_SESSION_VERSION, N as parseSessionThreadInfo, U as resolveSessionResetType, V as resolveChannelResetConfig, W as resolveThreadFlag, X as resolveExplicitAgentSessionKey, a as recordSessionMetaFromInbound, c as updateLastRoute, d as deliveryContextFromSession, g as normalizeAccountId$3, h as normalizeSessionDeliveryFields, i as readSessionUpdatedAt, it as resolveGroupSessionKey, l as updateSessionStore, m as normalizeDeliveryContext, n as loadSessionStore, u as updateSessionStoreEntry, v as archiveSessionTranscripts, z as resolveSessionKey } from "./store-BfW5-y9S.js";
|
|
37
37
|
import { n as resolveConversationLabel } from "./conversation-label-zSDvvKNg.js";
|
|
38
38
|
import { c as hasNonzeroUsage, l as normalizeUsage, n as loadCostUsageSummary, o as derivePromptTokens, r as loadSessionCostSummary, s as deriveSessionTotalTokens } from "./session-cost-usage-BEJ7hSxb.js";
|
|
39
39
|
import { _ as normalizeSecretInput, a as resolveProfileUnusableUntil, i as markAuthProfileUsed, l as ensureAuthProfileStore, n as clearExpiredCooldowns, o as resolveApiKeyForProfile, r as isProfileInCooldown, s as listProfilesForProvider } from "./auth-8CQIOfEF.js";
|
|
@@ -60,7 +60,7 @@ import { t as convertMarkdownTables } from "./tables-C6OJbUw4.js";
|
|
|
60
60
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-A-nqwfMi.js";
|
|
61
61
|
import { n as resolveLsofCommandSync } from "./ports-lsof-BmOgvEU5.js";
|
|
62
62
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-Ces2J1XY.js";
|
|
63
|
-
import { a as normalizeOutboundPayloadsForJson, c as parseReplyDirectives, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-
|
|
63
|
+
import { a as normalizeOutboundPayloadsForJson, c as parseReplyDirectives, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-Cu2kD7-u.js";
|
|
64
64
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-D3B-4TxM.js";
|
|
65
65
|
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-onDiMat_.js";
|
|
66
66
|
import { c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as createActionGate, p as readStringOrNumberParam, u as readNumberParam } from "./target-errors-B_VJlqx6.js";
|
|
@@ -6526,11 +6526,13 @@ function stopSubagentsForRequester(params) {
|
|
|
6526
6526
|
store = loadSessionStore(storePath);
|
|
6527
6527
|
storeCache.set(storePath, store);
|
|
6528
6528
|
}
|
|
6529
|
-
|
|
6529
|
+
const markedTerminated = markSubagentRunTerminated({
|
|
6530
6530
|
runId: run.runId,
|
|
6531
6531
|
childSessionKey: childKey,
|
|
6532
6532
|
reason: "killed"
|
|
6533
|
-
}) > 0
|
|
6533
|
+
}) > 0;
|
|
6534
|
+
killSessionRun(childKey);
|
|
6535
|
+
if (markedTerminated || cleared.followupCleared > 0 || cleared.laneCleared > 0) stopped += 1;
|
|
6534
6536
|
}
|
|
6535
6537
|
const cascadeResult = stopSubagentsForRequester({
|
|
6536
6538
|
cfg: params.cfg,
|
|
@@ -6590,6 +6592,7 @@ async function tryFastAbortFromMessage(params) {
|
|
|
6590
6592
|
nextStore[key] = nextEntry;
|
|
6591
6593
|
});
|
|
6592
6594
|
} else if (abortKey) setAbortMemory(abortKey, true);
|
|
6595
|
+
if (requesterSessionKey) killSessionRun(requesterSessionKey);
|
|
6593
6596
|
const { stopped } = stopSubagentsForRequester({
|
|
6594
6597
|
cfg,
|
|
6595
6598
|
requesterSessionKey
|
|
@@ -6601,6 +6604,7 @@ async function tryFastAbortFromMessage(params) {
|
|
|
6601
6604
|
};
|
|
6602
6605
|
}
|
|
6603
6606
|
if (abortKey) setAbortMemory(abortKey, true);
|
|
6607
|
+
if (requesterSessionKey) killSessionRun(requesterSessionKey);
|
|
6604
6608
|
const { stopped } = stopSubagentsForRequester({
|
|
6605
6609
|
cfg,
|
|
6606
6610
|
requesterSessionKey
|
|
@@ -11875,6 +11879,15 @@ var ChannelBridge = class {
|
|
|
11875
11879
|
let workspaceDir = this.#workspaceDir;
|
|
11876
11880
|
let hookEnv;
|
|
11877
11881
|
const runId = randomUUID();
|
|
11882
|
+
const sessionKeyStr = formatSessionKeyString(sessionKey);
|
|
11883
|
+
const internalAbortCtrl = new AbortController();
|
|
11884
|
+
registerSessionRun(sessionKeyStr, {
|
|
11885
|
+
startedAt: Date.now(),
|
|
11886
|
+
sessionKey: sessionKeyStr,
|
|
11887
|
+
agentId: message.agentId ?? "default",
|
|
11888
|
+
abortController: internalAbortCtrl
|
|
11889
|
+
});
|
|
11890
|
+
const combinedSignal = abortSignal ? AbortSignal.any([abortSignal, internalAbortCtrl.signal]) : internalAbortCtrl.signal;
|
|
11878
11891
|
if (hookRunner?.hasHooks("before_runtime_spawn")) {
|
|
11879
11892
|
const spawnResult = await hookRunner.runBeforeRuntimeSpawn({
|
|
11880
11893
|
runtimeName: this.#provider,
|
|
@@ -11919,7 +11932,7 @@ var ChannelBridge = class {
|
|
|
11919
11932
|
media: supportedMedia?.length ? supportedMedia : void 0,
|
|
11920
11933
|
sessionId: existingSessionId,
|
|
11921
11934
|
mcpServers,
|
|
11922
|
-
abortSignal,
|
|
11935
|
+
abortSignal: combinedSignal,
|
|
11923
11936
|
workingDirectory: workspaceDir,
|
|
11924
11937
|
env: this.#runtimeEnv || hookEnv ? {
|
|
11925
11938
|
...this.#runtimeEnv,
|
|
@@ -11988,6 +12001,7 @@ var ChannelBridge = class {
|
|
|
11988
12001
|
error: lastError
|
|
11989
12002
|
};
|
|
11990
12003
|
} finally {
|
|
12004
|
+
unregisterSessionRun(formatSessionKeyString(sessionKey));
|
|
11991
12005
|
await rm(invocationDir, {
|
|
11992
12006
|
recursive: true,
|
|
11993
12007
|
force: true
|
|
@@ -14199,7 +14213,7 @@ async function runPreparedReply(params) {
|
|
|
14199
14213
|
const laneSize = getQueueSize(sessionLaneKey);
|
|
14200
14214
|
if (resolvedQueue.mode === "interrupt" && laneSize > 0) logVerbose(`Interrupting ${sessionLaneKey} (cleared ${clearCommandLane(sessionLaneKey)})`);
|
|
14201
14215
|
const queueKey = sessionKey ?? sessionIdFinal;
|
|
14202
|
-
const isActive =
|
|
14216
|
+
const isActive = isSessionRunActive(queueKey);
|
|
14203
14217
|
const shouldFollowup = resolvedQueue.mode === "followup" || resolvedQueue.mode === "collect" || resolvedQueue.mode === "steer-backlog";
|
|
14204
14218
|
return runReplyAgent({
|
|
14205
14219
|
commandBody: prefixedCommandBody,
|
|
@@ -22843,7 +22857,7 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
22843
22857
|
function createDefaultDeps() {
|
|
22844
22858
|
return {
|
|
22845
22859
|
sendMessageWhatsApp: async (...args) => {
|
|
22846
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
22860
|
+
const { sendMessageWhatsApp } = await import("./web-C_Alo-mS.js");
|
|
22847
22861
|
return await sendMessageWhatsApp(...args);
|
|
22848
22862
|
},
|
|
22849
22863
|
sendMessageTelegram: async (...args) => {
|
|
@@ -23410,15 +23424,7 @@ async function agentCommand(opts, runtime = defaultRuntime, deps = createDefault
|
|
|
23410
23424
|
const runContext = resolveAgentRunContext(opts);
|
|
23411
23425
|
const messageChannel = resolveMessageChannel(runContext.messageChannel, opts.replyChannel ?? opts.channel);
|
|
23412
23426
|
const sessionMap = createSessionMapAdapter({ getSessionId: () => getCliSessionId(sessionEntry, provider) });
|
|
23413
|
-
const
|
|
23414
|
-
provider: resolveAgentRuntimeOrThrow(cfg, sessionAgentId),
|
|
23415
|
-
sessionMap,
|
|
23416
|
-
gatewayUrl: resolveGatewayUrlFromConfig(cfg),
|
|
23417
|
-
gatewayToken: resolveGatewayTokenFromConfig(cfg),
|
|
23418
|
-
workspaceDir,
|
|
23419
|
-
runtimeArgs: resolveAgentRuntimeArgs(cfg, sessionAgentId),
|
|
23420
|
-
runtimeEnv: resolveAgentRuntimeEnv(cfg, sessionAgentId)
|
|
23421
|
-
});
|
|
23427
|
+
const baseRuntimeEnv = resolveAgentRuntimeEnv(cfg, sessionAgentId);
|
|
23422
23428
|
const messageToolHints = resolveChannelMessageToolHints({
|
|
23423
23429
|
cfg,
|
|
23424
23430
|
channel: messageChannel,
|
|
@@ -23434,7 +23440,23 @@ async function agentCommand(opts, runtime = defaultRuntime, deps = createDefault
|
|
|
23434
23440
|
timestamp: Date.now(),
|
|
23435
23441
|
messageToolHints
|
|
23436
23442
|
});
|
|
23437
|
-
result = await
|
|
23443
|
+
result = await withAuthKeyRetry({
|
|
23444
|
+
cfg,
|
|
23445
|
+
agentId: sessionAgentId,
|
|
23446
|
+
baseEnv: baseRuntimeEnv
|
|
23447
|
+
}, async (runtimeEnv) => {
|
|
23448
|
+
const bridgeResult = await new ChannelBridge({
|
|
23449
|
+
provider: resolveAgentRuntimeOrThrow(cfg, sessionAgentId),
|
|
23450
|
+
sessionMap,
|
|
23451
|
+
gatewayUrl: resolveGatewayUrlFromConfig(cfg),
|
|
23452
|
+
gatewayToken: resolveGatewayTokenFromConfig(cfg),
|
|
23453
|
+
workspaceDir,
|
|
23454
|
+
runtimeArgs: resolveAgentRuntimeArgs(cfg, sessionAgentId),
|
|
23455
|
+
runtimeEnv
|
|
23456
|
+
}).handle(message, void 0, opts.abortSignal);
|
|
23457
|
+
if (bridgeResult.error && bridgeResult.payloads.length === 0) throw new Error(bridgeResult.error);
|
|
23458
|
+
return bridgeResult;
|
|
23459
|
+
}, (bridgeResult) => bridgeResult.error);
|
|
23438
23460
|
emitAgentEvent({
|
|
23439
23461
|
runId,
|
|
23440
23462
|
stream: "lifecycle",
|
|
@@ -33839,7 +33861,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
33839
33861
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordSessionMetaFromInbound, resolveStorePath }] = await Promise.all([
|
|
33840
33862
|
import("./conversation-label-zSDvvKNg.js").then((n) => n.t),
|
|
33841
33863
|
import("./reply-prefix-Cmry1WmY.js").then((n) => n.n),
|
|
33842
|
-
import("./store-
|
|
33864
|
+
import("./store-BfW5-y9S.js").then((n) => n.A)
|
|
33843
33865
|
]);
|
|
33844
33866
|
const route = resolveAgentRoute({
|
|
33845
33867
|
cfg,
|
|
@@ -38719,7 +38741,7 @@ function loadWebLoginQr() {
|
|
|
38719
38741
|
return webLoginQrPromise;
|
|
38720
38742
|
}
|
|
38721
38743
|
function loadWebChannel() {
|
|
38722
|
-
webChannelPromise ??= import("./web-
|
|
38744
|
+
webChannelPromise ??= import("./web-C_Alo-mS.js");
|
|
38723
38745
|
return webChannelPromise;
|
|
38724
38746
|
}
|
|
38725
38747
|
function loadWhatsAppActions() {
|
|
@@ -39797,7 +39819,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
39797
39819
|
return;
|
|
39798
39820
|
}
|
|
39799
39821
|
try {
|
|
39800
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
39822
|
+
const { deliverOutboundPayloads } = await import("./deliver-Cu2kD7-u.js").then((n) => n.n);
|
|
39801
39823
|
const outboundSession = buildOutboundSessionContext({
|
|
39802
39824
|
cfg: params.cfg,
|
|
39803
39825
|
sessionKey: params.sessionKey
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-9R2eOxp2.js";
|
|
2
2
|
import { p as normalizeOptionalAccountId } from "./session-key-X7pmdLBX.js";
|
|
3
|
-
import { t as getChannelDock } from "./dock-
|
|
4
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
5
|
-
import {
|
|
3
|
+
import { t as getChannelDock } from "./dock-BQ3iSblF.js";
|
|
4
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-sjrWIkqk.js";
|
|
5
|
+
import { S as parseInlineDirectives } from "./sessions-D5CiijxL.js";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/hooks.ts
|
|
8
8
|
/**
|
|
@@ -2,7 +2,7 @@ import { t as createSubsystemLogger } from "./subsystem-YtLxC9Jh.js";
|
|
|
2
2
|
import { g as normalizeOptionalAccountId } from "./session-key-DUewR3Vl.js";
|
|
3
3
|
import { t as getChannelDock } from "./dock-kU--qwW1.js";
|
|
4
4
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-BzN42FWt.js";
|
|
5
|
-
import {
|
|
5
|
+
import { D as parseInlineDirectives } from "./store-BfW5-y9S.js";
|
|
6
6
|
import { t as isMessagingToolDuplicate } from "./agent-helpers-Ddt4gCz7.js";
|
|
7
7
|
|
|
8
8
|
//#region src/plugins/hooks.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { a as resolveEffectiveMessagesConfig, s as resolveIdentityName, t as extractShortModelName } from "./response-prefix-template-
|
|
2
|
+
import { a as resolveEffectiveMessagesConfig, s as resolveIdentityName, t as extractShortModelName } from "./response-prefix-template-DDQsoC2g.js";
|
|
3
3
|
|
|
4
4
|
//#region src/channels/reply-prefix.ts
|
|
5
5
|
var reply_prefix_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { U as shouldLogVerbose } from "./subsystem-
|
|
2
|
+
import { U as shouldLogVerbose } from "./subsystem-9R2eOxp2.js";
|
|
3
3
|
import { d as DEFAULT_ACCOUNT_ID, f as normalizeAccountId, i as buildAgentPeerSessionKey, n as DEFAULT_MAIN_KEY, o as normalizeAgentId, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID, u as sanitizeAgentId } from "./session-key-X7pmdLBX.js";
|
|
4
|
-
import { u as resolveDefaultAgentId } from "./agent-scope-
|
|
4
|
+
import { u as resolveDefaultAgentId } from "./agent-scope-CYJrXxD6.js";
|
|
5
5
|
import { t as normalizeChatType } from "./chat-type-Coeec2xt.js";
|
|
6
|
-
import { t as listBindings } from "./bindings-
|
|
7
|
-
import { t as logDebug } from "./logger-
|
|
6
|
+
import { t as listBindings } from "./bindings-AUVd82yI.js";
|
|
7
|
+
import { t as logDebug } from "./logger-BKFID___.js";
|
|
8
8
|
|
|
9
9
|
//#region src/routing/resolve-route.ts
|
|
10
10
|
var resolve_route_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -8,7 +8,7 @@ import "./agent-scope-CXVIfJFJ.js";
|
|
|
8
8
|
import "./zod-schema-Bh8NOhFH.js";
|
|
9
9
|
import "./dock-DO9Vw5CE.js";
|
|
10
10
|
import "./message-channel-tuc9CdEw.js";
|
|
11
|
-
import "./sessions-
|
|
11
|
+
import "./sessions-C6O5qrbx.js";
|
|
12
12
|
import "./accounts-BVh3N1Fk.js";
|
|
13
13
|
import "./accounts-9jdDby1S.js";
|
|
14
14
|
import "./plugins-xybjDXd6.js";
|
|
@@ -18,7 +18,7 @@ import "./bindings-Dz4Bh_zw.js";
|
|
|
18
18
|
import "./logging-DRwtiLIS.js";
|
|
19
19
|
import "./send-QGiloXFZ.js";
|
|
20
20
|
import "./send-BvObbKlY.js";
|
|
21
|
-
import { p as installUnhandledRejectionHandler } from "./provider-dispatcher-
|
|
21
|
+
import { p as installUnhandledRejectionHandler } from "./provider-dispatcher-BD5K64cR.js";
|
|
22
22
|
import "./chat-envelope-CT-Ocz9D.js";
|
|
23
23
|
import "./strip-inbound-meta-zmUXypSS.js";
|
|
24
24
|
import "./client-_mml4Fa6.js";
|
|
@@ -27,14 +27,14 @@ import "./net-eJa3DljN.js";
|
|
|
27
27
|
import "./logger-Bg_B5M43.js";
|
|
28
28
|
import "./ip-DK-vcRii.js";
|
|
29
29
|
import "./tailnet-kbXXH7kK.js";
|
|
30
|
-
import "./subagent-registry-
|
|
30
|
+
import "./subagent-registry-BTv48FFX.js";
|
|
31
31
|
import "./response-prefix-template-DKzvekX_.js";
|
|
32
32
|
import "./agent-helpers-Bzz_tiPK.js";
|
|
33
33
|
import "./tool-images-CX2LXum2.js";
|
|
34
34
|
import "./exec-D1tuG1om.js";
|
|
35
35
|
import "./image-ops-BT4VediG.js";
|
|
36
36
|
import "./tokens-D1JVsjbg.js";
|
|
37
|
-
import "./hook-runner-global-
|
|
37
|
+
import "./hook-runner-global-DPdZsDAH.js";
|
|
38
38
|
import "./redact-CuM_QcqM.js";
|
|
39
39
|
import "./tool-display-FTmiDILs.js";
|
|
40
40
|
import "./markdown-tables-BKzJxBq0.js";
|
|
@@ -60,7 +60,7 @@ import "./channel-activity-DgNn51YG.js";
|
|
|
60
60
|
import "./session-cost-usage-B7CLLXW3.js";
|
|
61
61
|
import { r as formatUncaughtError } from "./errors-BO7MWwih.js";
|
|
62
62
|
import "./ports-lsof-CwRCSLwc.js";
|
|
63
|
-
import "./deliver-
|
|
63
|
+
import "./deliver-B5eZoNwr.js";
|
|
64
64
|
import "./plugin-auto-enable-CExwFUHo.js";
|
|
65
65
|
import "./dm-policy-shared-Bla9d1QG.js";
|
|
66
66
|
import "./send-D8F6oiAI.js";
|
|
@@ -77,9 +77,9 @@ import "./prompt-style-BIUEnMtC.js";
|
|
|
77
77
|
import "./pairing-labels-B7_jbF5v.js";
|
|
78
78
|
import { t as ensureRemoteClawCliOnPath } from "./path-env-D95MIp74.js";
|
|
79
79
|
import "./note-CpaPZuea.js";
|
|
80
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
80
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-BC1RH6cl.js";
|
|
81
81
|
import { t as assertSupportedRuntime } from "./runtime-guard-DVbgXEDX.js";
|
|
82
|
-
import { t as emitCliBanner } from "./banner-
|
|
82
|
+
import { t as emitCliBanner } from "./banner-B52X-rEb.js";
|
|
83
83
|
import "./doctor-config-flow-DJg2CUd7.js";
|
|
84
84
|
import { n as ensureConfigReady } from "./config-guard-DgO_sfHR.js";
|
|
85
85
|
import process$1 from "node:process";
|
|
@@ -94,7 +94,7 @@ const routeHealth = {
|
|
|
94
94
|
const verbose = getVerboseFlag(argv, { includeDebug: true });
|
|
95
95
|
const timeoutMs = getPositiveIntFlagValue(argv, "--timeout");
|
|
96
96
|
if (timeoutMs === null) return false;
|
|
97
|
-
const { healthCommand } = await import("./health-
|
|
97
|
+
const { healthCommand } = await import("./health-D6T18gwU.js").then((n) => n.i);
|
|
98
98
|
await healthCommand({
|
|
99
99
|
json,
|
|
100
100
|
timeoutMs,
|
|
@@ -114,7 +114,7 @@ const routeStatus = {
|
|
|
114
114
|
const verbose = getVerboseFlag(argv, { includeDebug: true });
|
|
115
115
|
const timeoutMs = getPositiveIntFlagValue(argv, "--timeout");
|
|
116
116
|
if (timeoutMs === null) return false;
|
|
117
|
-
const { statusCommand } = await import("./status-
|
|
117
|
+
const { statusCommand } = await import("./status-uyg2yOTM.js").then((n) => n.t);
|
|
118
118
|
await statusCommand({
|
|
119
119
|
json,
|
|
120
120
|
deep,
|
|
@@ -137,7 +137,7 @@ const routeSessions = {
|
|
|
137
137
|
if (store === null) return false;
|
|
138
138
|
const active = getFlagValue(argv, "--active");
|
|
139
139
|
if (active === null) return false;
|
|
140
|
-
const { sessionsCommand } = await import("./sessions-
|
|
140
|
+
const { sessionsCommand } = await import("./sessions-DPke45uf.js").then((n) => n.n);
|
|
141
141
|
await sessionsCommand({
|
|
142
142
|
json,
|
|
143
143
|
store,
|
|
@@ -153,7 +153,7 @@ const routeAgentsList = {
|
|
|
153
153
|
run: async (argv) => {
|
|
154
154
|
const json = hasFlag(argv, "--json");
|
|
155
155
|
const bindings = hasFlag(argv, "--bindings");
|
|
156
|
-
const { agentsListCommand } = await import("./agents-
|
|
156
|
+
const { agentsListCommand } = await import("./agents-Eg0_nSnn.js").then((n) => n.t);
|
|
157
157
|
await agentsListCommand({
|
|
158
158
|
json,
|
|
159
159
|
bindings
|
|
@@ -182,7 +182,7 @@ const routes = [
|
|
|
182
182
|
const pathArg = getCommandPositionals(argv)[2];
|
|
183
183
|
if (!pathArg) return false;
|
|
184
184
|
const json = hasFlag(argv, "--json");
|
|
185
|
-
const { runConfigGet } = await import("./config-cli-
|
|
185
|
+
const { runConfigGet } = await import("./config-cli-CkJFUL61.js");
|
|
186
186
|
await runConfigGet({
|
|
187
187
|
path: pathArg,
|
|
188
188
|
json
|
|
@@ -195,7 +195,7 @@ const routes = [
|
|
|
195
195
|
run: async (argv) => {
|
|
196
196
|
const pathArg = getCommandPositionals(argv)[2];
|
|
197
197
|
if (!pathArg) return false;
|
|
198
|
-
const { runConfigUnset } = await import("./config-cli-
|
|
198
|
+
const { runConfigUnset } = await import("./config-cli-CkJFUL61.js");
|
|
199
199
|
await runConfigUnset({ path: pathArg });
|
|
200
200
|
return true;
|
|
201
201
|
}
|
|
@@ -262,7 +262,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
262
262
|
assertSupportedRuntime();
|
|
263
263
|
if (await tryRouteCli(normalizedArgv)) return;
|
|
264
264
|
enableConsoleCapture();
|
|
265
|
-
const { buildProgram } = await import("./program-
|
|
265
|
+
const { buildProgram } = await import("./program-BlZGbNe5.js");
|
|
266
266
|
const program = buildProgram();
|
|
267
267
|
installUnhandledRejectionHandler();
|
|
268
268
|
process$1.on("uncaughtException", (error) => {
|
|
@@ -275,10 +275,10 @@ async function runCli(argv = process$1.argv) {
|
|
|
275
275
|
const { getProgramContext } = await import("./program-context-Dh6CCtTY.js").then((n) => n.n);
|
|
276
276
|
const ctx = getProgramContext(program);
|
|
277
277
|
if (ctx) {
|
|
278
|
-
const { registerCoreCliByName } = await import("./command-registry-
|
|
278
|
+
const { registerCoreCliByName } = await import("./command-registry-kxjFHjjE.js").then((n) => n.t);
|
|
279
279
|
await registerCoreCliByName(program, ctx, primary, parseArgv);
|
|
280
280
|
}
|
|
281
|
-
const { registerSubCliByName } = await import("./register.subclis-
|
|
281
|
+
const { registerSubCliByName } = await import("./register.subclis-CxT7d8Bs.js").then((n) => n.a);
|
|
282
282
|
await registerSubCliByName(program, primary);
|
|
283
283
|
}
|
|
284
284
|
if (!shouldSkipPluginCommandRegistration({
|
|
@@ -286,7 +286,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
286
286
|
primary,
|
|
287
287
|
hasBuiltinPrimary: primary !== null && program.commands.some((command) => command.name() === primary)
|
|
288
288
|
})) {
|
|
289
|
-
const { registerPluginCliCommands } = await import("./cli-
|
|
289
|
+
const { registerPluginCliCommands } = await import("./cli-C8XFOFxS.js");
|
|
290
290
|
const { loadConfig } = await import("./config-DWFrth_R.js").then((n) => n.t);
|
|
291
291
|
registerPluginCliCommands(program, loadConfig());
|
|
292
292
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { V as logVerbose } from "./subsystem-
|
|
3
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
4
|
-
import { d as resolveSlackAccount, m as resolveSlackBotToken } from "./plugins-
|
|
2
|
+
import { V as logVerbose } from "./subsystem-9R2eOxp2.js";
|
|
3
|
+
import { i as isSilentReplyText } from "./tokens-CFajuiSx.js";
|
|
4
|
+
import { d as resolveSlackAccount, m as resolveSlackBotToken } from "./plugins-sjrWIkqk.js";
|
|
5
5
|
import { a as requireTargetKind, i as parseTargetPrefixes, n as ensureTargetId, r as parseTargetMention, t as buildMessagingTarget } from "./targets-CFovdgJI.js";
|
|
6
|
-
import { t as loadConfig } from "./config-
|
|
7
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
8
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
9
|
-
import { i as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
10
|
-
import { t as renderMarkdownWithMarkers } from "./render-
|
|
6
|
+
import { t as loadConfig } from "./config-BIrnJuXL.js";
|
|
7
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-0ZB8yVlw.js";
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-CfM1ner1.js";
|
|
9
|
+
import { i as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-BK7K3Bbu.js";
|
|
10
|
+
import { t as renderMarkdownWithMarkers } from "./render-TpKSK5RV.js";
|
|
11
11
|
import { WebClient } from "@slack/web-api";
|
|
12
12
|
|
|
13
13
|
//#region src/slack/targets.ts
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { N as safeParseJson, S as CONFIG_DIR, V as logVerbose, ct as expandHomePrefix, lt as resolveRequiredHomeDir, ot as resolveOAuthDir, st as resolveStateDir, t as createSubsystemLogger, z as danger } from "./subsystem-
|
|
2
|
+
import { N as safeParseJson, S as CONFIG_DIR, V as logVerbose, ct as expandHomePrefix, lt as resolveRequiredHomeDir, ot as resolveOAuthDir, st as resolveStateDir, t as createSubsystemLogger, z as danger } from "./subsystem-9R2eOxp2.js";
|
|
3
3
|
import { d as DEFAULT_ACCOUNT_ID } from "./session-key-X7pmdLBX.js";
|
|
4
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
5
|
-
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-
|
|
6
|
-
import { i as writeConfigFile, p as resolveTelegramPreviewStreamMode, r as readConfigFileSnapshotForWrite, t as loadConfig } from "./config-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { n as formatErrorMessage, r as formatUncaughtError, t as extractErrorCode } from "./errors-
|
|
4
|
+
import { t as isTruthyEnvValue } from "./env-D3fELH5B.js";
|
|
5
|
+
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-sjrWIkqk.js";
|
|
6
|
+
import { i as writeConfigFile, p as resolveTelegramPreviewStreamMode, r as readConfigFileSnapshotForWrite, t as loadConfig } from "./config-BIrnJuXL.js";
|
|
7
|
+
import { t as withFileLock$1 } from "./file-lock-CEhZlbAi.js";
|
|
8
|
+
import { a as getFileExtension, c as normalizeMimeType, s as isGifMedia, u as mediaKindFromMime } from "./fetch--eFpeNac.js";
|
|
9
|
+
import { t as resolveFetch } from "./fetch-C3R1kkzO.js";
|
|
10
|
+
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-Bydtz0cv.js";
|
|
11
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-CfM1ner1.js";
|
|
12
|
+
import { i as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-BK7K3Bbu.js";
|
|
13
|
+
import { t as renderMarkdownWithMarkers } from "./render-TpKSK5RV.js";
|
|
14
|
+
import { t as redactSensitiveText } from "./redact-D2_cayCv.js";
|
|
15
|
+
import { n as formatErrorMessage, r as formatUncaughtError, t as extractErrorCode } from "./errors-Bg7BK273.js";
|
|
16
16
|
import { n as normalizePollInput } from "./polls-Bgx-fCuM.js";
|
|
17
17
|
import { t as makeProxyFetch } from "./proxy-HXV2llPX.js";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import fs, { readFileSync } from "node:fs";
|
|
20
20
|
import os from "node:os";
|
|
21
|
-
import
|
|
21
|
+
import json5 from "json5";
|
|
22
22
|
import fs$1 from "node:fs/promises";
|
|
23
23
|
import crypto from "node:crypto";
|
|
24
24
|
import { Agent, setGlobalDispatcher } from "undici";
|
|
@@ -1516,7 +1516,7 @@ async function loadCronStore(storePath) {
|
|
|
1516
1516
|
const raw = await fs.promises.readFile(storePath, "utf-8");
|
|
1517
1517
|
let parsed;
|
|
1518
1518
|
try {
|
|
1519
|
-
parsed =
|
|
1519
|
+
parsed = json5.parse(raw);
|
|
1520
1520
|
} catch (err) {
|
|
1521
1521
|
throw new Error(`Failed to parse cron store at ${storePath}: ${String(err)}`, { cause: err });
|
|
1522
1522
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
3
|
-
import { t as loadConfig } from "./config-
|
|
4
|
-
import { n as fetchWithTimeout } from "./fetch-timeout-
|
|
5
|
-
import { u as mediaKindFromMime } from "./fetch
|
|
6
|
-
import { t as resolveFetch } from "./fetch-
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
2
|
+
import { n as resolveSignalAccount } from "./accounts-B0V43QEN.js";
|
|
3
|
+
import { t as loadConfig } from "./config-BIrnJuXL.js";
|
|
4
|
+
import { n as fetchWithTimeout } from "./fetch-timeout-jOIu9Xud.js";
|
|
5
|
+
import { u as mediaKindFromMime } from "./fetch--eFpeNac.js";
|
|
6
|
+
import { t as resolveFetch } from "./fetch-C3R1kkzO.js";
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-CfM1ner1.js";
|
|
8
|
+
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-BK7K3Bbu.js";
|
|
9
9
|
import { n as generateSecureUuid } from "./secure-random-B_UuvbNQ.js";
|
|
10
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
10
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-6NNNORlp.js";
|
|
11
11
|
|
|
12
12
|
//#region src/signal/client.ts
|
|
13
13
|
const DEFAULT_TIMEOUT_MS = 1e4;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { M as resolveUserPath, k as normalizeE164 } from "./subsystem-
|
|
3
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
4
|
-
import { t as loadConfig } from "./config-
|
|
5
|
-
import { u as mediaKindFromMime } from "./fetch
|
|
6
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
7
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
8
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
2
|
+
import { M as resolveUserPath, k as normalizeE164 } from "./subsystem-9R2eOxp2.js";
|
|
3
|
+
import { t as resolveIMessageAccount } from "./accounts-DZ4c6f7x.js";
|
|
4
|
+
import { t as loadConfig } from "./config-BIrnJuXL.js";
|
|
5
|
+
import { u as mediaKindFromMime } from "./fetch--eFpeNac.js";
|
|
6
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-CfM1ner1.js";
|
|
7
|
+
import { t as convertMarkdownTables } from "./tables-CDsRjvfB.js";
|
|
8
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-6NNNORlp.js";
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { createInterface } from "node:readline";
|
|
11
11
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Q as resolvePreferredRemoteClawTmpDir } from "./subsystem-
|
|
3
|
-
import { _ as resolveDiscordAccount, v as normalizeDiscordToken } from "./plugins-
|
|
2
|
+
import { Q as resolvePreferredRemoteClawTmpDir } from "./subsystem-9R2eOxp2.js";
|
|
3
|
+
import { _ as resolveDiscordAccount, v as normalizeDiscordToken } from "./plugins-sjrWIkqk.js";
|
|
4
4
|
import { a as requireTargetKind, i as parseTargetPrefixes, n as ensureTargetId, r as parseTargetMention, t as buildMessagingTarget } from "./targets-CFovdgJI.js";
|
|
5
|
-
import { t as loadConfig } from "./config-
|
|
6
|
-
import { i as extensionForMime, l as maxBytesForKind } from "./fetch
|
|
7
|
-
import { t as resolveFetch } from "./fetch-
|
|
8
|
-
import { a as resolveRetryConfig, n as recordChannelActivity, o as retryAsync, r as createDiscordRetryRunner } from "./channel-activity-
|
|
9
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode } from "./chunk-
|
|
10
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
11
|
-
import { a as loadWebMediaRaw, i as loadWebMedia } from "./ir-
|
|
5
|
+
import { t as loadConfig } from "./config-BIrnJuXL.js";
|
|
6
|
+
import { i as extensionForMime, l as maxBytesForKind } from "./fetch--eFpeNac.js";
|
|
7
|
+
import { t as resolveFetch } from "./fetch-C3R1kkzO.js";
|
|
8
|
+
import { a as resolveRetryConfig, n as recordChannelActivity, o as retryAsync, r as createDiscordRetryRunner } from "./channel-activity-Bydtz0cv.js";
|
|
9
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode } from "./chunk-0ZB8yVlw.js";
|
|
10
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-CfM1ner1.js";
|
|
11
|
+
import { a as loadWebMediaRaw, i as loadWebMedia } from "./ir-BK7K3Bbu.js";
|
|
12
12
|
import { n as normalizePollInput, t as normalizePollDurationHours } from "./polls-Bgx-fCuM.js";
|
|
13
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
13
|
+
import { t as convertMarkdownTables } from "./tables-CDsRjvfB.js";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import { promisify } from "node:util";
|
|
16
16
|
import fs from "node:fs/promises";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./paths-DHuXVC00.js";
|
|
2
2
|
import "./utils-__cbkDgx.js";
|
|
3
|
-
import { O as createOutboundSendDeps, _t as enqueueSystemEvent, i as resolveOutboundTarget, w as agentCommand } from "./reply-
|
|
3
|
+
import { O as createOutboundSendDeps, _t as enqueueSystemEvent, i as resolveOutboundTarget, w as agentCommand } from "./reply-Ccq9RRYF.js";
|
|
4
4
|
import "./subsystem-YtLxC9Jh.js";
|
|
5
5
|
import { i as defaultRuntime } from "./ansi-DtaiOnt1.js";
|
|
6
6
|
import { c as normalizeMainKey } from "./session-key-DUewR3Vl.js";
|
|
7
7
|
import "./agent-scope-CqLq7cFg.js";
|
|
8
|
-
import {
|
|
8
|
+
import { st as buildOutboundSessionContext } from "./subagent-registry-DljM1oxO.js";
|
|
9
9
|
import "./onboard-helpers-D2nzz93W.js";
|
|
10
10
|
import "./message-channel-Byxx9SGy.js";
|
|
11
11
|
import "./send-CoDb77BF.js";
|
|
@@ -25,7 +25,7 @@ import "./accounts-BmUEiryJ.js";
|
|
|
25
25
|
import "./bindings-DeKYuXJO.js";
|
|
26
26
|
import "./logging-fywhKCmE.js";
|
|
27
27
|
import "./tokens-DJrhANSO.js";
|
|
28
|
-
import "./reply-payloads-
|
|
28
|
+
import "./reply-payloads-KYLwM629.js";
|
|
29
29
|
import "./send-Bj1TUsUZ.js";
|
|
30
30
|
import "./commands-YI4OIEz0.js";
|
|
31
31
|
import "./commands-registry-BKzejEC3.js";
|
|
@@ -34,7 +34,7 @@ import "./fetch-CfIaWynF.js";
|
|
|
34
34
|
import "./channel-activity-0siRvnUT.js";
|
|
35
35
|
import "./file-lock-CCBpdPM_.js";
|
|
36
36
|
import "./chat-envelope-DPKIEKwe.js";
|
|
37
|
-
import { l as updateSessionStore } from "./store-
|
|
37
|
+
import { l as updateSessionStore } from "./store-BfW5-y9S.js";
|
|
38
38
|
import "./strip-inbound-meta-aD15EKsc.js";
|
|
39
39
|
import "./session-cost-usage-BEJ7hSxb.js";
|
|
40
40
|
import "./auth-8CQIOfEF.js";
|
|
@@ -64,7 +64,7 @@ import "./markdown-tables-BsunnBTT.js";
|
|
|
64
64
|
import "./render-CIF_SgbA.js";
|
|
65
65
|
import "./tables-C6OJbUw4.js";
|
|
66
66
|
import "./ports-lsof-BmOgvEU5.js";
|
|
67
|
-
import { t as deliverOutboundPayloads } from "./deliver-
|
|
67
|
+
import { t as deliverOutboundPayloads } from "./deliver-Cu2kD7-u.js";
|
|
68
68
|
import "./plugin-auto-enable-onDiMat_.js";
|
|
69
69
|
import "./target-errors-B_VJlqx6.js";
|
|
70
70
|
import "./dm-policy-shared-AsIdue8Y.js";
|
|
@@ -81,7 +81,7 @@ import "./send-CcKbce_B.js";
|
|
|
81
81
|
import "./prompt-style-DMn5Aefm.js";
|
|
82
82
|
import "./pairing-labels-Cc_CF9XM.js";
|
|
83
83
|
import { t as requestHeartbeatNow } from "./heartbeat-wake-ByHafflq.js";
|
|
84
|
-
import { c as resolveGatewaySessionStoreTarget, o as loadSessionEntry, s as pruneLegacyStoreKeys } from "./session-utils-
|
|
84
|
+
import { c as resolveGatewaySessionStoreTarget, o as loadSessionEntry, s as pruneLegacyStoreKeys } from "./session-utils-ChEnoQCt.js";
|
|
85
85
|
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-CmaPaHik.js";
|
|
86
86
|
import { randomUUID } from "node:crypto";
|
|
87
87
|
|