@symerian/symi 2.5.3 → 2.5.5
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-ChTFYj8Q.js → accounts-CWktKM8a.js} +1 -1
- package/dist/{accounts-CJR8j_Kq.js → accounts-qtxJ-6em.js} +1 -1
- package/dist/{accounts-CI6zQTJj.js → accounts-tNElYrCH.js} +14 -14
- package/dist/{active-listener-D6sXIjAg.js → active-listener-C9r8ZB9m.js} +1 -1
- package/dist/{agent-scope-Bw1Ed8W9.js → agent-scope-BxoUQqgM.js} +3 -3
- package/dist/{agents-CTPFuwCu.js → agents-C-zwlmkD.js} +4 -4
- package/dist/{agents.config-CQVRXowo.js → agents.config-BhirEHt2.js} +1 -1
- package/dist/{agents.config-CVlanyIt.js → agents.config-Cuvv6Uxa.js} +1 -1
- package/dist/{audio-preflight-CPBOQV4I.js → audio-preflight-C40mKAp7.js} +4 -4
- package/dist/{audio-preflight-BkIfnmpi.js → audio-preflight-D02HwB-I.js} +29 -29
- package/dist/{auth-choice-BKmjyPNC.js → auth-choice-CKfB5JPP.js} +1 -1
- package/dist/{auth-choice-AlA3IixA.js → auth-choice-vHGMmJ9y.js} +1 -1
- package/dist/{banner-8_qXSW1S.js → banner-DYRlXmOu.js} +1 -1
- package/dist/{bindings-BU2hsBd9.js → bindings-B7Ke6LJi.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-C9-gaquj.js → channel-activity-CsM_hJ_s.js} +1 -1
- package/dist/{channel-options-CMm67N4v.js → channel-options-BLLQIoS0.js} +1 -1
- package/dist/{channel-options-nfXd5NWO.js → channel-options-CUCoqIfn.js} +1 -1
- package/dist/{channel-web-D6t5UK5A.js → channel-web-C-KPvAUY.js} +1 -1
- package/dist/{channels-cli-B_iBgjWh.js → channels-cli--qI2IkMe.js} +4 -4
- package/dist/{channels-cli-BA9QVK8Q.js → channels-cli-0g5R4QeZ.js} +4 -4
- package/dist/{chrome-D2SKJnR7.js → chrome-CDJYxX5a.js} +7 -7
- package/dist/{chrome-CxSAp8x3.js → chrome-EyvdASWt.js} +13 -13
- package/dist/{chunk-ClbN9Pqy.js → chunk-BW5f05BR.js} +1 -1
- package/dist/{cli-BF2nSOtU.js → cli-DJHjm2Kh.js} +1 -1
- package/dist/{cli-DyI0-h78.js → cli-pSBGjcjV.js} +1 -1
- package/dist/{command-format-UKHV-j0K.js → command-format-BaxDnULz.js} +1 -1
- package/dist/{command-registry-DhvgkMQN.js → command-registry-MkEozWAH.js} +9 -9
- package/dist/{commands-registry-VSmULp-g.js → commands-registry-D7CTCQPm.js} +4 -4
- package/dist/{completion-cli-DJ2AgNQF.js → completion-cli-BhTUmIQq.js} +1 -1
- package/dist/{completion-cli-CqHcRASb.js → completion-cli-dUtNBRxr.js} +2 -2
- package/dist/{config-eEaJddXj.js → config-DRbjHIwD.js} +12 -12
- package/dist/{config-cli-7yzVs6sD.js → config-cli-BsBWYY8X.js} +1 -1
- package/dist/{config-cli-9MIL9tVq.js → config-cli-DFuOjqjk.js} +1 -1
- package/dist/{configure-rs23A6dR.js → configure-TTAIJBn8.js} +3 -3
- package/dist/{configure-BWIGtf_8.js → configure-h82jPKQi.js} +3 -3
- package/dist/control-ui/js/app.js +2 -1
- package/dist/{deliver-C-37cZUe.js → deliver-BH0l3UKW.js} +1 -1
- package/dist/{deliver-BA7ZN3iM.js → deliver-D1ZN6-fl.js} +20 -20
- package/dist/{diagnostic-C3nsWaw3.js → diagnostic-CI0kRQkt.js} +1 -1
- package/dist/{doctor-completion-BqOO4r2O.js → doctor-completion-B6NNBqMH.js} +1 -1
- package/dist/{doctor-completion-DD-fb-G8.js → doctor-completion-DyoreZD-.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-DPlG6yha.js → frontmatter-C_bv_0P8.js} +2 -2
- package/dist/{gateway-cli-BVnEz6em.js → gateway-cli-D0B9Vgau.js} +9 -9
- package/dist/{gateway-cli-2R-SuiTy.js → gateway-cli-DxCKlysL.js} +9 -9
- package/dist/{gemini-auth-CF48hUR9.js → gemini-auth-CdSPHuLl.js} +1 -1
- package/dist/{github-copilot-token-DJqsJ2-r.js → github-copilot-token-C_qUP7p5.js} +7 -7
- package/dist/{glass-ui-ws-C9w0ySFw.js → glass-ui-ws-BgAvm1ZX.js} +37 -19
- package/dist/{glass-ui-ws-CmDHJq0W.js → glass-ui-ws-C4AdoDVx.js} +37 -19
- package/dist/{health-R_6vQfbY.js → health-B_0VYYAz.js} +1 -1
- package/dist/{health-CGJe8xON.js → health-CnR_-oJB.js} +1 -1
- package/dist/{hooks-cli-Cvc0R8C2.js → hooks-cli-DHY257oF.js} +2 -2
- package/dist/{hooks-cli-CUTMGbml.js → hooks-cli-SzFS-UE-.js} +2 -2
- package/dist/{image-DcpMiprB.js → image-CHzdaNJ4.js} +1 -1
- package/dist/{image-BGmVDkkw.js → image-Cp3JDEBB.js} +4 -4
- package/dist/{image-ops-S8-8dAhx.js → image-ops-CvJzsyvE.js} +1 -1
- package/dist/index.js +6 -6
- package/dist/{ir-CbFUkv_T.js → ir-DccrnjsE.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-C7OCYACU.js → local-roots-DMwIh5cS.js} +5 -5
- package/dist/{login-B8uiUAnV.js → login-CwCoxapk.js} +7 -7
- package/dist/{login-qr-CIZk8uKX.js → login-qr-Batf3PT5.js} +12 -12
- package/dist/{manager-BoLr3xR_.js → manager-D_LwXbc6.js} +13 -13
- package/dist/{manifest-registry-CneMHk0N.js → manifest-registry-D0IQ3WuX.js} +19 -19
- package/dist/{markdown-tables-DSHvnTLx.js → markdown-tables-iMQQZu4Q.js} +1 -1
- package/dist/{message-channel-DbsRltF2.js → message-channel-Dz5lr5b0.js} +1 -1
- package/dist/{model-auth-CwOuTuXl.js → model-auth-DK43VicI.js} +9 -9
- package/dist/{models-DPk6zVF5.js → models-5jM2RayT.js} +2 -2
- package/dist/{models-cli-BhijD6uM.js → models-cli-Cgj3-01s.js} +3 -3
- package/dist/{models-cli-1hWA7FrI.js → models-cli-CvD01IPe.js} +2 -2
- package/dist/{onboard-BgoNPLnU.js → onboard-DaiS9kgA.js} +2 -2
- package/dist/{onboard-CSPuFTdy.js → onboard-Dl1mj_Hn.js} +2 -2
- package/dist/{onboard-channels-D680exuN.js → onboard-channels-BEE7ctUH.js} +1 -1
- package/dist/{onboard-channels-r6Gvo5Cd.js → onboard-channels-CV2E5uqw.js} +1 -1
- package/dist/{onboarding-Dnmpcyzj.js → onboarding-CkC_X5pg.js} +3 -3
- package/dist/{onboarding-pxBeD60g.js → onboarding-DeTsj6mF.js} +3 -3
- package/dist/{onboarding.finalize-CBTphwf0.js → onboarding.finalize-C85tE9Ni.js} +6 -6
- package/dist/{onboarding.finalize-jsLRDHxC.js → onboarding.finalize-lXqeJkS2.js} +5 -5
- package/dist/{outbound-opDNxv-l.js → outbound-D4fN_ZlE.js} +7 -7
- package/dist/{outbound-attachment-Co2diKdP.js → outbound-attachment-DjNDa3zn.js} +2 -2
- package/dist/{paths-CySxpNhH.js → paths-Cce4PUkG.js} +5 -5
- package/dist/{paths-Cb87-LzP.js → paths-DLyHUt31.js} +1 -1
- package/dist/{pi-auth-json-DPWPoruO.js → pi-auth-json-0SYBFZTt.js} +8 -8
- package/dist/{pi-embedded-BRw7oe5n.js → pi-embedded-CxeVR0iH.js} +20 -19
- package/dist/{pi-embedded-helpers-DEEaCvEp.js → pi-embedded-helpers-ag2bosuj.js} +52 -52
- package/dist/{pi-embedded-helpers-B8kqLWns.js → pi-embedded-helpers-lgx_U5KS.js} +4 -4
- package/dist/{pi-embedded-DkqIIBK5.js → pi-embedded-sQit4Lz3.js} +162 -161
- package/dist/{plugin-registry-DZ4m64Mr.js → plugin-registry-BCiEkngD.js} +1 -1
- package/dist/{plugin-registry-BtIkzwfi.js → plugin-registry-DIvEhT-N.js} +1 -1
- package/dist/plugin-sdk/{channel-web-CDaDQ_94.js → channel-web-DMT6MeJf.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-BgTxNeXD.js → reply-ZvqOk3M5.js} +6 -5
- package/dist/plugin-sdk/{web-B6NRKGGa.js → web-HD4H0sgf.js} +2 -2
- package/dist/{plugins-C4C9637U.js → plugins-DQYI3Fr-.js} +9 -9
- package/dist/{plugins-cli-CRb9nRFi.js → plugins-cli-C5yJIYJi.js} +2 -2
- package/dist/{plugins-cli-DqE-InfX.js → plugins-cli-tmjVtXCB.js} +2 -2
- package/dist/{program-BDQRtHXP.js → program-BiU0lHX2.js} +7 -7
- package/dist/{program-context-DoK7rKBC.js → program-context-CzU7uySo.js} +17 -17
- package/dist/{prompt-select-styled-B3dTk26Y.js → prompt-select-styled-CKTbspbT.js} +4 -4
- package/dist/{prompt-select-styled-MqSvQaDb.js → prompt-select-styled-DlIBY9IY.js} +4 -4
- package/dist/{provider-auth-helpers-BDN3x0AU.js → provider-auth-helpers-BOPjr8Hp.js} +1 -1
- package/dist/{provider-auth-helpers-CwUeZ41c.js → provider-auth-helpers-hVbz-9Kx.js} +1 -1
- package/dist/{push-apns-BBaXO4aV.js → push-apns-BGed3jID.js} +1 -1
- package/dist/{push-apns-CgmHr336.js → push-apns-Dvev_pGx.js} +1 -1
- package/dist/{pw-ai-DhwRiS06.js → pw-ai-Ch7liUOW.js} +11 -11
- package/dist/{pw-ai-1htA-NnS.js → pw-ai-De-KR9_s.js} +1 -1
- package/dist/{qmd-manager-DdZh9PHs.js → qmd-manager-QHUP-_em.js} +7 -7
- package/dist/{register.agent-zqbU35_d.js → register.agent-B1stLSUm.js} +6 -6
- package/dist/{register.agent-BDIn4sRN.js → register.agent-CeyrNkOh.js} +5 -5
- package/dist/{register.configure-B9Atehb4.js → register.configure-CL1qsRsF.js} +6 -6
- package/dist/{register.configure-CBWMCe2I.js → register.configure-NHopwe6g.js} +6 -6
- package/dist/{register.maintenance-B3SsgHO_.js → register.maintenance-5CxvMDBR.js} +8 -8
- package/dist/{register.maintenance-BQy8hEp0.js → register.maintenance-CJw1HgBm.js} +7 -7
- package/dist/{register.message-Dg0Q8NL0.js → register.message-FddF6AGb.js} +2 -2
- package/dist/{register.message-B6KDPfgh.js → register.message-G13g5zE0.js} +2 -2
- package/dist/{register.onboard-Cg1itYBF.js → register.onboard-DdwVdIUR.js} +4 -4
- package/dist/{register.onboard-kaKkBUpb.js → register.onboard-LcM2w6sE.js} +4 -4
- package/dist/{register.setup-BBQtCyWL.js → register.setup-BeJzlxE4.js} +4 -4
- package/dist/{register.setup-BiBByjTo.js → register.setup-CYh_Czyw.js} +4 -4
- package/dist/{register.status-health-sessions-C3M6B_3w.js → register.status-health-sessions-CZ-BArps.js} +3 -3
- package/dist/{register.status-health-sessions-DL9QESHL.js → register.status-health-sessions-ChCsybS4.js} +3 -3
- package/dist/{register.subclis-B27L2Tlh.js → register.subclis-EcAY6hbD.js} +9 -9
- package/dist/{registry-DP24za6g.js → registry-CK4e9hn8.js} +17 -17
- package/dist/{replies-DpPvWiGF.js → replies-BIX_isV7.js} +3 -3
- package/dist/{reply-ahHa59uT.js → reply-Ctyysgpp.js} +6 -5
- package/dist/{reply-prefix-CtL0omgM.js → reply-prefix-XlyuyChD.js} +1 -1
- package/dist/{resolve-route-BVikmvWO.js → resolve-route-CZ-1eqw0.js} +4 -4
- package/dist/{retry-dGG-MbxL.js → retry-Cly39XZB.js} +1 -1
- package/dist/{run-main-DqlK3Wy-.js → run-main-CSuz3Ywa.js} +14 -14
- package/dist/{runner-B_KP4voe.js → runner-D0QUGA_X.js} +9 -9
- package/dist/{runner-BcQ0sF9T.js → runner-DUBExAb5.js} +1 -1
- package/dist/{send-DeEosX8F.js → send-B1u-LrcS.js} +18 -18
- package/dist/{send-DwKJK3sM.js → send-CiTGOvEc.js} +10 -10
- package/dist/{send-zSarozV2.js → send-DW96zgDL.js} +6 -6
- package/dist/{send-CHEOWVc8.js → send-DeFniOjh.js} +6 -6
- package/dist/{send-DbcLJb0P.js → send-WyRqb4WD.js} +7 -7
- package/dist/{server-methods-CGVoOkf3.js → server-methods-SgJRxF2Z.js} +7 -7
- package/dist/{server-methods-B9ZPWP0q.js → server-methods-UoDpfcdK.js} +7 -7
- package/dist/{server-node-events-DzlyRIPt.js → server-node-events-CIsxaaN2.js} +2 -2
- package/dist/{server-node-events-CjoofPGv.js → server-node-events-DIZ6YgkJ.js} +2 -2
- package/dist/{session-DV1MNlbV.js → session-SM36BTsl.js} +8 -8
- package/dist/{skill-commands-D610IKhm.js → skill-commands-BJMb_psG.js} +9 -9
- package/dist/{skills-o5WVqM4V.js → skills-BFekKL7i.js} +21 -21
- package/dist/{sqlite-6H6Zw1cs.js → sqlite-DRbx2dhW.js} +4 -4
- package/dist/{status-Dd3-6fq5.js → status--s6vuxyI.js} +2 -2
- package/dist/{status-DNRd5-AN.js → status-Ht9BRQAx.js} +1 -1
- package/dist/{status-TUjwchut.js → status-OyqCjO3u.js} +1 -1
- package/dist/{status-Csa1fdSW.js → status-ygwPf63x.js} +2 -2
- package/dist/{store-vVE6N2mH.js → store-C0wvOkae.js} +2 -2
- package/dist/{subagent-registry-DfimjEyh.js → subagent-registry-DraLysSX.js} +6 -5
- package/dist/{subsystem-DgpxyDQ_.js → subsystem-Bs9YvKLa.js} +1 -1
- package/dist/{tables-BIWsCKXJ.js → tables-DuZspiBu.js} +1 -1
- package/dist/{target-errors-DyItGyW9.js → target-errors-Be1SwYlW.js} +2 -2
- package/dist/{thinking-Ni0HF-w6.js → thinking-CdlENGRW.js} +5 -5
- package/dist/{tokens-c_SLAkVb.js → tokens-H1H1LiSQ.js} +1 -1
- package/dist/{tool-images-DBCfXdli.js → tool-images-DXB7tqWi.js} +2 -2
- package/dist/{tool-loop-detection-Bbc9OPFR.js → tool-loop-detection-Cs8_HCsx.js} +3 -3
- package/dist/{update-cli-4mLsTTm5.js → update-cli-BnjaBt4l.js} +7 -7
- package/dist/{update-cli-yJuLaKdL.js → update-cli-CIjgCudh.js} +8 -8
- package/dist/{update-runner-CB0M0lum.js → update-runner-UfdNrumf.js} +1 -1
- package/dist/{update-runner-C0hYiaj2.js → update-runner-oSl0jaVn.js} +1 -1
- package/dist/{web-BMLeQ_Ql.js → web-BSJ15erX.js} +1 -1
- package/dist/{web-BUrK0rTE.js → web-CIbnie2y.js} +2 -2
- package/dist/{web-Nrl97JcY.js → web-CIrcbfkd.js} +57 -57
- package/dist/{web-DrsjOzkW.js → web-DX-Sk1uG.js} +6 -6
- package/dist/{whatsapp-actions-oRQjcdQe.js → whatsapp-actions-D1RsnX7P.js} +23 -23
- package/dist/{workspace-CbvamIU6.js → workspace-wAaHI8-5.js} +6 -6
- package/package.json +1 -1
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as expandHomePrefix, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-
|
|
2
|
+
import { c as expandHomePrefix, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-Cce4PUkG.js";
|
|
3
3
|
import { _ as isCronSessionKey, b as resolveThreadParentSessionKey, c as normalizeMainKey, d as sanitizeAgentId, f as DEFAULT_ACCOUNT_ID, g as isAcpSessionKey, h as getSubagentDepth, l as resolveAgentIdFromSessionKey, o as classifySessionKeyShape, p as normalizeAccountId$2, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveThreadSessionKeys, v as isSubagentSessionKey, y as parseAgentSessionKey } from "./session-key-BCzIW1Y2.js";
|
|
4
|
-
import { $ as warn, B as sleep$1, D as escapeRegExp, E as ensureDir$3, G as danger, I as resolveUserPath, J as logVerbose, M as normalizeE164, O as formatTerminalLink, R as shortenHomeInString, S as CONFIG_DIR, U as truncateUtf16Safe, V as sliceUtf16Safe, W as isPlainObject, X as setVerbose, Z as shouldLogVerbose, _ as matchPluginCommand, a as normalizeAnyChannelId, d as createPluginRegistry, dt as resolvePreferredSymiTmpDir, et as colorize, f as normalizePluginHttpPath, g as listPluginCommands, h as getPluginCommandSpecs, k as isRecord$1, l as requireActivePluginRegistry, lt as normalizeLogLevel, m as executePluginCommand, n as CHAT_CHANNEL_ORDER, nt as theme, o as normalizeChannelId, p as clearPluginCommands, r as DEFAULT_CHAT_CHANNEL, rt as getChildLogger, tt as isRich, u as setActivePluginRegistry, v as createInternalHookEvent, w as clampInt, x as triggerInternalHook, z as shortenHomePath } from "./registry-
|
|
5
|
-
import { a as resolveAgentModelPrimary, c as resolveDefaultAgentId, d as resolveSessionAgentIds, i as resolveAgentModelFallbacksOverride, l as resolveEffectiveModelFallbacks, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentId } from "./agent-scope-
|
|
6
|
-
import { a as registerActiveProgressLine, i as clearActiveProgressLine, n as createNonExitingRuntime, o as unregisterActiveProgressLine, r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { S as logWarn, _ as runExec, b as logError, f as loadWorkspaceBootstrapFiles, g as runCommandWithTimeout, i as DEFAULT_IDENTITY_FILENAME, l as ensureAgentWorkspace, m as resolveSymiPackageRoot, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, u as filterBootstrapFilesForSession, v as spawnWithFallback, x as logInfo, y as logDebug } from "./workspace-
|
|
8
|
-
import { a as isSilentReplyText, i as isSilentReplyPrefixText, n as SILENT_REPLY_TOKEN, r as SYMIPULSE_TOKEN, t as HEARTBEAT_TOKEN } from "./tokens-
|
|
9
|
-
import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, c as listTelegramAccountIds, d as resolveSlackAccount, g as listEnabledDiscordAccounts, h as createDiscordActionGate, i as isWhatsAppGroupJid, l as resolveTelegramAccount, m as resolveSlackBotToken, n as listChannelPlugins, o as createTelegramActionGate, p as resolveSlackAppToken, r as normalizeChannelId$1, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeDiscordToken } from "./plugins-
|
|
10
|
-
import { a as logoutWeb, i as logWebSelfId, l as readWebSelfId, p as webAuthExists, r as getWebAuthAgeMs, t as resolveWhatsAppAccount } from "./accounts-
|
|
4
|
+
import { $ as warn, B as sleep$1, D as escapeRegExp, E as ensureDir$3, G as danger, I as resolveUserPath, J as logVerbose, M as normalizeE164, O as formatTerminalLink, R as shortenHomeInString, S as CONFIG_DIR, U as truncateUtf16Safe, V as sliceUtf16Safe, W as isPlainObject, X as setVerbose, Z as shouldLogVerbose, _ as matchPluginCommand, a as normalizeAnyChannelId, d as createPluginRegistry, dt as resolvePreferredSymiTmpDir, et as colorize, f as normalizePluginHttpPath, g as listPluginCommands, h as getPluginCommandSpecs, k as isRecord$1, l as requireActivePluginRegistry, lt as normalizeLogLevel, m as executePluginCommand, n as CHAT_CHANNEL_ORDER, nt as theme, o as normalizeChannelId, p as clearPluginCommands, r as DEFAULT_CHAT_CHANNEL, rt as getChildLogger, tt as isRich, u as setActivePluginRegistry, v as createInternalHookEvent, w as clampInt, x as triggerInternalHook, z as shortenHomePath } from "./registry-CK4e9hn8.js";
|
|
5
|
+
import { a as resolveAgentModelPrimary, c as resolveDefaultAgentId, d as resolveSessionAgentIds, i as resolveAgentModelFallbacksOverride, l as resolveEffectiveModelFallbacks, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentId } from "./agent-scope-BxoUQqgM.js";
|
|
6
|
+
import { a as registerActiveProgressLine, i as clearActiveProgressLine, n as createNonExitingRuntime, o as unregisterActiveProgressLine, r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-Bs9YvKLa.js";
|
|
7
|
+
import { S as logWarn, _ as runExec, b as logError, f as loadWorkspaceBootstrapFiles, g as runCommandWithTimeout, i as DEFAULT_IDENTITY_FILENAME, l as ensureAgentWorkspace, m as resolveSymiPackageRoot, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, u as filterBootstrapFilesForSession, v as spawnWithFallback, x as logInfo, y as logDebug } from "./workspace-wAaHI8-5.js";
|
|
8
|
+
import { a as isSilentReplyText, i as isSilentReplyPrefixText, n as SILENT_REPLY_TOKEN, r as SYMIPULSE_TOKEN, t as HEARTBEAT_TOKEN } from "./tokens-H1H1LiSQ.js";
|
|
9
|
+
import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, c as listTelegramAccountIds, d as resolveSlackAccount, g as listEnabledDiscordAccounts, h as createDiscordActionGate, i as isWhatsAppGroupJid, l as resolveTelegramAccount, m as resolveSlackBotToken, n as listChannelPlugins, o as createTelegramActionGate, p as resolveSlackAppToken, r as normalizeChannelId$1, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeDiscordToken } from "./plugins-DQYI3Fr-.js";
|
|
10
|
+
import { a as logoutWeb, i as logWebSelfId, l as readWebSelfId, p as webAuthExists, r as getWebAuthAgeMs, t as resolveWhatsAppAccount } from "./accounts-tNElYrCH.js";
|
|
11
11
|
import { t as normalizeChatType } from "./chat-type-C_KiWNAH.js";
|
|
12
12
|
import { t as parseBooleanValue$1 } from "./boolean-B8-BqKGQ.js";
|
|
13
|
-
import { n as resolveCliName, r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-
|
|
14
|
-
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-
|
|
15
|
-
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-
|
|
16
|
-
import { C as getGlobalHookRunner, S as parseInlineDirectives$1, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as MEDIA_TOKEN_RE, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as throwIfAborted, w as initializeGlobalHookRunner, x as splitMediaFromOutput, y as parseReplyDirectives } from "./deliver-
|
|
17
|
-
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-
|
|
13
|
+
import { n as resolveCliName, r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-BaxDnULz.js";
|
|
14
|
+
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-DeFniOjh.js";
|
|
15
|
+
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-CiTGOvEc.js";
|
|
16
|
+
import { C as getGlobalHookRunner, S as parseInlineDirectives$1, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as MEDIA_TOKEN_RE, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as throwIfAborted, w as initializeGlobalHookRunner, x as splitMediaFromOutput, y as parseReplyDirectives } from "./deliver-D1ZN6-fl.js";
|
|
17
|
+
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-CI0kRQkt.js";
|
|
18
18
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-Bxo4UHOL.js";
|
|
19
|
-
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-
|
|
20
|
-
import { $ as isVoiceCompatibleAudio, A as extractTelegramLocation, B as normalizeAllowFromWithStore$1, C as buildTelegramGroupFrom, D as buildTypingThreadParams, E as buildTelegramThreadParams, F as resolveTelegramMediaPlaceholder, G as formatLocationText, H as firstDefined$1, I as resolveTelegramReplyId, J as readChannelAllowFromStore, K as toLocationContext, L as resolveTelegramStreamMode, M as normalizeForwardedContext, N as resolveTelegramForumThreadId, O as describeReplyTarget, P as resolveTelegramGroupAllowFromContext, Q as listPairingChannels, R as resolveTelegramThreadSpec, S as buildSenderName, T as buildTelegramParentPeer, U as isSenderIdAllowed, V as resolveSenderAllowMatch, W as mergeAllowFromSources, X as upsertChannelPairingRequest, Y as removeChannelAllowFromStoreEntry, Z as getPairingAdapter, _ as resolveTelegramFetch, a as reactMessageTelegram, b as buildGroupLabel, c as sendStickerTelegram, d as wasSentByBot, et as parseTelegramTarget, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as hasBotMention, k as expandTextLinks, m as markdownToTelegramHtml, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramChunks, q as addChannelAllowFromStoreEntry, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, tt as resolveTelegramTargetChatType, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramGroupPeerId, x as buildSenderLabel, y as withTelegramApiErrorLogging, z as isSenderAllowed$1 } from "./send-
|
|
21
|
-
import { d as detectMime, f as extensionForMime, g as isGifMedia, h as isAudioFileName, i as getImageMetadata, m as imageMimeFromFormat, s as resizeToJpeg, x as mediaKindFromMime, y as MAX_IMAGE_BYTES } from "./image-ops-
|
|
22
|
-
import { A as normalizeProviderId, C as buildAllowedModelSet, D as isCliProvider, E as findNormalizedProviderValue, F as resolveSubagentSpawnModelSelection, G as DEFAULT_MODEL, H as OLLAMA_NATIVE_BASE_URL, I as resolveThinkingDefault, J as normalizeSecretInput, K as DEFAULT_PROVIDER, M as resolveConfiguredModelRef, N as resolveDefaultModelForAgent, O as modelKey, P as resolveModelRefFromString, T as buildModelAliasIndex, U as createOllamaStreamFn, W as DEFAULT_CONTEXT_TOKENS, Y as getShellPathFromLoginShell, Z as resolveShellEnvFallbackTimeoutMs, _ as ensureAuthProfileStore, a as resolveEnvApiKey, b as withFileLock, c as resolveAuthProfileOrder, d as markAuthProfileFailure, f as markAuthProfileUsed, g as markAuthProfileGood, h as listProfilesForProvider, i as resolveApiKeyForProvider, k as normalizeModelRef$2, l as getSoonestCooldownExpiry, m as dedupeProfileIds, n as getCustomProviderApiKey, o as resolveModelAuthMode, p as resolveApiKeyForProfile, q as resolveAuthProfileDisplayLabel, r as requireApiKey, t as getApiKeyForModel, u as isProfileInCooldown, v as resolveAuthStorePathForDisplay, w as buildConfiguredAllowlistKeys, y as resolveSymiAgentDir } from "./model-auth-
|
|
23
|
-
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-
|
|
19
|
+
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-CWktKM8a.js";
|
|
20
|
+
import { $ as isVoiceCompatibleAudio, A as extractTelegramLocation, B as normalizeAllowFromWithStore$1, C as buildTelegramGroupFrom, D as buildTypingThreadParams, E as buildTelegramThreadParams, F as resolveTelegramMediaPlaceholder, G as formatLocationText, H as firstDefined$1, I as resolveTelegramReplyId, J as readChannelAllowFromStore, K as toLocationContext, L as resolveTelegramStreamMode, M as normalizeForwardedContext, N as resolveTelegramForumThreadId, O as describeReplyTarget, P as resolveTelegramGroupAllowFromContext, Q as listPairingChannels, R as resolveTelegramThreadSpec, S as buildSenderName, T as buildTelegramParentPeer, U as isSenderIdAllowed, V as resolveSenderAllowMatch, W as mergeAllowFromSources, X as upsertChannelPairingRequest, Y as removeChannelAllowFromStoreEntry, Z as getPairingAdapter, _ as resolveTelegramFetch, a as reactMessageTelegram, b as buildGroupLabel, c as sendStickerTelegram, d as wasSentByBot, et as parseTelegramTarget, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as hasBotMention, k as expandTextLinks, m as markdownToTelegramHtml, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramChunks, q as addChannelAllowFromStoreEntry, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, tt as resolveTelegramTargetChatType, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramGroupPeerId, x as buildSenderLabel, y as withTelegramApiErrorLogging, z as isSenderAllowed$1 } from "./send-B1u-LrcS.js";
|
|
21
|
+
import { d as detectMime, f as extensionForMime, g as isGifMedia, h as isAudioFileName, i as getImageMetadata, m as imageMimeFromFormat, s as resizeToJpeg, x as mediaKindFromMime, y as MAX_IMAGE_BYTES } from "./image-ops-CvJzsyvE.js";
|
|
22
|
+
import { A as normalizeProviderId, C as buildAllowedModelSet, D as isCliProvider, E as findNormalizedProviderValue, F as resolveSubagentSpawnModelSelection, G as DEFAULT_MODEL, H as OLLAMA_NATIVE_BASE_URL, I as resolveThinkingDefault, J as normalizeSecretInput, K as DEFAULT_PROVIDER, M as resolveConfiguredModelRef, N as resolveDefaultModelForAgent, O as modelKey, P as resolveModelRefFromString, T as buildModelAliasIndex, U as createOllamaStreamFn, W as DEFAULT_CONTEXT_TOKENS, Y as getShellPathFromLoginShell, Z as resolveShellEnvFallbackTimeoutMs, _ as ensureAuthProfileStore, a as resolveEnvApiKey, b as withFileLock, c as resolveAuthProfileOrder, d as markAuthProfileFailure, f as markAuthProfileUsed, g as markAuthProfileGood, h as listProfilesForProvider, i as resolveApiKeyForProvider, k as normalizeModelRef$2, l as getSoonestCooldownExpiry, m as dedupeProfileIds, n as getCustomProviderApiKey, o as resolveModelAuthMode, p as resolveApiKeyForProfile, q as resolveAuthProfileDisplayLabel, r as requireApiKey, t as getApiKeyForModel, u as isProfileInCooldown, v as resolveAuthStorePathForDisplay, w as buildConfiguredAllowlistKeys, y as resolveSymiAgentDir } from "./model-auth-DK43VicI.js";
|
|
23
|
+
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-C_qUP7p5.js";
|
|
24
24
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DaNAekda.js";
|
|
25
|
-
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-
|
|
26
|
-
import { $ as normalizeDeliveryContext, A as isTransientHttpError, At as DEFAULT_UPLOAD_DIR, Bt as expandToolGroups, C as isContextOverflowError, Ct as resolveGroupSessionKey, D as isRateLimitAssistantError, Dt as registerBrowserRoutes, E as isLikelyContextOverflowError, Et as createBrowserRouteContext, F as resolveSandboxContext, Ft as resolveSandboxConfigForAgent, G as updateLastRoute, Gt as compileGlobPatterns, H as loadSessionStore, Ht as normalizeToolName, I as resolveSandboxRuntimeStatus, It as applyOwnerOnlyToolPolicy, J as isCacheEnabled, Jt as ensureSessionHeader, K as updateSessionStore, Kt as matchesAnyGlobPattern, L as extractDeliveryInfo, Lt as buildPluginToolGroups, M as parseImageSizeError, Mt as getBridgeAuthForPort, N as sanitizeUserFacingText, Nt as ensureBrowserControlAuth, O as isRawApiErrorPayload, Ot as resolveBrowserConfig, P as ensureSandboxWorkspaceForSession, Pt as resolveBrowserControlAuth, Q as mergeDeliveryContext, R as parseSessionThreadInfo, Rt as collectExplicitAllowlist, S as isCompactionFailureError, St as deriveSessionMetaPatch, T as isFailoverErrorMessage, Tt as resolveSessionLockMaxHoldFromTimeout, U as readSessionUpdatedAt, Ut as resolveToolProfilePolicy, V as resolveAndPersistSessionFile, Vt as mergeAlsoAllowPolicy, W as recordSessionMetaFromInbound, Wt as stripPluginOnlyAllowlist, X as deliveryContextFromSession, Xt as resolveBootstrapTotalMaxChars, Y as resolveCacheTtlMs$1, Yt as resolveBootstrapMaxChars, Z as deliveryContextKey, Zt as sanitizeGoogleTurnOrdering, _ as formatRawAssistantErrorForUi, _t as resolveFreshSessionTotalTokens, a as isMessagingToolDuplicateNormalized, at as extractToolCallNames, b as isBillingAssistantError, bt as resolveExplicitAgentSessionKey, c as extractToolCallsFromAssistant, ct as hasInterSessionUserProvenance, d as isAntigravityClaude, dt as evaluateSessionFreshness, et as normalizeSessionDeliveryFields, f as isGoogleModelApi, ft as resolveChannelResetConfig, g as formatBillingErrorMessage, gt as DEFAULT_RESET_TRIGGERS, h as formatAssistantErrorText, ht as resolveThreadFlag, it as countToolResults, j as parseImageDimensionError, jt as resolveExistingPathsWithinRoot, k as isTimeoutErrorMessage, kt as resolveProfile, l as extractToolResultId, lt as normalizeInputProvenance, m as classifyFailoverReason, mt as resolveSessionResetType, n as validateGeminiTurns, nt as archiveSessionTranscripts, o as normalizeTextForComparison, ot as INPUT_PROVENANCE_KIND_VALUES, p as BILLING_ERROR_USER_MESSAGE, pt as resolveSessionResetPolicy, q as updateSessionStoreEntry, qt as buildBootstrapContextFiles, r as pickFallbackThinkingLevel, rt as capArrayByJsonBytes, s as sanitizeSessionMessagesImages, st as applyInputProvenanceToUserMessage, t as validateAnthropicTurns, tt as normalizeAccountId$3, u as downgradeOpenAIReasoningBlocks, ut as resolveSessionKey, v as getApiErrorPayloadFingerprint, vt as canonicalizeMainSessionAlias, w as isFailoverAssistantError, wt as acquireSessionWriteLock, x as isCloudCodeAssistFormatError, xt as resolveMainSessionKey, y as isAuthAssistantError, z as appendAssistantMessageToSessionTranscript, zt as expandPolicyWithPluginGroups } from "./pi-embedded-helpers-
|
|
27
|
-
import { A as VERSION, C as getConfigValueAtPath, D as isSafeExecutableValue, E as unsetConfigValueAtPath, O as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, S as unsetConfigOverride, T as setConfigValueAtPath, _ as parseDurationMs, a as writeConfigFile, b as resetConfigOverrides, c as TELEGRAM_COMMAND_NAME_PATTERN, f as isInboundPathAllowed, g as normalizeScpRemoteHost, h as resolveIMessageRemoteAttachmentRoots, i as resolveConfigSnapshotHash, k as resolveAgentMaxConcurrent, l as normalizeTelegramCommandName, m as resolveIMessageAttachmentRoots, n as loadConfig, o as validateConfigObjectWithPlugins, r as readConfigFileSnapshot, u as resolveTelegramCustomCommands, v as validateJsonSchemaValue, w as parseConfigPath, x as setConfigOverride, y as getConfigOverrides } from "./config-
|
|
28
|
-
import { a as applyTestPluginDefaults, c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, i as safeStatSync, n as discoverSymiPlugins, o as normalizePluginsConfig, r as isPathInside, s as resolveEnableState, t as loadPluginManifestRegistry, u as isPathInsideWithRealpath } from "./manifest-registry-
|
|
29
|
-
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
30
|
-
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-
|
|
25
|
+
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-Dz5lr5b0.js";
|
|
26
|
+
import { $ as normalizeDeliveryContext, A as isTransientHttpError, At as DEFAULT_UPLOAD_DIR, Bt as expandToolGroups, C as isContextOverflowError, Ct as resolveGroupSessionKey, D as isRateLimitAssistantError, Dt as registerBrowserRoutes, E as isLikelyContextOverflowError, Et as createBrowserRouteContext, F as resolveSandboxContext, Ft as resolveSandboxConfigForAgent, G as updateLastRoute, Gt as compileGlobPatterns, H as loadSessionStore, Ht as normalizeToolName, I as resolveSandboxRuntimeStatus, It as applyOwnerOnlyToolPolicy, J as isCacheEnabled, Jt as ensureSessionHeader, K as updateSessionStore, Kt as matchesAnyGlobPattern, L as extractDeliveryInfo, Lt as buildPluginToolGroups, M as parseImageSizeError, Mt as getBridgeAuthForPort, N as sanitizeUserFacingText, Nt as ensureBrowserControlAuth, O as isRawApiErrorPayload, Ot as resolveBrowserConfig, P as ensureSandboxWorkspaceForSession, Pt as resolveBrowserControlAuth, Q as mergeDeliveryContext, R as parseSessionThreadInfo, Rt as collectExplicitAllowlist, S as isCompactionFailureError, St as deriveSessionMetaPatch, T as isFailoverErrorMessage, Tt as resolveSessionLockMaxHoldFromTimeout, U as readSessionUpdatedAt, Ut as resolveToolProfilePolicy, V as resolveAndPersistSessionFile, Vt as mergeAlsoAllowPolicy, W as recordSessionMetaFromInbound, Wt as stripPluginOnlyAllowlist, X as deliveryContextFromSession, Xt as resolveBootstrapTotalMaxChars, Y as resolveCacheTtlMs$1, Yt as resolveBootstrapMaxChars, Z as deliveryContextKey, Zt as sanitizeGoogleTurnOrdering, _ as formatRawAssistantErrorForUi, _t as resolveFreshSessionTotalTokens, a as isMessagingToolDuplicateNormalized, at as extractToolCallNames, b as isBillingAssistantError, bt as resolveExplicitAgentSessionKey, c as extractToolCallsFromAssistant, ct as hasInterSessionUserProvenance, d as isAntigravityClaude, dt as evaluateSessionFreshness, et as normalizeSessionDeliveryFields, f as isGoogleModelApi, ft as resolveChannelResetConfig, g as formatBillingErrorMessage, gt as DEFAULT_RESET_TRIGGERS, h as formatAssistantErrorText, ht as resolveThreadFlag, it as countToolResults, j as parseImageDimensionError, jt as resolveExistingPathsWithinRoot, k as isTimeoutErrorMessage, kt as resolveProfile, l as extractToolResultId, lt as normalizeInputProvenance, m as classifyFailoverReason, mt as resolveSessionResetType, n as validateGeminiTurns, nt as archiveSessionTranscripts, o as normalizeTextForComparison, ot as INPUT_PROVENANCE_KIND_VALUES, p as BILLING_ERROR_USER_MESSAGE, pt as resolveSessionResetPolicy, q as updateSessionStoreEntry, qt as buildBootstrapContextFiles, r as pickFallbackThinkingLevel, rt as capArrayByJsonBytes, s as sanitizeSessionMessagesImages, st as applyInputProvenanceToUserMessage, t as validateAnthropicTurns, tt as normalizeAccountId$3, u as downgradeOpenAIReasoningBlocks, ut as resolveSessionKey, v as getApiErrorPayloadFingerprint, vt as canonicalizeMainSessionAlias, w as isFailoverAssistantError, wt as acquireSessionWriteLock, x as isCloudCodeAssistFormatError, xt as resolveMainSessionKey, y as isAuthAssistantError, z as appendAssistantMessageToSessionTranscript, zt as expandPolicyWithPluginGroups } from "./pi-embedded-helpers-ag2bosuj.js";
|
|
27
|
+
import { A as VERSION, C as getConfigValueAtPath, D as isSafeExecutableValue, E as unsetConfigValueAtPath, O as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, S as unsetConfigOverride, T as setConfigValueAtPath, _ as parseDurationMs, a as writeConfigFile, b as resetConfigOverrides, c as TELEGRAM_COMMAND_NAME_PATTERN, f as isInboundPathAllowed, g as normalizeScpRemoteHost, h as resolveIMessageRemoteAttachmentRoots, i as resolveConfigSnapshotHash, k as resolveAgentMaxConcurrent, l as normalizeTelegramCommandName, m as resolveIMessageAttachmentRoots, n as loadConfig, o as validateConfigObjectWithPlugins, r as readConfigFileSnapshot, u as resolveTelegramCustomCommands, v as validateJsonSchemaValue, w as parseConfigPath, x as setConfigOverride, y as getConfigOverrides } from "./config-DRbjHIwD.js";
|
|
28
|
+
import { a as applyTestPluginDefaults, c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, i as safeStatSync, n as discoverSymiPlugins, o as normalizePluginsConfig, r as isPathInside, s as resolveEnableState, t as loadPluginManifestRegistry, u as isPathInsideWithRealpath } from "./manifest-registry-D0IQ3WuX.js";
|
|
29
|
+
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-EyvdASWt.js";
|
|
30
|
+
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-BFekKL7i.js";
|
|
31
31
|
import { n as formatErrorMessage, r as formatUncaughtError } from "./errors-BoQgnc8X.js";
|
|
32
32
|
import { i as isBlockedHostnameOrIp, o as normalizeHostname, t as SsrFBlockedError } from "./ssrf-BTMDZjHT.js";
|
|
33
|
-
import { n as getMediaDir, r as saveMediaBuffer } from "./store-
|
|
34
|
-
import { _ as normalizeAtHashSlug, a as normalizeReasoningLevel, b as normalizeStringEntriesLower, c as normalizeVerboseLevel, d as getChannelDock, f as listChannelDocks, g as resolveChannelGroupToolsPolicy, h as resolveChannelGroupRequireMention, i as normalizeElevatedLevel, l as resolveResponseUsageMode, m as resolveChannelGroupPolicy, n as formatXHighModelHint, o as normalizeThinkLevel, p as normalizeSignalMessagingTarget, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking, v as normalizeHyphenSlug, y as normalizeStringEntries } from "./thinking-
|
|
33
|
+
import { n as getMediaDir, r as saveMediaBuffer } from "./store-C0wvOkae.js";
|
|
34
|
+
import { _ as normalizeAtHashSlug, a as normalizeReasoningLevel, b as normalizeStringEntriesLower, c as normalizeVerboseLevel, d as getChannelDock, f as listChannelDocks, g as resolveChannelGroupToolsPolicy, h as resolveChannelGroupRequireMention, i as normalizeElevatedLevel, l as resolveResponseUsageMode, m as resolveChannelGroupPolicy, n as formatXHighModelHint, o as normalizeThinkLevel, p as normalizeSignalMessagingTarget, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking, v as normalizeHyphenSlug, y as normalizeStringEntries } from "./thinking-CdlENGRW.js";
|
|
35
35
|
import { n as resolveConversationLabel } from "./conversation-label-DXUkoKcB.js";
|
|
36
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
37
|
-
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-
|
|
36
|
+
import { t as resolveIMessageAccount } from "./accounts-qtxJ-6em.js";
|
|
37
|
+
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-DLyHUt31.js";
|
|
38
38
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-DDYvbmRV.js";
|
|
39
|
-
import { i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-
|
|
40
|
-
import { S as ensureSymiModelsJson, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, x as extractTextFromChatContent, y as resolveToolDisplay } from "./image-
|
|
41
|
-
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
42
|
-
import { i as resolveMemorySearchConfig, n as probeOllamaEmbeddingModels, r as resolveOllamaBaseUrl } from "./manager-
|
|
43
|
-
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as runTasksWithConcurrency } from "./sqlite-
|
|
44
|
-
import { n as retryAsync } from "./retry-
|
|
45
|
-
import { a as createActionGate, c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as imageResult, p as readStringOrNumberParam, r as unknownTargetError, s as imageResultFromFile, t as ambiguousTargetError, u as readNumberParam } from "./target-errors-
|
|
46
|
-
import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-
|
|
47
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
39
|
+
import { i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-DXB7tqWi.js";
|
|
40
|
+
import { S as ensureSymiModelsJson, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, x as extractTextFromChatContent, y as resolveToolDisplay } from "./image-Cp3JDEBB.js";
|
|
41
|
+
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-XlyuyChD.js";
|
|
42
|
+
import { i as resolveMemorySearchConfig, n as probeOllamaEmbeddingModels, r as resolveOllamaBaseUrl } from "./manager-D_LwXbc6.js";
|
|
43
|
+
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as runTasksWithConcurrency } from "./sqlite-DRbx2dhW.js";
|
|
44
|
+
import { n as retryAsync } from "./retry-Cly39XZB.js";
|
|
45
|
+
import { a as createActionGate, c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as imageResult, p as readStringOrNumberParam, r as unknownTargetError, s as imageResultFromFile, t as ambiguousTargetError, u as readNumberParam } from "./target-errors-Be1SwYlW.js";
|
|
46
|
+
import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-BW5f05BR.js";
|
|
47
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-iMQQZu4Q.js";
|
|
48
48
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-DL3f_O53.js";
|
|
49
|
-
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
50
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-
|
|
51
|
-
import { _ as resolveNativeCommandsEnabled, a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, g as isRestartEnabled, h as isNativeCommandsExplicitlyDisabled, i as listChatCommands, l as parseCommandArgs, m as isCommandFlagEnabled, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices, v as resolveNativeSkillsEnabled } from "./commands-registry-
|
|
52
|
-
import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-
|
|
49
|
+
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, t as getAgentScopedMediaLocalRoots } from "./local-roots-DMwIh5cS.js";
|
|
50
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-DccrnjsE.js";
|
|
51
|
+
import { _ as resolveNativeCommandsEnabled, a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, g as isRestartEnabled, h as isNativeCommandsExplicitlyDisabled, i as listChatCommands, l as parseCommandArgs, m as isCommandFlagEnabled, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices, v as resolveNativeSkillsEnabled } from "./commands-registry-D7CTCQPm.js";
|
|
52
|
+
import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-BJMb_psG.js";
|
|
53
53
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-BlHX0H3E.js";
|
|
54
|
-
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$1, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-
|
|
54
|
+
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$1, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-D0QUGA_X.js";
|
|
55
55
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-Bso4i15F.js";
|
|
56
56
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-Bup9wS1y.js";
|
|
57
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-
|
|
57
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-CsM_hJ_s.js";
|
|
58
58
|
import { n as normalizePollInput } from "./polls-CCuCaqgv.js";
|
|
59
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
60
|
-
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-
|
|
61
|
-
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-
|
|
62
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
59
|
+
import { t as convertMarkdownTables } from "./tables-DuZspiBu.js";
|
|
60
|
+
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-DW96zgDL.js";
|
|
61
|
+
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-WyRqb4WD.js";
|
|
62
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-CZ-1eqw0.js";
|
|
63
63
|
import { t as makeProxyFetch } from "./proxy-CBJ1upuz.js";
|
|
64
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
65
|
-
import { t as getActiveWebListener } from "./active-listener-
|
|
64
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-BIX_isV7.js";
|
|
65
|
+
import { t as getActiveWebListener } from "./active-listener-C9r8ZB9m.js";
|
|
66
66
|
import { createRequire } from "node:module";
|
|
67
|
-
import * as fs$
|
|
67
|
+
import * as fs$2 from "node:fs/promises";
|
|
68
68
|
import fs from "node:fs/promises";
|
|
69
69
|
import os, { homedir } from "node:os";
|
|
70
70
|
import * as path$1 from "node:path";
|
|
71
71
|
import path from "node:path";
|
|
72
|
-
import
|
|
72
|
+
import fs$1, { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
73
73
|
import JSON5 from "json5";
|
|
74
74
|
import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
75
75
|
import { inspect, promisify } from "node:util";
|
|
@@ -3144,7 +3144,7 @@ async function resolveSymiDocsPath(params) {
|
|
|
3144
3144
|
const workspaceDir = params.workspaceDir?.trim();
|
|
3145
3145
|
if (workspaceDir) {
|
|
3146
3146
|
const workspaceDocs = path.join(workspaceDir, "docs");
|
|
3147
|
-
if (
|
|
3147
|
+
if (fs$1.existsSync(workspaceDocs)) return workspaceDocs;
|
|
3148
3148
|
}
|
|
3149
3149
|
const packageRoot = await resolveSymiPackageRoot({
|
|
3150
3150
|
cwd: params.cwd,
|
|
@@ -3153,7 +3153,7 @@ async function resolveSymiDocsPath(params) {
|
|
|
3153
3153
|
});
|
|
3154
3154
|
if (!packageRoot) return null;
|
|
3155
3155
|
const packageDocs = path.join(packageRoot, "docs");
|
|
3156
|
-
return
|
|
3156
|
+
return fs$1.existsSync(packageDocs) ? packageDocs : null;
|
|
3157
3157
|
}
|
|
3158
3158
|
|
|
3159
3159
|
//#endregion
|
|
@@ -3462,7 +3462,7 @@ async function getMemorySearchManager(params) {
|
|
|
3462
3462
|
if (cached) return { manager: cached };
|
|
3463
3463
|
}
|
|
3464
3464
|
try {
|
|
3465
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
3465
|
+
const { QmdMemoryManager } = await import("./qmd-manager-QHUP-_em.js");
|
|
3466
3466
|
const primary = await QmdMemoryManager.create({
|
|
3467
3467
|
cfg: params.cfg,
|
|
3468
3468
|
agentId: params.agentId,
|
|
@@ -3474,7 +3474,7 @@ async function getMemorySearchManager(params) {
|
|
|
3474
3474
|
const wrapper = new FallbackMemoryManager({
|
|
3475
3475
|
primary,
|
|
3476
3476
|
fallbackFactory: async () => {
|
|
3477
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
3477
|
+
const { MemoryIndexManager } = await import("./manager-D_LwXbc6.js").then((n) => n.t);
|
|
3478
3478
|
return await MemoryIndexManager.get(params);
|
|
3479
3479
|
}
|
|
3480
3480
|
}, () => QMD_MANAGER_CACHE.delete(cacheKey));
|
|
@@ -3487,7 +3487,7 @@ async function getMemorySearchManager(params) {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
}
|
|
3489
3489
|
try {
|
|
3490
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
3490
|
+
const { MemoryIndexManager } = await import("./manager-D_LwXbc6.js").then((n) => n.t);
|
|
3491
3491
|
return { manager: await MemoryIndexManager.get(params) };
|
|
3492
3492
|
} catch (err) {
|
|
3493
3493
|
return {
|
|
@@ -4175,7 +4175,7 @@ function resolveDefaultIdentityPath() {
|
|
|
4175
4175
|
return path.join(resolveStateDir(), "identity", "device.json");
|
|
4176
4176
|
}
|
|
4177
4177
|
function ensureDir$2(filePath) {
|
|
4178
|
-
|
|
4178
|
+
fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
4179
4179
|
}
|
|
4180
4180
|
const ED25519_SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
|
|
4181
4181
|
function base64UrlEncode(buf) {
|
|
@@ -4211,8 +4211,8 @@ function generateIdentity() {
|
|
|
4211
4211
|
}
|
|
4212
4212
|
function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
4213
4213
|
try {
|
|
4214
|
-
if (
|
|
4215
|
-
const raw =
|
|
4214
|
+
if (fs$1.existsSync(filePath)) {
|
|
4215
|
+
const raw = fs$1.readFileSync(filePath, "utf8");
|
|
4216
4216
|
const parsed = JSON.parse(raw);
|
|
4217
4217
|
if (parsed?.version === 1 && typeof parsed.deviceId === "string" && typeof parsed.publicKeyPem === "string" && typeof parsed.privateKeyPem === "string") {
|
|
4218
4218
|
const derivedId = fingerprintPublicKey(parsed.publicKeyPem);
|
|
@@ -4221,9 +4221,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
4221
4221
|
...parsed,
|
|
4222
4222
|
deviceId: derivedId
|
|
4223
4223
|
};
|
|
4224
|
-
|
|
4224
|
+
fs$1.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
|
|
4225
4225
|
try {
|
|
4226
|
-
|
|
4226
|
+
fs$1.chmodSync(filePath, 384);
|
|
4227
4227
|
} catch {}
|
|
4228
4228
|
return {
|
|
4229
4229
|
deviceId: derivedId,
|
|
@@ -4248,9 +4248,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
4248
4248
|
privateKeyPem: identity.privateKeyPem,
|
|
4249
4249
|
createdAtMs: Date.now()
|
|
4250
4250
|
};
|
|
4251
|
-
|
|
4251
|
+
fs$1.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
|
|
4252
4252
|
try {
|
|
4253
|
-
|
|
4253
|
+
fs$1.chmodSync(filePath, 384);
|
|
4254
4254
|
} catch {}
|
|
4255
4255
|
return identity;
|
|
4256
4256
|
}
|
|
@@ -4400,8 +4400,8 @@ function resolveDeviceAuthPath(env = process.env) {
|
|
|
4400
4400
|
}
|
|
4401
4401
|
function readStore(filePath) {
|
|
4402
4402
|
try {
|
|
4403
|
-
if (!
|
|
4404
|
-
const raw =
|
|
4403
|
+
if (!fs$1.existsSync(filePath)) return null;
|
|
4404
|
+
const raw = fs$1.readFileSync(filePath, "utf8");
|
|
4405
4405
|
const parsed = JSON.parse(raw);
|
|
4406
4406
|
if (parsed?.version !== 1 || typeof parsed.deviceId !== "string") return null;
|
|
4407
4407
|
if (!parsed.tokens || typeof parsed.tokens !== "object") return null;
|
|
@@ -4411,10 +4411,10 @@ function readStore(filePath) {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
}
|
|
4413
4413
|
function writeStore(filePath, store) {
|
|
4414
|
-
|
|
4415
|
-
|
|
4414
|
+
fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
4415
|
+
fs$1.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
|
|
4416
4416
|
try {
|
|
4417
|
-
|
|
4417
|
+
fs$1.chmodSync(filePath, 384);
|
|
4418
4418
|
} catch {}
|
|
4419
4419
|
}
|
|
4420
4420
|
function loadDeviceAuthToken(params) {
|
|
@@ -7201,7 +7201,7 @@ async function routeReply(params) {
|
|
|
7201
7201
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
7202
7202
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
7203
7203
|
try {
|
|
7204
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
7204
|
+
const { deliverOutboundPayloads } = await import("./deliver-D1ZN6-fl.js").then((n) => n.n);
|
|
7205
7205
|
return {
|
|
7206
7206
|
ok: true,
|
|
7207
7207
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -7597,7 +7597,7 @@ function normalizeSessionKey(value) {
|
|
|
7597
7597
|
}
|
|
7598
7598
|
function readSessionStore(storePath) {
|
|
7599
7599
|
try {
|
|
7600
|
-
const raw =
|
|
7600
|
+
const raw = fs$1.readFileSync(storePath, "utf-8");
|
|
7601
7601
|
const parsed = JSON5.parse(raw);
|
|
7602
7602
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
7603
7603
|
} catch {}
|
|
@@ -12656,7 +12656,7 @@ async function createModelSelectionState(params) {
|
|
|
12656
12656
|
}
|
|
12657
12657
|
}
|
|
12658
12658
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
12659
|
-
const { ensureAuthProfileStore } = await import("./model-auth-
|
|
12659
|
+
const { ensureAuthProfileStore } = await import("./model-auth-DK43VicI.js").then((n) => n.s);
|
|
12660
12660
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
12661
12661
|
const providerKey = normalizeProviderId(provider);
|
|
12662
12662
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -15029,8 +15029,8 @@ const DEFAULT_SAFE_BINS = [
|
|
|
15029
15029
|
];
|
|
15030
15030
|
function isExecutableFile(filePath) {
|
|
15031
15031
|
try {
|
|
15032
|
-
if (!
|
|
15033
|
-
if (process.platform !== "win32")
|
|
15032
|
+
if (!fs$1.statSync(filePath).isFile()) return false;
|
|
15033
|
+
if (process.platform !== "win32") fs$1.accessSync(filePath, fs$1.constants.X_OK);
|
|
15034
15034
|
return true;
|
|
15035
15035
|
} catch {
|
|
15036
15036
|
return false;
|
|
@@ -15068,7 +15068,7 @@ function normalizeMatchTarget(value) {
|
|
|
15068
15068
|
}
|
|
15069
15069
|
function tryRealpath(value) {
|
|
15070
15070
|
try {
|
|
15071
|
-
return
|
|
15071
|
+
return fs$1.realpathSync(value);
|
|
15072
15072
|
} catch {
|
|
15073
15073
|
return null;
|
|
15074
15074
|
}
|
|
@@ -16300,7 +16300,7 @@ function mergeLegacyAgent(current, legacy) {
|
|
|
16300
16300
|
}
|
|
16301
16301
|
function ensureDir$1(filePath) {
|
|
16302
16302
|
const dir = path.dirname(filePath);
|
|
16303
|
-
|
|
16303
|
+
fs$1.mkdirSync(dir, { recursive: true });
|
|
16304
16304
|
}
|
|
16305
16305
|
function coerceAllowlistEntries(allowlist) {
|
|
16306
16306
|
if (!Array.isArray(allowlist) || allowlist.length === 0) return Array.isArray(allowlist) ? allowlist : void 0;
|
|
@@ -16370,11 +16370,11 @@ function generateToken() {
|
|
|
16370
16370
|
function loadExecApprovals() {
|
|
16371
16371
|
const filePath = resolveExecApprovalsPath();
|
|
16372
16372
|
try {
|
|
16373
|
-
if (!
|
|
16373
|
+
if (!fs$1.existsSync(filePath)) return normalizeExecApprovals({
|
|
16374
16374
|
version: 1,
|
|
16375
16375
|
agents: {}
|
|
16376
16376
|
});
|
|
16377
|
-
const raw =
|
|
16377
|
+
const raw = fs$1.readFileSync(filePath, "utf8");
|
|
16378
16378
|
const parsed = JSON.parse(raw);
|
|
16379
16379
|
if (parsed?.version !== 1) return normalizeExecApprovals({
|
|
16380
16380
|
version: 1,
|
|
@@ -16391,9 +16391,9 @@ function loadExecApprovals() {
|
|
|
16391
16391
|
function saveExecApprovals(file) {
|
|
16392
16392
|
const filePath = resolveExecApprovalsPath();
|
|
16393
16393
|
ensureDir$1(filePath);
|
|
16394
|
-
|
|
16394
|
+
fs$1.writeFileSync(filePath, `${JSON.stringify(file, null, 2)}\n`, { mode: 384 });
|
|
16395
16395
|
try {
|
|
16396
|
-
|
|
16396
|
+
fs$1.chmodSync(filePath, 384);
|
|
16397
16397
|
} catch {}
|
|
16398
16398
|
}
|
|
16399
16399
|
function ensureExecApprovals() {
|
|
@@ -16714,7 +16714,7 @@ function resolvePowerShellPath() {
|
|
|
16714
16714
|
const systemRoot = process.env.SystemRoot || process.env.WINDIR;
|
|
16715
16715
|
if (systemRoot) {
|
|
16716
16716
|
const candidate = path.join(systemRoot, "System32", "WindowsPowerShell", "v1.0", "powershell.exe");
|
|
16717
|
-
if (
|
|
16717
|
+
if (fs$1.existsSync(candidate)) return candidate;
|
|
16718
16718
|
}
|
|
16719
16719
|
return "powershell.exe";
|
|
16720
16720
|
}
|
|
@@ -16752,7 +16752,7 @@ function resolveShellFromPath(name) {
|
|
|
16752
16752
|
for (const entry of entries) {
|
|
16753
16753
|
const candidate = path.join(entry, name);
|
|
16754
16754
|
try {
|
|
16755
|
-
|
|
16755
|
+
fs$1.accessSync(candidate, fs$1.constants.X_OK);
|
|
16756
16756
|
return candidate;
|
|
16757
16757
|
} catch {}
|
|
16758
16758
|
}
|
|
@@ -19864,7 +19864,7 @@ function walkUpFrom(startDir, opts, resolveAtDir) {
|
|
|
19864
19864
|
function hasGitMarker(repoRoot) {
|
|
19865
19865
|
const gitPath = path.join(repoRoot, ".git");
|
|
19866
19866
|
try {
|
|
19867
|
-
const stat =
|
|
19867
|
+
const stat = fs$1.statSync(gitPath);
|
|
19868
19868
|
return stat.isDirectory() || stat.isFile();
|
|
19869
19869
|
} catch {
|
|
19870
19870
|
return false;
|
|
@@ -19876,10 +19876,10 @@ function findGitRoot(startDir, opts = {}) {
|
|
|
19876
19876
|
function resolveGitDirFromMarker(repoRoot) {
|
|
19877
19877
|
const gitPath = path.join(repoRoot, ".git");
|
|
19878
19878
|
try {
|
|
19879
|
-
const stat =
|
|
19879
|
+
const stat = fs$1.statSync(gitPath);
|
|
19880
19880
|
if (stat.isDirectory()) return gitPath;
|
|
19881
19881
|
if (!stat.isFile()) return null;
|
|
19882
|
-
const match =
|
|
19882
|
+
const match = fs$1.readFileSync(gitPath, "utf-8").match(/gitdir:\s*(.+)/i);
|
|
19883
19883
|
if (!match?.[1]) return null;
|
|
19884
19884
|
return path.resolve(repoRoot, match[1].trim());
|
|
19885
19885
|
} catch {
|
|
@@ -19946,7 +19946,7 @@ const resolveCommitHash = (options = {}) => {
|
|
|
19946
19946
|
cachedCommit = null;
|
|
19947
19947
|
return cachedCommit;
|
|
19948
19948
|
}
|
|
19949
|
-
const head =
|
|
19949
|
+
const head = fs$1.readFileSync(headPath, "utf-8").trim();
|
|
19950
19950
|
if (!head) {
|
|
19951
19951
|
cachedCommit = null;
|
|
19952
19952
|
return cachedCommit;
|
|
@@ -19954,7 +19954,7 @@ const resolveCommitHash = (options = {}) => {
|
|
|
19954
19954
|
if (head.startsWith("ref:")) {
|
|
19955
19955
|
const ref = head.replace(/^ref:\s*/i, "").trim();
|
|
19956
19956
|
const refPath = path.resolve(path.dirname(headPath), ref);
|
|
19957
|
-
cachedCommit = formatCommit(
|
|
19957
|
+
cachedCommit = formatCommit(fs$1.readFileSync(refPath, "utf-8").trim());
|
|
19958
19958
|
return cachedCommit;
|
|
19959
19959
|
}
|
|
19960
19960
|
cachedCommit = formatCommit(head);
|
|
@@ -20158,9 +20158,9 @@ const readUsageFromSessionLog = (sessionId, sessionEntry, agentId, sessionKey, s
|
|
|
20158
20158
|
} catch {
|
|
20159
20159
|
return;
|
|
20160
20160
|
}
|
|
20161
|
-
if (!
|
|
20161
|
+
if (!fs$1.existsSync(logPath)) return;
|
|
20162
20162
|
try {
|
|
20163
|
-
const lines =
|
|
20163
|
+
const lines = fs$1.readFileSync(logPath, "utf-8").split(/\n+/);
|
|
20164
20164
|
let input = 0;
|
|
20165
20165
|
let output = 0;
|
|
20166
20166
|
let promptTokens = 0;
|
|
@@ -21400,7 +21400,7 @@ function resolveRepoRoot(params) {
|
|
|
21400
21400
|
const configured = params.config?.agents?.defaults?.repoRoot?.trim();
|
|
21401
21401
|
if (configured) try {
|
|
21402
21402
|
const resolved = path.resolve(configured);
|
|
21403
|
-
if (
|
|
21403
|
+
if (fs$1.statSync(resolved).isDirectory()) return resolved;
|
|
21404
21404
|
} catch {}
|
|
21405
21405
|
const candidates = [params.workspaceDir, params.cwd].map((value) => value?.trim()).filter(Boolean);
|
|
21406
21406
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -22243,7 +22243,7 @@ async function buildContextReply(params) {
|
|
|
22243
22243
|
//#region src/auto-reply/reply/commands-export-session.ts
|
|
22244
22244
|
const EXPORT_HTML_DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "export-html");
|
|
22245
22245
|
function loadTemplate(fileName) {
|
|
22246
|
-
return
|
|
22246
|
+
return fs$1.readFileSync(path.join(EXPORT_HTML_DIR, fileName), "utf-8");
|
|
22247
22247
|
}
|
|
22248
22248
|
function generateHtml(sessionData) {
|
|
22249
22249
|
const template = loadTemplate("template.html");
|
|
@@ -22317,7 +22317,7 @@ async function buildExportSessionReply(params) {
|
|
|
22317
22317
|
} catch (err) {
|
|
22318
22318
|
return { text: `❌ Failed to resolve session file: ${err instanceof Error ? err.message : String(err)}` };
|
|
22319
22319
|
}
|
|
22320
|
-
if (!
|
|
22320
|
+
if (!fs$1.existsSync(sessionFile)) return { text: `❌ Session file not found: ${sessionFile}` };
|
|
22321
22321
|
const sessionManager = SessionManager.open(sessionFile);
|
|
22322
22322
|
const entries = sessionManager.getEntries();
|
|
22323
22323
|
const header = sessionManager.getHeader();
|
|
@@ -22338,8 +22338,8 @@ async function buildExportSessionReply(params) {
|
|
|
22338
22338
|
const defaultFileName = `symi-session-${entry.sessionId.slice(0, 8)}-${timestamp}.html`;
|
|
22339
22339
|
const outputPath = args.outputPath ? path.resolve(args.outputPath.startsWith("~") ? args.outputPath.replace("~", process.env.HOME ?? "") : args.outputPath) : path.join(params.workspaceDir, defaultFileName);
|
|
22340
22340
|
const outputDir = path.dirname(outputPath);
|
|
22341
|
-
if (!
|
|
22342
|
-
|
|
22341
|
+
if (!fs$1.existsSync(outputDir)) fs$1.mkdirSync(outputDir, { recursive: true });
|
|
22342
|
+
fs$1.writeFileSync(outputPath, html, "utf-8");
|
|
22343
22343
|
const relativePath = path.relative(params.workspaceDir, outputPath);
|
|
22344
22344
|
return { text: [
|
|
22345
22345
|
"✅ Session exported!",
|
|
@@ -22453,8 +22453,8 @@ function resolveZaiApiKey() {
|
|
|
22453
22453
|
}
|
|
22454
22454
|
try {
|
|
22455
22455
|
const authPath = path.join(os.homedir(), ".pi", "agent", "auth.json");
|
|
22456
|
-
if (!
|
|
22457
|
-
const data = JSON.parse(
|
|
22456
|
+
if (!fs$1.existsSync(authPath)) return;
|
|
22457
|
+
const data = JSON.parse(fs$1.readFileSync(authPath, "utf-8"));
|
|
22458
22458
|
return data["z-ai"]?.access || data.zai?.access;
|
|
22459
22459
|
} catch {
|
|
22460
22460
|
return;
|
|
@@ -24019,7 +24019,7 @@ function shouldPersistAnyBindingState() {
|
|
|
24019
24019
|
}
|
|
24020
24020
|
function shouldPersistBindingMutations() {
|
|
24021
24021
|
if (shouldPersistAnyBindingState()) return true;
|
|
24022
|
-
return
|
|
24022
|
+
return fs$1.existsSync(resolveThreadBindingsPath());
|
|
24023
24023
|
}
|
|
24024
24024
|
function saveBindingsToDisk(params = {}) {
|
|
24025
24025
|
if (!params.force && !shouldPersistAnyBindingState()) return;
|
|
@@ -25007,7 +25007,7 @@ const applyCostTotal = (totals, costTotal) => {
|
|
|
25007
25007
|
totals.totalCost += costTotal;
|
|
25008
25008
|
};
|
|
25009
25009
|
async function* readJsonlRecords(filePath) {
|
|
25010
|
-
const fileStream =
|
|
25010
|
+
const fileStream = fs$1.createReadStream(filePath, { encoding: "utf-8" });
|
|
25011
25011
|
const rl = readline.createInterface({
|
|
25012
25012
|
input: fileStream,
|
|
25013
25013
|
crlfDelay: Infinity
|
|
@@ -25079,10 +25079,10 @@ async function loadCostUsageSummary(params) {
|
|
|
25079
25079
|
const dailyMap = /* @__PURE__ */ new Map();
|
|
25080
25080
|
const totals = emptyTotals();
|
|
25081
25081
|
const sessionsDir = resolveSessionTranscriptsDirForAgent(params?.agentId);
|
|
25082
|
-
const entries = await
|
|
25082
|
+
const entries = await fs$1.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
25083
25083
|
const files = (await Promise.all(entries.filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).map(async (entry) => {
|
|
25084
25084
|
const filePath = path.join(sessionsDir, entry.name);
|
|
25085
|
-
const stats = await
|
|
25085
|
+
const stats = await fs$1.promises.stat(filePath).catch(() => null);
|
|
25086
25086
|
if (!stats) return null;
|
|
25087
25087
|
if (stats.mtimeMs < sinceTime) return null;
|
|
25088
25088
|
return filePath;
|
|
@@ -25115,7 +25115,7 @@ async function loadCostUsageSummary(params) {
|
|
|
25115
25115
|
}
|
|
25116
25116
|
async function loadSessionCostSummary(params) {
|
|
25117
25117
|
const sessionFile = params.sessionFile ?? (params.sessionId ? resolveSessionFilePath(params.sessionId, params.sessionEntry, { agentId: params.agentId }) : void 0);
|
|
25118
|
-
if (!sessionFile || !
|
|
25118
|
+
if (!sessionFile || !fs$1.existsSync(sessionFile)) return null;
|
|
25119
25119
|
const totals = emptyTotals();
|
|
25120
25120
|
let firstActivity;
|
|
25121
25121
|
let lastActivity;
|
|
@@ -29321,7 +29321,7 @@ function asBoolean(value) {
|
|
|
29321
29321
|
}
|
|
29322
29322
|
function resolveTempPathParts(opts) {
|
|
29323
29323
|
const tmpDir = opts.tmpDir ?? resolvePreferredSymiTmpDir();
|
|
29324
|
-
if (!opts.tmpDir)
|
|
29324
|
+
if (!opts.tmpDir) fs$1.mkdirSync(tmpDir, {
|
|
29325
29325
|
recursive: true,
|
|
29326
29326
|
mode: 448
|
|
29327
29327
|
});
|
|
@@ -29387,7 +29387,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
29387
29387
|
if (typeof contentLength === "number" && Number.isFinite(contentLength) && contentLength > MAX_CAMERA_URL_DOWNLOAD_BYTES) throw new Error(`writeUrlToFile: content-length ${contentLength} exceeds max ${MAX_CAMERA_URL_DOWNLOAD_BYTES}`);
|
|
29388
29388
|
const body = res.body;
|
|
29389
29389
|
if (!body) throw new Error(`failed to download ${url}: empty response body`);
|
|
29390
|
-
const fileHandle = await fs$
|
|
29390
|
+
const fileHandle = await fs$2.open(filePath, "w");
|
|
29391
29391
|
let bytes = 0;
|
|
29392
29392
|
let thrown;
|
|
29393
29393
|
try {
|
|
@@ -29406,7 +29406,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
29406
29406
|
await fileHandle.close();
|
|
29407
29407
|
}
|
|
29408
29408
|
if (thrown) {
|
|
29409
|
-
await fs$
|
|
29409
|
+
await fs$2.unlink(filePath).catch(() => {});
|
|
29410
29410
|
throw thrown;
|
|
29411
29411
|
}
|
|
29412
29412
|
return {
|
|
@@ -29416,7 +29416,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
29416
29416
|
}
|
|
29417
29417
|
async function writeBase64ToFile(filePath, base64) {
|
|
29418
29418
|
const buf = Buffer.from(base64, "base64");
|
|
29419
|
-
await fs$
|
|
29419
|
+
await fs$2.writeFile(filePath, buf);
|
|
29420
29420
|
return {
|
|
29421
29421
|
path: filePath,
|
|
29422
29422
|
bytes: buf.length
|
|
@@ -34781,7 +34781,7 @@ function listExistingAgentIdsFromDisk() {
|
|
|
34781
34781
|
const root = resolveStateDir();
|
|
34782
34782
|
const agentsDir = path.join(root, "agents");
|
|
34783
34783
|
try {
|
|
34784
|
-
return
|
|
34784
|
+
return fs$1.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
|
|
34785
34785
|
} catch {
|
|
34786
34786
|
return [];
|
|
34787
34787
|
}
|
|
@@ -39816,7 +39816,7 @@ async function runAgentTurnWithFallback(params) {
|
|
|
39816
39816
|
if (corruptedSessionId) {
|
|
39817
39817
|
const transcriptPath = resolveSessionTranscriptPath(corruptedSessionId);
|
|
39818
39818
|
try {
|
|
39819
|
-
|
|
39819
|
+
fs$1.unlinkSync(transcriptPath);
|
|
39820
39820
|
} catch {}
|
|
39821
39821
|
}
|
|
39822
39822
|
delete params.activeSessionStore[sessionKey];
|
|
@@ -40521,9 +40521,9 @@ function auditPostCompactionReads(readFilePaths, workspaceDir, requiredReads = D
|
|
|
40521
40521
|
* Returns messages from the last N lines (default 100).
|
|
40522
40522
|
*/
|
|
40523
40523
|
function readSessionMessages(sessionFile, maxLines = 100) {
|
|
40524
|
-
if (!
|
|
40524
|
+
if (!fs$1.existsSync(sessionFile)) return [];
|
|
40525
40525
|
try {
|
|
40526
|
-
const recentLines =
|
|
40526
|
+
const recentLines = fs$1.readFileSync(sessionFile, "utf-8").trim().split("\n").slice(-maxLines);
|
|
40527
40527
|
const messages = [];
|
|
40528
40528
|
for (const line of recentLines) try {
|
|
40529
40529
|
const entry = JSON.parse(line);
|
|
@@ -40564,8 +40564,8 @@ const MAX_CONTEXT_CHARS = 3e3;
|
|
|
40564
40564
|
async function readPostCompactionContext(workspaceDir) {
|
|
40565
40565
|
const agentsPath = path.join(workspaceDir, "AGENTS.md");
|
|
40566
40566
|
try {
|
|
40567
|
-
if (!
|
|
40568
|
-
const sections = extractSections(await
|
|
40567
|
+
if (!fs$1.existsSync(agentsPath)) return null;
|
|
40568
|
+
const sections = extractSections(await fs$1.promises.readFile(agentsPath, "utf-8"), ["Session Startup", "Red Lines"]);
|
|
40569
40569
|
if (sections.length === 0) return null;
|
|
40570
40570
|
const combined = sections.join("\n\n");
|
|
40571
40571
|
return "[Post-compaction context refresh]\n\nSession was just compacted. The conversation summary above is a hint, NOT a substitute for your startup sequence. Execute your Session Startup sequence now — read the required files before responding to the user.\n\nCritical rules from AGENTS.md:\n\n" + (combined.length > MAX_CONTEXT_CHARS ? combined.slice(0, MAX_CONTEXT_CHARS) + "\n...[truncated]..." : combined);
|
|
@@ -40769,7 +40769,7 @@ async function runReplyAgent(params) {
|
|
|
40769
40769
|
if (resolved) transcriptCandidates.add(resolved);
|
|
40770
40770
|
transcriptCandidates.add(resolveSessionTranscriptPath(prevSessionId, agentId));
|
|
40771
40771
|
for (const candidate of transcriptCandidates) try {
|
|
40772
|
-
|
|
40772
|
+
fs$1.unlinkSync(candidate);
|
|
40773
40773
|
} catch {}
|
|
40774
40774
|
}
|
|
40775
40775
|
return true;
|
|
@@ -41675,7 +41675,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
41675
41675
|
return;
|
|
41676
41676
|
}
|
|
41677
41677
|
try {
|
|
41678
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
41678
|
+
const { deliverOutboundPayloads } = await import("./deliver-D1ZN6-fl.js").then((n) => n.n);
|
|
41679
41679
|
await deliverOutboundPayloads({
|
|
41680
41680
|
cfg: params.cfg,
|
|
41681
41681
|
channel,
|
|
@@ -41701,7 +41701,7 @@ function forkSessionFromParent(params) {
|
|
|
41701
41701
|
agentId: params.agentId,
|
|
41702
41702
|
sessionsDir: params.sessionsDir
|
|
41703
41703
|
});
|
|
41704
|
-
if (!parentSessionFile || !
|
|
41704
|
+
if (!parentSessionFile || !fs$1.existsSync(parentSessionFile)) return null;
|
|
41705
41705
|
try {
|
|
41706
41706
|
const manager = SessionManager.open(parentSessionFile);
|
|
41707
41707
|
const leafId = manager.getLeafId();
|
|
@@ -41725,7 +41725,7 @@ function forkSessionFromParent(params) {
|
|
|
41725
41725
|
cwd: manager.getCwd(),
|
|
41726
41726
|
parentSession: parentSessionFile
|
|
41727
41727
|
};
|
|
41728
|
-
|
|
41728
|
+
fs$1.writeFileSync(sessionFile, `${JSON.stringify(header)}\n`, "utf-8");
|
|
41729
41729
|
return {
|
|
41730
41730
|
sessionId,
|
|
41731
41731
|
sessionFile
|
|
@@ -45121,7 +45121,7 @@ async function describeStickerImage(params) {
|
|
|
45121
45121
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
45122
45122
|
try {
|
|
45123
45123
|
const buffer = await fs.readFile(imagePath);
|
|
45124
|
-
const { describeImageWithModel } = await import("./image-
|
|
45124
|
+
const { describeImageWithModel } = await import("./image-Cp3JDEBB.js").then((n) => n.n);
|
|
45125
45125
|
return (await describeImageWithModel({
|
|
45126
45126
|
buffer,
|
|
45127
45127
|
fileName: "sticker.webp",
|
|
@@ -45544,7 +45544,7 @@ function createWhatsAppLoginTool() {
|
|
|
45544
45544
|
force: Type.Optional(Type.Boolean())
|
|
45545
45545
|
}),
|
|
45546
45546
|
execute: async (_toolCallId, args) => {
|
|
45547
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
45547
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-Batf3PT5.js");
|
|
45548
45548
|
if ((args?.action ?? "start") === "wait") {
|
|
45549
45549
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
45550
45550
|
return {
|
|
@@ -45826,7 +45826,7 @@ async function withMemoryManagerForAgent(params) {
|
|
|
45826
45826
|
}
|
|
45827
45827
|
async function checkReadableFile(pathname) {
|
|
45828
45828
|
try {
|
|
45829
|
-
await fs.access(pathname,
|
|
45829
|
+
await fs.access(pathname, fs$1.constants.R_OK);
|
|
45830
45830
|
return { exists: true };
|
|
45831
45831
|
} catch (err) {
|
|
45832
45832
|
const code = err.code;
|
|
@@ -45885,7 +45885,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
45885
45885
|
}
|
|
45886
45886
|
let dirReadable = null;
|
|
45887
45887
|
try {
|
|
45888
|
-
await fs.access(memoryDir,
|
|
45888
|
+
await fs.access(memoryDir, fs$1.constants.R_OK);
|
|
45889
45889
|
dirReadable = true;
|
|
45890
45890
|
} catch (err) {
|
|
45891
45891
|
const code = err.code;
|
|
@@ -47783,7 +47783,7 @@ async function preflightDiscordMessage(params) {
|
|
|
47783
47783
|
let preflightTranscript;
|
|
47784
47784
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
47785
47785
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
47786
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
47786
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-D02HwB-I.js");
|
|
47787
47787
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
47788
47788
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
47789
47789
|
ctx: {
|
|
@@ -48746,7 +48746,7 @@ function identityHasValues(identity) {
|
|
|
48746
48746
|
}
|
|
48747
48747
|
function loadIdentityFromFile(identityPath) {
|
|
48748
48748
|
try {
|
|
48749
|
-
const parsed = parseIdentityMarkdown(
|
|
48749
|
+
const parsed = parseIdentityMarkdown(fs$1.readFileSync(identityPath, "utf-8"));
|
|
48750
48750
|
if (!identityHasValues(parsed)) return null;
|
|
48751
48751
|
return parsed;
|
|
48752
48752
|
} catch {
|
|
@@ -48785,7 +48785,7 @@ function isDataAvatar(value) {
|
|
|
48785
48785
|
}
|
|
48786
48786
|
function resolveExistingPath(value) {
|
|
48787
48787
|
try {
|
|
48788
|
-
return
|
|
48788
|
+
return fs$1.realpathSync(value);
|
|
48789
48789
|
} catch {
|
|
48790
48790
|
return path.resolve(value);
|
|
48791
48791
|
}
|
|
@@ -48809,7 +48809,7 @@ function resolveLocalAvatarPath(params) {
|
|
|
48809
48809
|
reason: "unsupported_extension"
|
|
48810
48810
|
};
|
|
48811
48811
|
try {
|
|
48812
|
-
if (!
|
|
48812
|
+
if (!fs$1.statSync(realPath).isFile()) return {
|
|
48813
48813
|
ok: false,
|
|
48814
48814
|
reason: "missing"
|
|
48815
48815
|
};
|
|
@@ -49672,7 +49672,7 @@ function sanitizeRecentModels(models, limit) {
|
|
|
49672
49672
|
}
|
|
49673
49673
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
49674
49674
|
try {
|
|
49675
|
-
const raw = await
|
|
49675
|
+
const raw = await fs$1.promises.readFile(filePath, "utf-8");
|
|
49676
49676
|
return {
|
|
49677
49677
|
value: JSON.parse(raw),
|
|
49678
49678
|
exists: true
|
|
@@ -49690,14 +49690,14 @@ async function readJsonFileWithFallback(filePath, fallback) {
|
|
|
49690
49690
|
}
|
|
49691
49691
|
async function writeJsonFileAtomically(filePath, value) {
|
|
49692
49692
|
const dir = path.dirname(filePath);
|
|
49693
|
-
await
|
|
49693
|
+
await fs$1.promises.mkdir(dir, {
|
|
49694
49694
|
recursive: true,
|
|
49695
49695
|
mode: 448
|
|
49696
49696
|
});
|
|
49697
49697
|
const tmp = path.join(dir, `${path.basename(filePath)}.${crypto.randomUUID()}.tmp`);
|
|
49698
|
-
await
|
|
49699
|
-
await
|
|
49700
|
-
await
|
|
49698
|
+
await fs$1.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, "utf-8");
|
|
49699
|
+
await fs$1.promises.chmod(tmp, 384);
|
|
49700
|
+
await fs$1.promises.rename(tmp, filePath);
|
|
49701
49701
|
}
|
|
49702
49702
|
async function readPreferencesStore(filePath) {
|
|
49703
49703
|
const { value } = await readJsonFileWithFallback(filePath, {
|
|
@@ -52428,7 +52428,7 @@ function stripMonologue(text) {
|
|
|
52428
52428
|
}
|
|
52429
52429
|
return text;
|
|
52430
52430
|
}
|
|
52431
|
-
const DEFAULT_REPETITION_MIN_BLOCK =
|
|
52431
|
+
const DEFAULT_REPETITION_MIN_BLOCK = 250;
|
|
52432
52432
|
function detectRepetition(text, minBlock) {
|
|
52433
52433
|
if (text.length < minBlock * 2.5) return false;
|
|
52434
52434
|
const sampleStart = Math.floor(text.length * .25);
|
|
@@ -53046,11 +53046,11 @@ function appendRawStream(payload) {
|
|
|
53046
53046
|
if (!rawStreamReady) {
|
|
53047
53047
|
rawStreamReady = true;
|
|
53048
53048
|
try {
|
|
53049
|
-
|
|
53049
|
+
fs$1.mkdirSync(path.dirname(RAW_STREAM_PATH), { recursive: true });
|
|
53050
53050
|
} catch {}
|
|
53051
53051
|
}
|
|
53052
53052
|
try {
|
|
53053
|
-
|
|
53053
|
+
fs$1.promises.appendFile(RAW_STREAM_PATH, `${JSON.stringify(payload)}\n`);
|
|
53054
53054
|
} catch {}
|
|
53055
53055
|
}
|
|
53056
53056
|
|
|
@@ -54510,7 +54510,7 @@ async function recordLoopOutcome(args) {
|
|
|
54510
54510
|
if (!args.ctx?.sessionKey) return;
|
|
54511
54511
|
try {
|
|
54512
54512
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Bxo4UHOL.js").then((n) => n.n);
|
|
54513
|
-
const { recordToolCallOutcome } = await import("./tool-loop-detection-
|
|
54513
|
+
const { recordToolCallOutcome } = await import("./tool-loop-detection-Cs8_HCsx.js");
|
|
54514
54514
|
recordToolCallOutcome(getDiagnosticSessionState({
|
|
54515
54515
|
sessionKey: args.ctx.sessionKey,
|
|
54516
54516
|
sessionId: args.ctx?.agentId
|
|
@@ -54531,8 +54531,8 @@ async function runBeforeToolCallHook(args) {
|
|
|
54531
54531
|
const params = args.params;
|
|
54532
54532
|
if (args.ctx?.sessionKey) {
|
|
54533
54533
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Bxo4UHOL.js").then((n) => n.n);
|
|
54534
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
54535
|
-
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-
|
|
54534
|
+
const { logToolLoopAction } = await import("./diagnostic-CI0kRQkt.js").then((n) => n.n);
|
|
54535
|
+
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-Cs8_HCsx.js");
|
|
54536
54536
|
const sessionState = getDiagnosticSessionState({
|
|
54537
54537
|
sessionKey: args.ctx.sessionKey,
|
|
54538
54538
|
sessionId: args.ctx?.agentId
|
|
@@ -55708,7 +55708,7 @@ async function handleSessionVersion(sessionFile) {
|
|
|
55708
55708
|
function createStreamMonitor(profile, overrides) {
|
|
55709
55709
|
const detectToolJson = overrides?.detectToolJson ?? !profile.filters.hasStructuredThinking;
|
|
55710
55710
|
const detectRepetition = overrides?.detectRepetition ?? true;
|
|
55711
|
-
const minBlockSize = overrides?.repetitionMinBlockSize ??
|
|
55711
|
+
const minBlockSize = overrides?.repetitionMinBlockSize ?? 250;
|
|
55712
55712
|
let accumulated = "";
|
|
55713
55713
|
let stopSignaled = false;
|
|
55714
55714
|
let stopReason;
|
|
@@ -56240,8 +56240,8 @@ async function readWorkspaceContextForSummary() {
|
|
|
56240
56240
|
const workspaceDir = process.cwd();
|
|
56241
56241
|
const agentsPath = path.join(workspaceDir, "AGENTS.md");
|
|
56242
56242
|
try {
|
|
56243
|
-
if (!
|
|
56244
|
-
const sections = extractSections(await
|
|
56243
|
+
if (!fs$1.existsSync(agentsPath)) return "";
|
|
56244
|
+
const sections = extractSections(await fs$1.promises.readFile(agentsPath, "utf-8"), ["Session Startup", "Red Lines"]);
|
|
56245
56245
|
if (sections.length === 0) return "";
|
|
56246
56246
|
const combined = sections.join("\n\n");
|
|
56247
56247
|
return `\n\n<workspace-critical-rules>\n${combined.length > MAX_SUMMARY_CONTEXT_CHARS ? combined.slice(0, MAX_SUMMARY_CONTEXT_CHARS) + "\n...[truncated]..." : combined}\n</workspace-critical-rules>`;
|
|
@@ -59608,7 +59608,7 @@ async function runEmbeddedPiAgent(params) {
|
|
|
59608
59608
|
return;
|
|
59609
59609
|
}
|
|
59610
59610
|
if (model.provider === "github-copilot") {
|
|
59611
|
-
const { resolveCopilotApiToken } = await import("./github-copilot-token-
|
|
59611
|
+
const { resolveCopilotApiToken } = await import("./github-copilot-token-C_qUP7p5.js").then((n) => n.n);
|
|
59612
59612
|
const copilotToken = await resolveCopilotApiToken({ githubToken: apiKeyInfo.apiKey });
|
|
59613
59613
|
authStorage.setRuntimeApiKey(model.provider, copilotToken.token);
|
|
59614
59614
|
} else authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey);
|
|
@@ -60037,7 +60037,8 @@ async function runEmbeddedPiAgent(params) {
|
|
|
60037
60037
|
suppressToolErrorWarnings: params.suppressToolErrorWarnings,
|
|
60038
60038
|
inlineToolResultsAllowed: false
|
|
60039
60039
|
});
|
|
60040
|
-
|
|
60040
|
+
const verifyProfile = resolveModelProfile(`${params.provider ?? ""}/${params.model ?? ""}`, params.config?.models?.profiles);
|
|
60041
|
+
if (!verificationPassCompleted && !aborted && !timedOut && !promptError && payloads.length > 0 && !isCronSessionKey(params.sessionKey) && !isSubagentSessionKey(params.sessionKey) && !verifyProfile.filters.suppressMonologue) {
|
|
60041
60042
|
const CODE_TOOL_NAMES = new Set([
|
|
60042
60043
|
"exec",
|
|
60043
60044
|
"bash",
|
|
@@ -60318,27 +60319,27 @@ async function runAgentTurn(params) {
|
|
|
60318
60319
|
function createDefaultDeps() {
|
|
60319
60320
|
return {
|
|
60320
60321
|
sendMessageWhatsApp: async (...args) => {
|
|
60321
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
60322
|
+
const { sendMessageWhatsApp } = await import("./web-CIrcbfkd.js");
|
|
60322
60323
|
return await sendMessageWhatsApp(...args);
|
|
60323
60324
|
},
|
|
60324
60325
|
sendMessageTelegram: async (...args) => {
|
|
60325
|
-
const { sendMessageTelegram } = await import("./send-
|
|
60326
|
+
const { sendMessageTelegram } = await import("./send-B1u-LrcS.js").then((n) => n.l);
|
|
60326
60327
|
return await sendMessageTelegram(...args);
|
|
60327
60328
|
},
|
|
60328
60329
|
sendMessageDiscord: async (...args) => {
|
|
60329
|
-
const { sendMessageDiscord } = await import("./send-
|
|
60330
|
+
const { sendMessageDiscord } = await import("./send-CiTGOvEc.js").then((n) => n.t);
|
|
60330
60331
|
return await sendMessageDiscord(...args);
|
|
60331
60332
|
},
|
|
60332
60333
|
sendMessageSlack: async (...args) => {
|
|
60333
|
-
const { sendMessageSlack } = await import("./send-
|
|
60334
|
+
const { sendMessageSlack } = await import("./send-DeFniOjh.js").then((n) => n.n);
|
|
60334
60335
|
return await sendMessageSlack(...args);
|
|
60335
60336
|
},
|
|
60336
60337
|
sendMessageSignal: async (...args) => {
|
|
60337
|
-
const { sendMessageSignal } = await import("./send-
|
|
60338
|
+
const { sendMessageSignal } = await import("./send-DW96zgDL.js").then((n) => n.i);
|
|
60338
60339
|
return await sendMessageSignal(...args);
|
|
60339
60340
|
},
|
|
60340
60341
|
sendMessageIMessage: async (...args) => {
|
|
60341
|
-
const { sendMessageIMessage } = await import("./send-
|
|
60342
|
+
const { sendMessageIMessage } = await import("./send-WyRqb4WD.js").then((n) => n.n);
|
|
60342
60343
|
return await sendMessageIMessage(...args);
|
|
60343
60344
|
}
|
|
60344
60345
|
};
|
|
@@ -65217,7 +65218,7 @@ async function monitorIMessageProvider(opts = {}) {
|
|
|
65217
65218
|
function readFileIfExists(filePath) {
|
|
65218
65219
|
if (!filePath) return;
|
|
65219
65220
|
try {
|
|
65220
|
-
return
|
|
65221
|
+
return fs$1.readFileSync(filePath, "utf-8").trim();
|
|
65221
65222
|
} catch {
|
|
65222
65223
|
return;
|
|
65223
65224
|
}
|
|
@@ -65778,7 +65779,7 @@ async function downloadLineMedia(messageId, channelAccessToken, maxBytes = 10 *
|
|
|
65778
65779
|
prefix: "line-media",
|
|
65779
65780
|
extension: getExtensionForContentType(contentType)
|
|
65780
65781
|
});
|
|
65781
|
-
await
|
|
65782
|
+
await fs$1.promises.writeFile(filePath, buffer);
|
|
65782
65783
|
logVerbose(`line: downloaded media ${messageId} to ${filePath} (${buffer.length} bytes)`);
|
|
65783
65784
|
return {
|
|
65784
65785
|
path: filePath,
|
|
@@ -70765,7 +70766,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
70765
70766
|
}
|
|
70766
70767
|
let commandsRegistry;
|
|
70767
70768
|
async function getCommandsRegistry() {
|
|
70768
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
70769
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-D7CTCQPm.js").then((n) => n.n);
|
|
70769
70770
|
return commandsRegistry;
|
|
70770
70771
|
}
|
|
70771
70772
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -71107,11 +71108,11 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71107
71108
|
const channelName = channelInfo?.name;
|
|
71108
71109
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
71109
71110
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
71110
|
-
import("./resolve-route-
|
|
71111
|
+
import("./resolve-route-CZ-1eqw0.js").then((n) => n.r),
|
|
71111
71112
|
import("./inbound-context-BlHX0H3E.js").then((n) => n.n),
|
|
71112
71113
|
Promise.resolve().then(() => provider_dispatcher_exports)
|
|
71113
71114
|
]);
|
|
71114
|
-
const [{ resolveConversationLabel }, { createReplyPrefixOptions }] = await Promise.all([import("./conversation-label-DXUkoKcB.js").then((n) => n.t), import("./reply-prefix-
|
|
71115
|
+
const [{ resolveConversationLabel }, { createReplyPrefixOptions }] = await Promise.all([import("./conversation-label-DXUkoKcB.js").then((n) => n.t), import("./reply-prefix-XlyuyChD.js").then((n) => n.n)]);
|
|
71115
71116
|
const route = resolveAgentRoute({
|
|
71116
71117
|
cfg,
|
|
71117
71118
|
channel: "slack",
|
|
@@ -71168,9 +71169,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71168
71169
|
});
|
|
71169
71170
|
const deliverSlashPayloads = async (replies) => {
|
|
71170
71171
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
71171
|
-
import("./replies-
|
|
71172
|
-
import("./chunk-
|
|
71173
|
-
import("./markdown-tables-
|
|
71172
|
+
import("./replies-BIX_isV7.js").then((n) => n.r),
|
|
71173
|
+
import("./chunk-BW5f05BR.js").then((n) => n.s),
|
|
71174
|
+
import("./markdown-tables-iMQQZu4Q.js").then((n) => n.t)
|
|
71174
71175
|
]);
|
|
71175
71176
|
await deliverSlackSlashReplies({
|
|
71176
71177
|
replies,
|
|
@@ -71223,7 +71224,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71223
71224
|
let nativeCommands = [];
|
|
71224
71225
|
if (nativeEnabled) {
|
|
71225
71226
|
reg = await getCommandsRegistry();
|
|
71226
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
71227
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-BJMb_psG.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
|
|
71227
71228
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
71228
71229
|
skillCommands,
|
|
71229
71230
|
provider: "slack"
|
|
@@ -73441,7 +73442,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
|
|
|
73441
73442
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
73442
73443
|
let preflightTranscript;
|
|
73443
73444
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
73444
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
73445
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-D02HwB-I.js");
|
|
73445
73446
|
preflightTranscript = await transcribeFirstAudio({
|
|
73446
73447
|
ctx: {
|
|
73447
73448
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -75586,23 +75587,23 @@ let webLoginQrPromise = null;
|
|
|
75586
75587
|
let webChannelPromise = null;
|
|
75587
75588
|
let whatsappActionsPromise = null;
|
|
75588
75589
|
function loadWebOutbound() {
|
|
75589
|
-
webOutboundPromise ??= import("./outbound-
|
|
75590
|
+
webOutboundPromise ??= import("./outbound-D4fN_ZlE.js").then((n) => n.t);
|
|
75590
75591
|
return webOutboundPromise;
|
|
75591
75592
|
}
|
|
75592
75593
|
function loadWebLogin() {
|
|
75593
|
-
webLoginPromise ??= import("./login-
|
|
75594
|
+
webLoginPromise ??= import("./login-CwCoxapk.js").then((n) => n.n);
|
|
75594
75595
|
return webLoginPromise;
|
|
75595
75596
|
}
|
|
75596
75597
|
function loadWebLoginQr() {
|
|
75597
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
75598
|
+
webLoginQrPromise ??= import("./login-qr-Batf3PT5.js");
|
|
75598
75599
|
return webLoginQrPromise;
|
|
75599
75600
|
}
|
|
75600
75601
|
function loadWebChannel() {
|
|
75601
|
-
webChannelPromise ??= import("./web-
|
|
75602
|
+
webChannelPromise ??= import("./web-CIrcbfkd.js");
|
|
75602
75603
|
return webChannelPromise;
|
|
75603
75604
|
}
|
|
75604
75605
|
function loadWhatsAppActions() {
|
|
75605
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
75606
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-D1RsnX7P.js");
|
|
75606
75607
|
return whatsappActionsPromise;
|
|
75607
75608
|
}
|
|
75608
75609
|
function createPluginRuntime() {
|
|
@@ -75823,7 +75824,7 @@ const resolvePluginSdkAliasFile = (params) => {
|
|
|
75823
75824
|
const srcCandidate = path.join(cursor, "src", "plugin-sdk", params.srcFile);
|
|
75824
75825
|
const distCandidate = path.join(cursor, "dist", "plugin-sdk", params.distFile);
|
|
75825
75826
|
const orderedCandidates = isTest ? [distCandidate, srcCandidate] : [distCandidate];
|
|
75826
|
-
for (const candidate of orderedCandidates) if (
|
|
75827
|
+
for (const candidate of orderedCandidates) if (fs$1.existsSync(candidate)) return candidate;
|
|
75827
75828
|
const parent = path.dirname(cursor);
|
|
75828
75829
|
if (parent === cursor) break;
|
|
75829
75830
|
cursor = parent;
|
|
@@ -77975,7 +77976,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
77975
77976
|
if (!apiKeyInfo.apiKey) {
|
|
77976
77977
|
if (apiKeyInfo.mode !== "aws-sdk") throw new Error(`No API key resolved for provider "${model.provider}" (auth mode: ${apiKeyInfo.mode}).`);
|
|
77977
77978
|
} else if (model.provider === "github-copilot") {
|
|
77978
|
-
const { resolveCopilotApiToken } = await import("./github-copilot-token-
|
|
77979
|
+
const { resolveCopilotApiToken } = await import("./github-copilot-token-C_qUP7p5.js").then((n) => n.n);
|
|
77979
77980
|
const copilotToken = await resolveCopilotApiToken({ githubToken: apiKeyInfo.apiKey });
|
|
77980
77981
|
authStorage.setRuntimeApiKey(model.provider, copilotToken.token);
|
|
77981
77982
|
} else authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey);
|