@bitseek/claw 1.1.0-beta.1 → 1.2.0
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-Q4TInGRB.js → accounts-B1Ev8y2Q.js} +1 -1
- package/dist/{accounts-CX1yOBOk.js → accounts-BTexwKe8.js} +1 -1
- package/dist/{accounts-BcjOiql6.js → accounts-BvAUwnNS.js} +1 -1
- package/dist/{accounts-DZqwa5NK.js → accounts-CFz9Jc5d.js} +1 -1
- package/dist/{accounts-DU3tdXTQ.js → accounts-DYfFud2l.js} +3 -3
- package/dist/{accounts-CaiECgq3.js → accounts-ubG6irXZ.js} +16 -16
- package/dist/{active-listener-B5NrQkZf.js → active-listener-CTS8r9of.js} +1 -1
- package/dist/{active-listener-neKWQsOO.js → active-listener-Hd9sOu9T.js} +1 -1
- package/dist/{agent-scope-WFSLjKze.js → agent-scope-BV1a5xUb.js} +3 -3
- package/dist/{agent-scope-CTbRzU1C.js → agent-scope-C6hps0r3.js} +4 -4
- package/dist/{api-key-rotation-BTSy5kZN.js → api-key-rotation-Bcht0XFN.js} +2 -2
- package/dist/{api-key-rotation-QF_IgxAt.js → api-key-rotation-WzOC5dTW.js} +2 -2
- package/dist/{audio-preflight-DZWb0ozj.js → audio-preflight-BWOdDA2n.js} +39 -39
- package/dist/{audio-preflight-BmP9CWz5.js → audio-preflight-CHD1xVrt.js} +33 -33
- package/dist/{audio-transcription-runner-2dp0SxL3.js → audio-transcription-runner-DaoqvWoi.js} +11 -11
- package/dist/{audio-transcription-runner-DY-f5ESH.js → audio-transcription-runner-DwWOJBSn.js} +10 -10
- package/dist/{bindings-BiLTzEDB.js → bindings-Cn3Pwuys.js} +2 -2
- package/dist/{bindings-Daa-Etag.js → bindings-CsIiIjqN.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +65 -65
- package/dist/bundled/bootstrap-extra-files/handler.js +7 -7
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +65 -65
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-B0EccK2Z.js → channel-activity-BFQ7OM6W.js} +3 -3
- package/dist/{channel-activity-Btz1t5_1.js → channel-activity-D81g48kD.js} +3 -3
- package/dist/{chrome-DX1blHAJ.js → chrome-CjTE-vWv.js} +18 -18
- package/dist/{chrome-B6KLicBS.js → chrome-CuMCXCQN.js} +7 -7
- package/dist/{chunk-DRA82fRK.js → chunk-CJxSBMow.js} +1 -1
- package/dist/{chunk-DEkdXze6.js → chunk-DtYb6TYl.js} +1 -1
- package/dist/{commands-registry-BQkQRhEo.js → commands-registry-NIsv9Z4R.js} +5 -5
- package/dist/{commands-registry-BcwiV2E6.js → commands-registry-sN7UY9o6.js} +5 -5
- package/dist/{deliver-BebswuJX.js → deliver-Dyh8ZsLI.js} +11 -11
- package/dist/{deliver-C82Egs0W.js → deliver-xY3h9X6N.js} +22 -22
- package/dist/{diagnostic-DpOlXoSr.js → diagnostic-BO1GQJJf.js} +2 -2
- package/dist/{diagnostic-BfH0uEFW.js → diagnostic-Co8pKHgV.js} +2 -2
- package/dist/{dock-DWqb4ufG.js → dock-Cr9V9V1V.js} +6 -6
- package/dist/{dock-DC1L25RR.js → dock-L5TLZmhV.js} +6 -6
- package/dist/{env-Bn6pmvjK.js → env-DNMZEG57.js} +2 -2
- package/dist/{env-C4fkljkr.js → env-zky96nK6.js} +1 -1
- package/dist/{errors-Co1cHB39.js → errors-DEkWxItM.js} +1 -1
- package/dist/{errors-azBrKJmF.js → errors-Dt6Q4949.js} +1 -1
- package/dist/extensionAPI.js +59 -59
- package/dist/{fetch-B82CeaHJ.js → fetch--iXu7oa7.js} +5 -5
- package/dist/{fetch-yZvEqNBq.js → fetch-BfCWv6tx.js} +4 -4
- package/dist/{fetch-guard-CCLWHwu7.js → fetch-guard-CNvY0vzQ.js} +2 -2
- package/dist/{fetch-guard-HVq6HV21.js → fetch-guard-DfeA6yKv.js} +2 -2
- package/dist/{frontmatter-5U1LYLH9.js → frontmatter-DIRc-IR1.js} +2 -2
- package/dist/{fs-safe-BDR6eQAw.js → fs-safe-D8x_nIIA.js} +4 -4
- package/dist/{fs-safe-Bjb1TwNw.js → fs-safe-DkXQKmLV.js} +3 -3
- package/dist/{github-copilot-token-CPjAmbfr.js → github-copilot-token-DLGN-8YS.js} +7 -7
- package/dist/{image-BQ1JgwZu.js → image-DCyaYY2d.js} +6 -6
- package/dist/{image-D0UuqhWe.js → image-DihIv8Eo.js} +6 -6
- package/dist/{image-ops-DZueuY58.js → image-ops-CSs8oYrR.js} +1 -1
- package/dist/{image-ops-jvmQoiyw.js → image-ops-DCpyia_K.js} +1 -1
- package/dist/{internal-hooks-oLQ2m8YT.js → internal-hooks-yQe6H47q.js} +1 -1
- package/dist/{ir-B8_sHx0x.js → ir-BZUjdf-6.js} +7 -7
- package/dist/{ir-BODD8g-I.js → ir-D805RkIy.js} +7 -7
- package/dist/llm-slug-generator.js +65 -65
- package/dist/{logger-DelEB7MK.js → logger-9KuF7Fqb.js} +1 -1
- package/dist/{logger-Dq_8pk7N.js → logger-BlH5MJiV.js} +1 -1
- package/dist/{login-BLdQCgev.js → login-CgEHUE7h.js} +6 -6
- package/dist/{login-Cm2zDfEU.js → login-CrT31QVq.js} +6 -6
- package/dist/{login-qr-BlBmIbUe.js → login-qr-Bu-zPzca.js} +9 -9
- package/dist/{login-qr-iS1jPDpP.js → login-qr-DUJfhbUe.js} +13 -13
- package/dist/{manager-DdzkWOvc.js → manager-BNuB9clC.js} +15 -15
- package/dist/{manager-DZ1r4cza.js → manager-BwSA683a.js} +10 -10
- package/dist/{markdown-tables-pfs_NCNh.js → markdown-tables-BHONoo6S.js} +1 -1
- package/dist/{markdown-tables-D3tGrgw6.js → markdown-tables-ChcK0mrw.js} +1 -1
- package/dist/{message-channel-POuk6EOq.js → message-channel-B1_JjaQ_.js} +1 -1
- package/dist/{message-channel-Dla8iIQh.js → message-channel-Dl8dSs0T.js} +1 -1
- package/dist/{model-selection-Lcv6_xTw.js → model-selection-D5OFBCTr.js} +10 -10
- package/dist/{model-selection-DfZMxaX3.js → model-selection-D_Si2Ict.js} +44 -44
- package/dist/{outbound-io4lysA3.js → outbound-B9pGRwxd.js} +7 -7
- package/dist/{outbound-4q4mbU-Z.js → outbound-DOVV_R6m.js} +7 -7
- package/dist/{outbound-attachment-DObhzSFC.js → outbound-attachment-Bnm1vH9k.js} +2 -2
- package/dist/{outbound-attachment-CBCp1oVQ.js → outbound-attachment-C7sJLSnv.js} +2 -2
- package/dist/{path-alias-guards-DcdNrTfo.js → path-alias-guards-BaYeiedF.js} +1 -1
- package/dist/{path-alias-guards-DfQIjfhB.js → path-alias-guards-CKjKIhQ3.js} +1 -1
- package/dist/{paths-BZO1jkK2.js → paths-Cpu0XgUj.js} +3 -3
- package/dist/{paths-DKuX7-1L.js → paths-aGRLvQx9.js} +5 -5
- package/dist/{pi-embedded-DiUmkZyz.js → pi-embedded-DE3hb87F.js} +178 -178
- package/dist/{pi-embedded-helpers-Bhiht_Fr.js → pi-embedded-helpers-Bmj18lhA.js} +17 -17
- package/dist/{pi-embedded-helpers-CuwhW4u9.js → pi-embedded-helpers-CMTVhLjq.js} +29 -29
- package/dist/{pi-embedded-ZTnJGCQY.js → pi-embedded-xCcmCTnf.js} +93 -93
- package/dist/{pi-model-discovery-COjkql-U.js → pi-model-discovery-DCIw1y1c.js} +7 -7
- package/dist/{pi-model-discovery-DkGEaaQo.js → pi-model-discovery-DpYZ-y1X.js} +1 -1
- package/dist/{plugins-Q9sCFgDd.js → plugins-BuQyooWr.js} +6 -6
- package/dist/{plugins-D63QYxW6.js → plugins-CJoaoIHc.js} +11 -11
- package/dist/{proxy-DXnFb9JG.js → proxy-DfJJLvch.js} +1 -1
- package/dist/{proxy-jINniQBi.js → proxy-DuIUyAbU.js} +1 -1
- package/dist/{proxy-env-gJ_T0CNE.js → proxy-env-2PDGuovA.js} +1 -1
- package/dist/{proxy-env-vYAjKL5q.js → proxy-env-BnDt8j9F.js} +1 -1
- package/dist/{proxy-fetch-AvkSvetA.js → proxy-fetch-fN-NLyCx.js} +1 -1
- package/dist/{proxy-fetch-Cwaqi3Sd.js → proxy-fetch-xlbVQYN_.js} +1 -1
- package/dist/{pw-ai-BLNiRUPI.js → pw-ai-DGwA7iCM.js} +17 -17
- package/dist/{pw-ai-Cu00qsvT.js → pw-ai-pqeoAqm_.js} +13 -13
- package/dist/{qmd-manager-BBKfRzj-.js → qmd-manager-CeN3N992.js} +11 -11
- package/dist/{qmd-manager-BXnhgEhZ.js → qmd-manager-DCiOmvlF.js} +8 -8
- package/dist/{query-expansion-GvCTlZq8.js → query-expansion-Bxi0ZwK0.js} +2 -2
- package/dist/{query-expansion-2BrixCA2.js → query-expansion-CGnW4Mk_.js} +5 -5
- package/dist/{redact-uUggP88O.js → redact-ScShueoF.js} +1 -1
- package/dist/{redact-BeNq-0Ah.js → redact-b4XSqAVh.js} +1 -1
- package/dist/{registry-Cm2o3UqV.js → registry-BOq-EU8K.js} +2 -2
- package/dist/{registry-C2GEGa2t.js → registry-CJCkqTms.js} +3 -3
- package/dist/{replies-yAf6dFeT.js → replies-BFYGUEKu.js} +3 -3
- package/dist/{replies-BoccpPLY.js → replies-CRQL_9_u.js} +3 -3
- package/dist/{reply-prefix-9mzt89Cf.js → reply-prefix-BDSRMl8C.js} +1 -1
- package/dist/{reply-prefix-V_WbQmQI.js → reply-prefix-DK1i6bCJ.js} +1 -1
- package/dist/{resolve-route-BNElrVxR.js → resolve-route-C5hVstLo.js} +4 -4
- package/dist/{resolve-route-CbtpwLIw.js → resolve-route-CeAUOHqF.js} +4 -4
- package/dist/{retry-Ayb7e4XG.js → retry-CqXTCn07.js} +1 -1
- package/dist/{retry-Do0h0jOj.js → retry-DTeP7C3h.js} +1 -1
- package/dist/{send-Bclgg0Ur.js → send-B4pSMBHk.js} +8 -8
- package/dist/{send-DOfOQoAW.js → send-BSw60pEI.js} +6 -6
- package/dist/{send-BUF5JmoX.js → send-BpJIVMP0.js} +10 -10
- package/dist/{send-Bjaa69Cy.js → send-BqKSZyIb.js} +27 -27
- package/dist/{send-TCeoSiar.js → send-CIQavYDH.js} +15 -15
- package/dist/{send-DYY51FOR.js → send-CN0f1Yst.js} +6 -6
- package/dist/{send-DQ7hIAIK.js → send-DrLGfHcu.js} +7 -7
- package/dist/{send-Cp0yQi_p.js → send-V3fEVmLq.js} +10 -10
- package/dist/{send-CPXpZun_.js → send-XAO1mk64.js} +7 -7
- package/dist/{send-D8-j0bqb.js → send-paWifUry.js} +8 -8
- package/dist/{session-CJ9krhUZ.js → session-BrRIoGdv.js} +5 -5
- package/dist/{session-meta-DDoYe-12.js → session-meta-B56tnXvx.js} +1 -1
- package/dist/{session-meta-CyQWVUk4.js → session-meta-Cqv55kSk.js} +2 -2
- package/dist/{session-TVb8hgJP.js → session-xKPVUYQP.js} +9 -9
- package/dist/{sessions-DRS5w42J.js → sessions-BXwugIi3.js} +6 -6
- package/dist/{sessions-3jroJwu7.js → sessions-CA_BydGA.js} +31 -31
- package/dist/{skill-commands-CSr9_48V.js → skill-commands-CZFmIM-s.js} +9 -9
- package/dist/{skill-commands-gSVeOO1_.js → skill-commands-DfX4Z2l_.js} +5 -5
- package/dist/{skills-B82IjVxn.js → skills-DMmr25nW.js} +22 -22
- package/dist/{skills-L3SwymRq.js → skills-Z-lrvzqS.js} +8 -8
- package/dist/{store-DhC72KqW.js → store-C8KgeMt2.js} +2 -2
- package/dist/{store-kjBSBYUM.js → store-DzT4cJNJ.js} +2 -2
- package/dist/{subsystem-CAatx5oo.js → subsystem-BRjuJbbM.js} +14 -14
- package/dist/{subsystem-B9sSF5B5.js → subsystem-CVmydYhZ.js} +2 -2
- package/dist/{tables-Bfh_TnCf.js → tables-BKnPZssn.js} +1 -1
- package/dist/{tables-D8eYbmn5.js → tables-DAQMuyH8.js} +1 -1
- package/dist/{target-errors-CGYXYvSZ.js → target-errors-B9Jzop3d.js} +2 -2
- package/dist/{target-errors-C6-JcltW.js → target-errors-BPINy_1M.js} +2 -2
- package/dist/{tokens-BvzZdrVJ.js → tokens-2c_yMaYC.js} +1 -1
- package/dist/{tokens-JC-PGa1O.js → tokens-B9EDT4jv.js} +1 -1
- package/dist/{tool-images-CqsWnc1k.js → tool-images-BOZsvFJ9.js} +2 -2
- package/dist/{tool-images-BieqkTsF.js → tool-images-ffdfBx0b.js} +2 -2
- package/dist/{tool-loop-detection-C4V990MS.js → tool-loop-detection-CLoYKYIq.js} +3 -3
- package/dist/{tool-loop-detection-CrEXrBzX.js → tool-loop-detection-Cmi-kldp.js} +2 -2
- package/dist/{utils-Bo1RFF0l.js → utils-BFZnl-5N.js} +6 -6
- package/dist/{utils-LC1iyEdx.js → utils-CM9uSTVd.js} +1 -1
- package/dist/{web-DsAoa63g.js → web-B2_c07KN.js} +69 -69
- package/dist/{web-D5Vw9sie.js → web-CvYmNThc.js} +63 -63
- package/dist/{whatsapp-actions-DXjy9m41.js → whatsapp-actions-CHt12z-f.js} +28 -28
- package/dist/{whatsapp-actions-BOYS1jdy.js → whatsapp-actions-D_-xXIS-.js} +24 -24
- package/dist/{workspace-CswOYN9T.js → workspace-D6mrCnXi.js} +21 -21
- package/docs/plans/2026-03-11-npm-publish-workflow-design.md +31 -0
- package/extensions/googlechat/package.json +1 -1
- package/package.json +7 -6
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { A as spawnWithFallback, C as loadWorkspaceBootstrapFiles, E as resolveOpenClawPackageRoot, G as resolveAgentModelPrimaryValue, H as normalizeWindowsPathForComparison, K as toAgentModelListLike, M as openBoundaryFile, N as openBoundaryFileSync, O as runCommandWithTimeout, S as filterBootstrapFilesForSession, W as resolveAgentModelFallbackValues, _ as DEFAULT_IDENTITY_FILENAME, c as resolveDefaultAgentId, d as resolveSessionAgentId, f as resolveSessionAgentIds, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, k as runExec, l as resolveEffectiveModelFallbacks, m as DEFAULT_AGENT_WORKSPACE_DIR, n as listAgentIds, o as resolveAgentSkillsFilter, r as resolveAgentConfig, s as resolveAgentWorkspaceDir, t as hasConfiguredModelFallbacks, u as resolveRunModelFallbacksOverride, w as resolveWorkspaceAttachmentsRoot, x as ensureAgentWorkspace } from "./agent-scope-
|
|
2
|
+
import { A as spawnWithFallback, C as loadWorkspaceBootstrapFiles, E as resolveOpenClawPackageRoot, G as resolveAgentModelPrimaryValue, H as normalizeWindowsPathForComparison, K as toAgentModelListLike, M as openBoundaryFile, N as openBoundaryFileSync, O as runCommandWithTimeout, S as filterBootstrapFilesForSession, W as resolveAgentModelFallbackValues, _ as DEFAULT_IDENTITY_FILENAME, c as resolveDefaultAgentId, d as resolveSessionAgentId, f as resolveSessionAgentIds, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, k as runExec, l as resolveEffectiveModelFallbacks, m as DEFAULT_AGENT_WORKSPACE_DIR, n as listAgentIds, o as resolveAgentSkillsFilter, r as resolveAgentConfig, s as resolveAgentWorkspaceDir, t as hasConfiguredModelFallbacks, u as resolveRunModelFallbacksOverride, w as resolveWorkspaceAttachmentsRoot, x as ensureAgentWorkspace } from "./agent-scope-BV1a5xUb.js";
|
|
3
3
|
import { a as resolveGatewayPort, c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, n as STATE_DIR, p as resolveCliName, r as resolveConfigPath } from "./paths-De1_4l4O.js";
|
|
4
|
-
import { C as normalizeLogLevel, E as consumeRootOptionToken, T as FLAG_TERMINATOR, _ as isRich, a as clearActiveProgressLine, c as danger, f as setVerbose, g as colorize, h as warn, i as defaultRuntime, o as registerActiveProgressLine, p as shouldLogVerbose, r as createNonExitingRuntime, s as unregisterActiveProgressLine, t as createSubsystemLogger, u as logVerbose, v as theme, w as resolvePreferredOpenClawTmpDir, y as getChildLogger } from "./subsystem-
|
|
4
|
+
import { C as normalizeLogLevel, E as consumeRootOptionToken, T as FLAG_TERMINATOR, _ as isRich, a as clearActiveProgressLine, c as danger, f as setVerbose, g as colorize, h as warn, i as defaultRuntime, o as registerActiveProgressLine, p as shouldLogVerbose, r as createNonExitingRuntime, s as unregisterActiveProgressLine, t as createSubsystemLogger, u as logVerbose, v as theme, w as resolvePreferredOpenClawTmpDir, y as getChildLogger } from "./subsystem-CVmydYhZ.js";
|
|
5
5
|
import { C as resolveThreadParentSessionKey, S as parseAgentSessionKey, _ as deriveSessionChatType, b as isCronSessionKey, c as normalizeAgentId, d as resolveThreadSessionKeys, f as sanitizeAgentId, g as isBlockedObjectKey, h as normalizeOptionalAccountId, l as normalizeMainKey, m as normalizeAccountId$2, o as classifySessionKeyShape, p as DEFAULT_ACCOUNT_ID, r as buildAgentMainSessionKey, s as isValidAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, v as getSubagentDepth, x as isSubagentSessionKey, y as isAcpSessionKey } from "./session-key-a6av96Fj.js";
|
|
6
|
-
import { C as isPlainObject, S as truncateUtf16Safe, _ as shortenHomeInString, a as ensureDir$3, b as sliceUtf16Safe, c as isRecord$1, d as normalizeE164, h as resolveUserPath, o as escapeRegExp, r as clampInt, s as formatTerminalLink, t as CONFIG_DIR, v as shortenHomePath, y as sleep$1 } from "./utils-
|
|
7
|
-
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-
|
|
8
|
-
import { $ as resolveIMessageAttachmentRoots, $t as resolveCommandResolutionFromArgv, A as resolveEnvApiKey, An as resolveOpenClawAgentDir, At as normalizePluginsConfig, Bn as DEFAULT_MODEL, Bt as unsetConfigValueAtPath, C as buildAssistantMessageWithZeroUsage, Cn as isDangerousHostEnvVarName, Ct as loadPluginManifestRegistry, D as getCustomProviderApiKey, Dn as markAuthProfileGood, E as getApiKeyForModel, En as listProfilesForProvider, Et as safeStatSync, F as isProfileInCooldown, Fn as resolveAuthProfileDisplayLabel, Ft as setConfigOverride, G as writeConfigFile, Gt as validateSafeBinArgv, H as readConfigFileSnapshot, Ht as isTrustedSafeBinPath, I as markAuthProfileFailure, It as unsetConfigOverride, J as normalizeTelegramCommandName, Jt as isWindowsPlatform, K as validateConfigObjectWithPlugins, Kt as analyzeShellCommand, L as markAuthProfileUsed, Ln as normalizeSecretInput, Lt as getConfigValueAtPath, Mt as resolveMemorySlotDecision, N as resolveAuthProfileOrder, Nt as getConfigOverrides, O as requireApiKey, On as ensureAuthProfileStore, Ot as MANIFEST_KEY, P as getSoonestCooldownExpiry, Pt as resetConfigOverrides, Qt as resolveAllowlistCandidatePath, R as resolveProfilesUnavailableReason, Rn as splitTrailingAuthProfile, Rt as parseConfigPath, S as buildAssistantMessage, Sn as resolveShellEnvFallbackTimeoutMs, St as validateJsonSchemaValue, T as buildUsageWithNoCost, Tn as dedupeProfileIds, Tt as isPathInside, Ut as listWritableExplicitTrustedSafeBinDirs, V as loadConfig, Vn as DEFAULT_PROVIDER, Vt as getTrustedSafeBinDirs, W as resolveConfigSnapshotHash, Wt as normalizeTrustedSafeBinDirs, Xt as DEFAULT_SAFE_BINS, Y as resolveTelegramCustomCommands, Yt as splitCommandChain, Z as isInboundPathAllowed, Zt as matchAllowlist, _t as AVATAR_MAX_BYTES, a as isCliProvider, an as splitShellArgs, b as OLLAMA_NATIVE_BASE_URL, bn as VERSION, bt as isPathWithinRoot, c as normalizeProviderId, cn as resolveSafeBinProfiles, d as resolveModelRefFromString, dn as mapStreamingModeToSlackLegacyDraftStreamMode, en as extractShellWrapperInlineCommand, et as resolveIMessageRemoteAttachmentRoots, f as resolveReasoningDefault, fn as resolveDiscordPreviewStreamMode, i as findNormalizedProviderValue, in as unwrapKnownShellMultiplexerInvocation, it as parseDurationMs, j as resolveModelAuthMode, jn as withFileLock, jt as resolveEffectiveEnableState, k as resolveApiKeyForProvider, kn as resolveAuthStorePathForDisplay, kt as applyTestPluginDefaults, l as resolveConfiguredModelRef, ln as applyMergePatch, m as resolveThinkingDefault, mn as resolveSlackStreamingMode, n as buildConfiguredAllowlistKeys, nn as isShellWrapperExecutable, nt as parseNonNegativeByteSize, o as modelKey, on as SAFE_BIN_PROFILES, p as resolveSubagentSpawnModelSelection, pn as resolveSlackNativeStreaming, q as TELEGRAM_COMMAND_NAME_PATTERN, qt as buildEnforcedShellCommand, r as buildModelAliasIndex, rn as unwrapKnownDispatchWrapperInvocation, s as normalizeModelRef$2, sn as normalizeSafeBinProfileFixtures, t as buildAllowedModelSet, tn as isDispatchWrapperExecutable, tt as normalizeScpRemoteHost, u as resolveDefaultModelForAgent, un as isSafeExecutableValue, vn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, vt as isAvatarDataUrl, w as buildStreamErrorAssistantMessage, wn as resolveOwnerDisplaySetting, wt as discoverOpenClawPlugins, x as createOllamaStreamFn, xn as getShellPathFromLoginShell, xt as isSupportedLocalAvatarExtension, yn as resolveAgentMaxConcurrent, yt as isAvatarHttpUrl, z as resolveApiKeyForProfile, zn as DEFAULT_CONTEXT_TOKENS, zt as setConfigValueAtPath } from "./model-selection-
|
|
9
|
-
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
6
|
+
import { C as isPlainObject, S as truncateUtf16Safe, _ as shortenHomeInString, a as ensureDir$3, b as sliceUtf16Safe, c as isRecord$1, d as normalizeE164, h as resolveUserPath, o as escapeRegExp, r as clampInt, s as formatTerminalLink, t as CONFIG_DIR, v as shortenHomePath, y as sleep$1 } from "./utils-CM9uSTVd.js";
|
|
7
|
+
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-9KuF7Fqb.js";
|
|
8
|
+
import { $ as resolveIMessageAttachmentRoots, $t as resolveCommandResolutionFromArgv, A as resolveEnvApiKey, An as resolveOpenClawAgentDir, At as normalizePluginsConfig, Bn as DEFAULT_MODEL, Bt as unsetConfigValueAtPath, C as buildAssistantMessageWithZeroUsage, Cn as isDangerousHostEnvVarName, Ct as loadPluginManifestRegistry, D as getCustomProviderApiKey, Dn as markAuthProfileGood, E as getApiKeyForModel, En as listProfilesForProvider, Et as safeStatSync, F as isProfileInCooldown, Fn as resolveAuthProfileDisplayLabel, Ft as setConfigOverride, G as writeConfigFile, Gt as validateSafeBinArgv, H as readConfigFileSnapshot, Ht as isTrustedSafeBinPath, I as markAuthProfileFailure, It as unsetConfigOverride, J as normalizeTelegramCommandName, Jt as isWindowsPlatform, K as validateConfigObjectWithPlugins, Kt as analyzeShellCommand, L as markAuthProfileUsed, Ln as normalizeSecretInput, Lt as getConfigValueAtPath, Mt as resolveMemorySlotDecision, N as resolveAuthProfileOrder, Nt as getConfigOverrides, O as requireApiKey, On as ensureAuthProfileStore, Ot as MANIFEST_KEY, P as getSoonestCooldownExpiry, Pt as resetConfigOverrides, Qt as resolveAllowlistCandidatePath, R as resolveProfilesUnavailableReason, Rn as splitTrailingAuthProfile, Rt as parseConfigPath, S as buildAssistantMessage, Sn as resolveShellEnvFallbackTimeoutMs, St as validateJsonSchemaValue, T as buildUsageWithNoCost, Tn as dedupeProfileIds, Tt as isPathInside, Ut as listWritableExplicitTrustedSafeBinDirs, V as loadConfig, Vn as DEFAULT_PROVIDER, Vt as getTrustedSafeBinDirs, W as resolveConfigSnapshotHash, Wt as normalizeTrustedSafeBinDirs, Xt as DEFAULT_SAFE_BINS, Y as resolveTelegramCustomCommands, Yt as splitCommandChain, Z as isInboundPathAllowed, Zt as matchAllowlist, _t as AVATAR_MAX_BYTES, a as isCliProvider, an as splitShellArgs, b as OLLAMA_NATIVE_BASE_URL, bn as VERSION, bt as isPathWithinRoot, c as normalizeProviderId, cn as resolveSafeBinProfiles, d as resolveModelRefFromString, dn as mapStreamingModeToSlackLegacyDraftStreamMode, en as extractShellWrapperInlineCommand, et as resolveIMessageRemoteAttachmentRoots, f as resolveReasoningDefault, fn as resolveDiscordPreviewStreamMode, i as findNormalizedProviderValue, in as unwrapKnownShellMultiplexerInvocation, it as parseDurationMs, j as resolveModelAuthMode, jn as withFileLock, jt as resolveEffectiveEnableState, k as resolveApiKeyForProvider, kn as resolveAuthStorePathForDisplay, kt as applyTestPluginDefaults, l as resolveConfiguredModelRef, ln as applyMergePatch, m as resolveThinkingDefault, mn as resolveSlackStreamingMode, n as buildConfiguredAllowlistKeys, nn as isShellWrapperExecutable, nt as parseNonNegativeByteSize, o as modelKey, on as SAFE_BIN_PROFILES, p as resolveSubagentSpawnModelSelection, pn as resolveSlackNativeStreaming, q as TELEGRAM_COMMAND_NAME_PATTERN, qt as buildEnforcedShellCommand, r as buildModelAliasIndex, rn as unwrapKnownDispatchWrapperInvocation, s as normalizeModelRef$2, sn as normalizeSafeBinProfileFixtures, t as buildAllowedModelSet, tn as isDispatchWrapperExecutable, tt as normalizeScpRemoteHost, u as resolveDefaultModelForAgent, un as isSafeExecutableValue, vn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, vt as isAvatarDataUrl, w as buildStreamErrorAssistantMessage, wn as resolveOwnerDisplaySetting, wt as discoverOpenClawPlugins, x as createOllamaStreamFn, xn as getShellPathFromLoginShell, xt as isSupportedLocalAvatarExtension, yn as resolveAgentMaxConcurrent, yt as isAvatarHttpUrl, z as resolveApiKeyForProfile, zn as DEFAULT_CONTEXT_TOKENS, zt as setConfigValueAtPath } from "./model-selection-D5OFBCTr.js";
|
|
9
|
+
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-BDSRMl8C.js";
|
|
10
10
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-CwIS0zs9.js";
|
|
11
|
-
import { n as parseBooleanValue$1, r as formatCliCommand, t as isTruthyEnvValue } from "./env-
|
|
12
|
-
import { _ as getPluginCommandSpecs, a as normalizeAnyChannelId, b as createInternalHookEvent, c as getActivePluginRegistry, d as requireActivePluginRegistry, f as setActivePluginRegistry, g as executePluginCommand, h as clearPluginCommands, i as listChatChannels, l as getActivePluginRegistryKey, m as normalizePluginHttpPath, n as CHAT_CHANNEL_ORDER, o as normalizeChannelId$1, p as createPluginRegistry, r as getChatChannelMeta, s as normalizeChatChannelId, v as listPluginCommands, x as triggerInternalHook, y as matchPluginCommand } from "./registry-
|
|
13
|
-
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, o as resolveChannelGroupToolsPolicy, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-
|
|
11
|
+
import { n as parseBooleanValue$1, r as formatCliCommand, t as isTruthyEnvValue } from "./env-zky96nK6.js";
|
|
12
|
+
import { _ as getPluginCommandSpecs, a as normalizeAnyChannelId, b as createInternalHookEvent, c as getActivePluginRegistry, d as requireActivePluginRegistry, f as setActivePluginRegistry, g as executePluginCommand, h as clearPluginCommands, i as listChatChannels, l as getActivePluginRegistryKey, m as normalizePluginHttpPath, n as CHAT_CHANNEL_ORDER, o as normalizeChannelId$1, p as createPluginRegistry, r as getChatChannelMeta, s as normalizeChatChannelId, v as listPluginCommands, x as triggerInternalHook, y as matchPluginCommand } from "./registry-BOq-EU8K.js";
|
|
13
|
+
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, o as resolveChannelGroupToolsPolicy, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-L5TLZmhV.js";
|
|
14
14
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-C0tgsauE.js";
|
|
15
|
-
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-
|
|
16
|
-
import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, c as listTelegramAccountIds, d as resolveSlackAccount, f as resolveSlackReplyToMode, 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$2, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeDiscordToken } from "./plugins-
|
|
17
|
-
import { a as logWebSelfId, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, o as logoutWeb, t as hasAnyWhatsAppAuth, u as readWebSelfId } from "./accounts-
|
|
15
|
+
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-2c_yMaYC.js";
|
|
16
|
+
import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, c as listTelegramAccountIds, d as resolveSlackAccount, f as resolveSlackReplyToMode, 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$2, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeDiscordToken } from "./plugins-BuQyooWr.js";
|
|
17
|
+
import { a as logWebSelfId, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, o as logoutWeb, t as hasAnyWhatsAppAuth, u as readWebSelfId } from "./accounts-DYfFud2l.js";
|
|
18
18
|
import { t as resolveAccountEntry } from "./account-lookup-C0ndrpt-.js";
|
|
19
19
|
import { t as normalizeChatType } from "./chat-type-CYPyHAj-.js";
|
|
20
|
-
import { t as buildChannelAccountBindings } from "./bindings-
|
|
21
|
-
import { a as createSlackWebClient, c as validateSlackBlocksArray, d as resolveSlackChannelId, i as normalizeSlackOutboundText, l as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack, u as parseSlackTarget } from "./send-
|
|
22
|
-
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 isDiscordGroupAllowedByPolicy, d as parseDiscordModalCustomId, dt as resolveDiscordAllowListMatch, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordChannelConfigWithFallback, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordOwnerAccess, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as normalizeDiscordAllowList, m as resolveDiscordComponentEntry, mt as resolveDiscordMemberAccessState, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordGuildEntry, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordSlug, 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-
|
|
20
|
+
import { t as buildChannelAccountBindings } from "./bindings-Cn3Pwuys.js";
|
|
21
|
+
import { a as createSlackWebClient, c as validateSlackBlocksArray, d as resolveSlackChannelId, i as normalizeSlackOutboundText, l as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack, u as parseSlackTarget } from "./send-paWifUry.js";
|
|
22
|
+
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 isDiscordGroupAllowedByPolicy, d as parseDiscordModalCustomId, dt as resolveDiscordAllowListMatch, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordChannelConfigWithFallback, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordOwnerAccess, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as normalizeDiscordAllowList, m as resolveDiscordComponentEntry, mt as resolveDiscordMemberAccessState, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordGuildEntry, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordSlug, 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-BpJIVMP0.js";
|
|
23
23
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-CFRVlPvh.js";
|
|
24
|
-
import { A as initializeGlobalHookRunner, C as shouldSuppressReasoningPayload, D as normalizeChannelTargetInput, E as buildTargetResolverSignature, O as normalizeTargetForProvider, S as shouldSuppressMessagingToolReplies, T as resolveReplyToMode, _ as applyReplyTagsToPayload, a as normalizeOutboundPayloadsForJson, b as filterMessagingToolMediaDuplicates, c as parseReplyDirectives, d as toInternalMessagePreprocessedContext, f as toInternalMessageReceivedContext, g as fireAndForgetHook, h as toPluginMessageReceivedEvent, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as toPluginMessageContext, o as normalizeReplyPayloadsForDelivery, p as toInternalMessageTranscribedContext, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as deriveInboundMessageHookContext, v as applyReplyThreading, w as createReplyToModeFilterForChannel, x as isRenderablePayload, y as filterMessagingToolDuplicates } from "./deliver-
|
|
25
|
-
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-
|
|
24
|
+
import { A as initializeGlobalHookRunner, C as shouldSuppressReasoningPayload, D as normalizeChannelTargetInput, E as buildTargetResolverSignature, O as normalizeTargetForProvider, S as shouldSuppressMessagingToolReplies, T as resolveReplyToMode, _ as applyReplyTagsToPayload, a as normalizeOutboundPayloadsForJson, b as filterMessagingToolMediaDuplicates, c as parseReplyDirectives, d as toInternalMessagePreprocessedContext, f as toInternalMessageReceivedContext, g as fireAndForgetHook, h as toPluginMessageReceivedEvent, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as toPluginMessageContext, o as normalizeReplyPayloadsForDelivery, p as toInternalMessageTranscribedContext, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as deriveInboundMessageHookContext, v as applyReplyThreading, w as createReplyToModeFilterForChannel, x as isRenderablePayload, y as filterMessagingToolDuplicates } from "./deliver-Dyh8ZsLI.js";
|
|
25
|
+
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-Co8pKHgV.js";
|
|
26
26
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-iIgQ4O9h.js";
|
|
27
|
-
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-
|
|
28
|
-
import { $ as readChannelAllowFromStore, A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as mergeDmAllowFromSources, K as firstDefined$1, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, Q as addChannelAllowFromStoreEntry, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, X as formatLocationText, Y as resolveGroupAllowFromSources, Z as toLocationContext, _ as resolveTelegramFetch, a as reactMessageTelegram, at as listPairingChannels, b as loadCronStore, c as sendStickerTelegram, ct as resolveTelegramTargetChatType, d as wasSentByBot, et as removeChannelAllowFromStoreEntry, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, it as getPairingAdapter, j as expandTextLinks, k as buildTypingThreadParams, m as markdownToTelegramHtml, n as createForumTopicTelegram, nt as readJsonFileWithFallback, o as sendMessageTelegram, ot as isVoiceCompatibleAudio, p as markdownToTelegramChunks, q as isSenderIdAllowed, r as deleteMessageTelegram, rt as writeJsonFileAtomically, s as sendPollTelegram, st as parseTelegramTarget, t as buildInlineKeyboard, tt as upsertChannelPairingRequest, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildSenderName, x as resolveCronStorePath, y as withTelegramApiErrorLogging, z as resolveTelegramReplyId } from "./send-
|
|
29
|
-
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-
|
|
30
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
31
|
-
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-
|
|
32
|
-
import { $ as mergeAlsoAllowPolicy, A as isRawApiErrorPayload, B as registerBrowserRoutes, C as isCloudCodeAssistFormatError, D as isFailoverErrorMessage, E as isFailoverAssistantError, F as sanitizeUserFacingText, G as resolveBrowserControlAuth, H as resolveProfile, I as ensureSandboxWorkspaceForSession, J as resolveSandboxConfigForAgent, K as resolveGatewayCredentialsFromConfig, L as resolveSandboxContext, M as isTransientHttpError, N as parseImageDimensionError, O as isLikelyContextOverflowError, P as parseImageSizeError, Q as expandPolicyWithPluginGroups, R as resolveSandboxRuntimeStatus, S as isBillingAssistantError, T as isContextOverflowError, U as getBridgeAuthForPort, V as resolveBrowserConfig, W as ensureBrowserControlAuth, X as buildPluginToolGroups, Y as applyOwnerOnlyToolPolicy, Z as collectExplicitAllowlist, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, at as matchesAnyGlobPattern, b as isAuthAssistantError, c as extractToolCallsFromAssistant, ct as resolveBootstrapMaxChars, d as downgradeOpenAIFunctionCallReasoningPairs, et as stripPluginOnlyAllowlist, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, it as compileGlobPatterns, j as isTimeoutErrorMessage, k as isRateLimitAssistantError, l as extractToolResultId, lt as resolveBootstrapTotalMaxChars, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, nt as normalizeToolName, o as normalizeTextForComparison, ot as buildBootstrapContextFiles, p as isGoogleModelApi, q as trimToUndefined$1, r as pickFallbackThinkingLevel, rt as resolveToolProfilePolicy, s as sanitizeSessionMessagesImages, st as ensureSessionHeader, t as validateAnthropicTurns, tt as expandToolGroups, u as sanitizeToolCallIdsForCloudCodeAssist, ut as sanitizeGoogleTurnOrdering, v as formatRawAssistantErrorForUi, w as isCompactionFailureError, x as isAuthPermanentErrorMessage, y as getApiErrorPayloadFingerprint, z as createBrowserRouteContext } from "./pi-embedded-helpers-
|
|
33
|
-
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-
|
|
34
|
-
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-
|
|
35
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
36
|
-
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-
|
|
37
|
-
import { i as formatUncaughtError, o as readErrorName, r as formatErrorMessage } from "./errors-
|
|
38
|
-
import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
39
|
-
import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-
|
|
40
|
-
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-
|
|
27
|
+
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-BvAUwnNS.js";
|
|
28
|
+
import { $ as readChannelAllowFromStore, A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as mergeDmAllowFromSources, K as firstDefined$1, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, Q as addChannelAllowFromStoreEntry, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, X as formatLocationText, Y as resolveGroupAllowFromSources, Z as toLocationContext, _ as resolveTelegramFetch, a as reactMessageTelegram, at as listPairingChannels, b as loadCronStore, c as sendStickerTelegram, ct as resolveTelegramTargetChatType, d as wasSentByBot, et as removeChannelAllowFromStoreEntry, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, it as getPairingAdapter, j as expandTextLinks, k as buildTypingThreadParams, m as markdownToTelegramHtml, n as createForumTopicTelegram, nt as readJsonFileWithFallback, o as sendMessageTelegram, ot as isVoiceCompatibleAudio, p as markdownToTelegramChunks, q as isSenderIdAllowed, r as deleteMessageTelegram, rt as writeJsonFileAtomically, s as sendPollTelegram, st as parseTelegramTarget, t as buildInlineKeyboard, tt as upsertChannelPairingRequest, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildSenderName, x as resolveCronStorePath, y as withTelegramApiErrorLogging, z as resolveTelegramReplyId } from "./send-CIQavYDH.js";
|
|
29
|
+
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-CSs8oYrR.js";
|
|
30
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DpYZ-y1X.js";
|
|
31
|
+
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-B1_JjaQ_.js";
|
|
32
|
+
import { $ as mergeAlsoAllowPolicy, A as isRawApiErrorPayload, B as registerBrowserRoutes, C as isCloudCodeAssistFormatError, D as isFailoverErrorMessage, E as isFailoverAssistantError, F as sanitizeUserFacingText, G as resolveBrowserControlAuth, H as resolveProfile, I as ensureSandboxWorkspaceForSession, J as resolveSandboxConfigForAgent, K as resolveGatewayCredentialsFromConfig, L as resolveSandboxContext, M as isTransientHttpError, N as parseImageDimensionError, O as isLikelyContextOverflowError, P as parseImageSizeError, Q as expandPolicyWithPluginGroups, R as resolveSandboxRuntimeStatus, S as isBillingAssistantError, T as isContextOverflowError, U as getBridgeAuthForPort, V as resolveBrowserConfig, W as ensureBrowserControlAuth, X as buildPluginToolGroups, Y as applyOwnerOnlyToolPolicy, Z as collectExplicitAllowlist, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, at as matchesAnyGlobPattern, b as isAuthAssistantError, c as extractToolCallsFromAssistant, ct as resolveBootstrapMaxChars, d as downgradeOpenAIFunctionCallReasoningPairs, et as stripPluginOnlyAllowlist, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, it as compileGlobPatterns, j as isTimeoutErrorMessage, k as isRateLimitAssistantError, l as extractToolResultId, lt as resolveBootstrapTotalMaxChars, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, nt as normalizeToolName, o as normalizeTextForComparison, ot as buildBootstrapContextFiles, p as isGoogleModelApi, q as trimToUndefined$1, r as pickFallbackThinkingLevel, rt as resolveToolProfilePolicy, s as sanitizeSessionMessagesImages, st as ensureSessionHeader, t as validateAnthropicTurns, tt as expandToolGroups, u as sanitizeToolCallIdsForCloudCodeAssist, ut as sanitizeGoogleTurnOrdering, v as formatRawAssistantErrorForUi, w as isCompactionFailureError, x as isAuthPermanentErrorMessage, y as getApiErrorPayloadFingerprint, z as createBrowserRouteContext } from "./pi-embedded-helpers-Bmj18lhA.js";
|
|
33
|
+
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-CuMCXCQN.js";
|
|
34
|
+
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-Z-lrvzqS.js";
|
|
35
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-BaYeiedF.js";
|
|
36
|
+
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-b4XSqAVh.js";
|
|
37
|
+
import { i as formatUncaughtError, o as readErrorName, r as formatErrorMessage } from "./errors-Dt6Q4949.js";
|
|
38
|
+
import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-DkXQKmLV.js";
|
|
39
|
+
import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-2PDGuovA.js";
|
|
40
|
+
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-DzT4cJNJ.js";
|
|
41
41
|
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-DwMy3FOT.js";
|
|
42
|
-
import { A as jsonUtf8Bytes, B as setSessionRuntimeModel, C as countToolResults, D as applyInputProvenanceToUserMessage, E as INPUT_PROVENANCE_KIND_VALUES, F as resolveSessionResetType, G as deriveSessionMetaPatch, I as resolveThreadFlag, J as resolveSessionLockMaxHoldFromTimeout, K as resolveGroupSessionKey, L as DEFAULT_RESET_TRIGGERS, M as evaluateSessionFreshness, N as resolveChannelResetConfig, O as hasInterSessionUserProvenance, P as resolveSessionResetPolicy, R as mergeSessionEntry, S as capArrayByJsonBytes, T as parseInlineDirectives$1, U as resolveExplicitAgentSessionKey, V as canonicalizeMainSessionAlias, W as resolveMainSessionKey, _ as mergeDeliveryContext, a as resolveAndPersistSessionFile, b as normalizeAccountId$3, c as recordSessionMetaFromInbound, d as updateSessionStore, f as updateSessionStoreEntry, g as deliveryContextKey, h as deliveryContextFromSession, j as resolveSessionKey, k as normalizeInputProvenance, m as resolveCacheTtlMs$1, n as parseSessionThreadInfo, o as loadSessionStore, p as isCacheEnabled, q as acquireSessionWriteLock, r as appendAssistantMessageToSessionTranscript, s as readSessionUpdatedAt, t as extractDeliveryInfo, u as updateLastRoute, v as normalizeDeliveryContext, w as extractToolCallNames, x as archiveSessionTranscripts, y as normalizeSessionDeliveryFields, z as resolveFreshSessionTotalTokens } from "./sessions-
|
|
42
|
+
import { A as jsonUtf8Bytes, B as setSessionRuntimeModel, C as countToolResults, D as applyInputProvenanceToUserMessage, E as INPUT_PROVENANCE_KIND_VALUES, F as resolveSessionResetType, G as deriveSessionMetaPatch, I as resolveThreadFlag, J as resolveSessionLockMaxHoldFromTimeout, K as resolveGroupSessionKey, L as DEFAULT_RESET_TRIGGERS, M as evaluateSessionFreshness, N as resolveChannelResetConfig, O as hasInterSessionUserProvenance, P as resolveSessionResetPolicy, R as mergeSessionEntry, S as capArrayByJsonBytes, T as parseInlineDirectives$1, U as resolveExplicitAgentSessionKey, V as canonicalizeMainSessionAlias, W as resolveMainSessionKey, _ as mergeDeliveryContext, a as resolveAndPersistSessionFile, b as normalizeAccountId$3, c as recordSessionMetaFromInbound, d as updateSessionStore, f as updateSessionStoreEntry, g as deliveryContextKey, h as deliveryContextFromSession, j as resolveSessionKey, k as normalizeInputProvenance, m as resolveCacheTtlMs$1, n as parseSessionThreadInfo, o as loadSessionStore, p as isCacheEnabled, q as acquireSessionWriteLock, r as appendAssistantMessageToSessionTranscript, s as readSessionUpdatedAt, t as extractDeliveryInfo, u as updateLastRoute, v as normalizeDeliveryContext, w as extractToolCallNames, x as archiveSessionTranscripts, y as normalizeSessionDeliveryFields, z as resolveFreshSessionTotalTokens } from "./sessions-BXwugIi3.js";
|
|
43
43
|
import { n as resolveConversationLabel } from "./conversation-label-BxJexdbX.js";
|
|
44
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
44
|
+
import { t as resolveIMessageAccount } from "./accounts-B1Ev8y2Q.js";
|
|
45
45
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-BmEQm4ho.js";
|
|
46
46
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-BuUCuvpI.js";
|
|
47
|
-
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-
|
|
47
|
+
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-BOZsvFJ9.js";
|
|
48
48
|
import { a as normalizeReasoningLevel, c as normalizeVerboseLevel, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-kXAj2UX9.js";
|
|
49
|
-
import { C as extractTextFromChatContent, S as isInsideCode, T as ensureOpenClawModelsJson, _ as stripThinkingTagsFromText, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantThinking, d as formatReasoningMessage, f as inferToolMetaFromArgs, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractThinkingFromTaggedStream, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as isAssistantMessage, r as coerceImageAssistantText, s as extractAssistantText$1, u as extractThinkingFromTaggedText, v as formatToolSummary, w as minimaxUnderstandImage, x as findCodeRegions, y as resolveToolDisplay } from "./image-
|
|
50
|
-
import { _ as resolveAttachmentKind, a as resolveAutoImageModel, b as modelSupportsVision, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, h as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, v as findModelInCatalog, y as loadModelCatalog } from "./audio-transcription-runner-
|
|
51
|
-
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-
|
|
49
|
+
import { C as extractTextFromChatContent, S as isInsideCode, T as ensureOpenClawModelsJson, _ as stripThinkingTagsFromText, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantThinking, d as formatReasoningMessage, f as inferToolMetaFromArgs, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractThinkingFromTaggedStream, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as isAssistantMessage, r as coerceImageAssistantText, s as extractAssistantText$1, u as extractThinkingFromTaggedText, v as formatToolSummary, w as minimaxUnderstandImage, x as findCodeRegions, y as resolveToolDisplay } from "./image-DihIv8Eo.js";
|
|
50
|
+
import { _ as resolveAttachmentKind, a as resolveAutoImageModel, b as modelSupportsVision, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, h as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, v as findModelInCatalog, y as loadModelCatalog } from "./audio-transcription-runner-DwWOJBSn.js";
|
|
51
|
+
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-BfCWv6tx.js";
|
|
52
52
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-BVa_Fx_T.js";
|
|
53
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
54
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
55
|
-
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-
|
|
56
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
57
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-
|
|
58
|
-
import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-
|
|
59
|
-
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-
|
|
60
|
-
import { c as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-
|
|
53
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-DfeA6yKv.js";
|
|
54
|
+
import { t as makeProxyFetch } from "./proxy-fetch-fN-NLyCx.js";
|
|
55
|
+
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-CJxSBMow.js";
|
|
56
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-ChcK0mrw.js";
|
|
57
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-D805RkIy.js";
|
|
58
|
+
import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-BPINy_1M.js";
|
|
59
|
+
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-sN7UY9o6.js";
|
|
60
|
+
import { c as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-DfX4Z2l_.js";
|
|
61
61
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-Jol-RpNX.js";
|
|
62
62
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-C7rJ-pyI.js";
|
|
63
|
-
import { n as retryAsync } from "./retry-
|
|
63
|
+
import { n as retryAsync } from "./retry-CqXTCn07.js";
|
|
64
64
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-BEwD1hbR.js";
|
|
65
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-
|
|
65
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-BFQ7OM6W.js";
|
|
66
66
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-DOtW9oaI.js";
|
|
67
67
|
import { n as normalizePollInput } from "./polls-BmymsJEe.js";
|
|
68
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
69
|
-
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-
|
|
70
|
-
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-
|
|
71
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
72
|
-
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-
|
|
73
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
74
|
-
import { t as recordInboundSessionMetaSafe } from "./session-meta-
|
|
75
|
-
import { n as resolveMemorySearchConfig } from "./manager-
|
|
76
|
-
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-
|
|
68
|
+
import { t as convertMarkdownTables } from "./tables-DAQMuyH8.js";
|
|
69
|
+
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-BSw60pEI.js";
|
|
70
|
+
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-DrLGfHcu.js";
|
|
71
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-CeAUOHqF.js";
|
|
72
|
+
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-CTS8r9of.js";
|
|
73
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-CRQL_9_u.js";
|
|
74
|
+
import { t as recordInboundSessionMetaSafe } from "./session-meta-B56tnXvx.js";
|
|
75
|
+
import { n as resolveMemorySearchConfig } from "./manager-BwSA683a.js";
|
|
76
|
+
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-Bxi0ZwK0.js";
|
|
77
77
|
import { createRequire } from "node:module";
|
|
78
78
|
import * as path$1 from "node:path";
|
|
79
79
|
import path, { isAbsolute } from "node:path";
|
|
80
80
|
import syncFs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
81
81
|
import os, { homedir } from "node:os";
|
|
82
|
-
import
|
|
82
|
+
import JSON5 from "json5";
|
|
83
83
|
import { inspect, promisify } from "node:util";
|
|
84
84
|
import * as fs$1 from "node:fs/promises";
|
|
85
85
|
import fs from "node:fs/promises";
|
|
@@ -9679,7 +9679,7 @@ async function routeReply(params) {
|
|
|
9679
9679
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
9680
9680
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
9681
9681
|
try {
|
|
9682
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
9682
|
+
const { deliverOutboundPayloads } = await import("./deliver-Dyh8ZsLI.js").then((n) => n.n);
|
|
9683
9683
|
const outboundSession = buildOutboundSessionContext({
|
|
9684
9684
|
cfg,
|
|
9685
9685
|
agentId: resolvedAgentId,
|
|
@@ -10324,7 +10324,7 @@ function normalizeSessionKey(value) {
|
|
|
10324
10324
|
function readSessionStore(storePath) {
|
|
10325
10325
|
try {
|
|
10326
10326
|
const raw = syncFs.readFileSync(storePath, "utf-8");
|
|
10327
|
-
const parsed =
|
|
10327
|
+
const parsed = JSON5.parse(raw);
|
|
10328
10328
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
10329
10329
|
} catch {}
|
|
10330
10330
|
return {};
|
|
@@ -14237,7 +14237,7 @@ async function sendTranscriptEcho(params) {
|
|
|
14237
14237
|
}
|
|
14238
14238
|
const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
|
|
14239
14239
|
try {
|
|
14240
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
14240
|
+
const { deliverOutboundPayloads } = await import("./deliver-Dyh8ZsLI.js").then((n) => n.n);
|
|
14241
14241
|
await deliverOutboundPayloads({
|
|
14242
14242
|
cfg,
|
|
14243
14243
|
channel: normalizedChannel,
|
|
@@ -21935,7 +21935,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
21935
21935
|
await ensureOpenClawModelsJson(cfg);
|
|
21936
21936
|
} catch {}
|
|
21937
21937
|
try {
|
|
21938
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
21938
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-DpYZ-y1X.js").then((n) => n.r);
|
|
21939
21939
|
const agentDir = resolveOpenClawAgentDir();
|
|
21940
21940
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
21941
21941
|
applyDiscoveredContextWindows({
|
|
@@ -30533,7 +30533,7 @@ async function createModelSelectionState(params) {
|
|
|
30533
30533
|
}
|
|
30534
30534
|
}
|
|
30535
30535
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
30536
|
-
const { ensureAuthProfileStore } = await import("./model-selection-
|
|
30536
|
+
const { ensureAuthProfileStore } = await import("./model-selection-D5OFBCTr.js").then((n) => n.M);
|
|
30537
30537
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
30538
30538
|
const providerKey = normalizeProviderId(provider);
|
|
30539
30539
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -49691,7 +49691,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
49691
49691
|
return;
|
|
49692
49692
|
}
|
|
49693
49693
|
try {
|
|
49694
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
49694
|
+
const { deliverOutboundPayloads } = await import("./deliver-Dyh8ZsLI.js").then((n) => n.n);
|
|
49695
49695
|
const outboundSession = buildOutboundSessionContext({
|
|
49696
49696
|
cfg: params.cfg,
|
|
49697
49697
|
sessionKey: params.sessionKey
|
|
@@ -54633,7 +54633,7 @@ async function describeStickerImage(params) {
|
|
|
54633
54633
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
54634
54634
|
try {
|
|
54635
54635
|
const buffer = await fs.readFile(imagePath);
|
|
54636
|
-
const { describeImageWithModel } = await import("./image-
|
|
54636
|
+
const { describeImageWithModel } = await import("./image-DihIv8Eo.js").then((n) => n.n);
|
|
54637
54637
|
return (await describeImageWithModel({
|
|
54638
54638
|
buffer,
|
|
54639
54639
|
fileName: "sticker.webp",
|
|
@@ -56387,7 +56387,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
56387
56387
|
const needsPreflightTranscription = !params.isDirectMessage && params.shouldRequireMention && hasAudioAttachment && !hasTypedText && params.mentionRegexes.length > 0;
|
|
56388
56388
|
let transcript;
|
|
56389
56389
|
if (needsPreflightTranscription) try {
|
|
56390
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
56390
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-CHD1xVrt.js");
|
|
56391
56391
|
const audioUrls = audioAttachments.map((att) => att.url).filter((url) => typeof url === "string" && url.length > 0);
|
|
56392
56392
|
if (audioUrls.length > 0) transcript = await transcribeFirstAudio({
|
|
56393
56393
|
ctx: {
|
|
@@ -60929,27 +60929,27 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
60929
60929
|
function createDefaultDeps() {
|
|
60930
60930
|
return {
|
|
60931
60931
|
sendMessageWhatsApp: async (...args) => {
|
|
60932
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
60932
|
+
const { sendMessageWhatsApp } = await import("./web-CvYmNThc.js");
|
|
60933
60933
|
return await sendMessageWhatsApp(...args);
|
|
60934
60934
|
},
|
|
60935
60935
|
sendMessageTelegram: async (...args) => {
|
|
60936
|
-
const { sendMessageTelegram } = await import("./send-
|
|
60936
|
+
const { sendMessageTelegram } = await import("./send-CIQavYDH.js").then((n) => n.l);
|
|
60937
60937
|
return await sendMessageTelegram(...args);
|
|
60938
60938
|
},
|
|
60939
60939
|
sendMessageDiscord: async (...args) => {
|
|
60940
|
-
const { sendMessageDiscord } = await import("./send-
|
|
60940
|
+
const { sendMessageDiscord } = await import("./send-BpJIVMP0.js").then((n) => n.t);
|
|
60941
60941
|
return await sendMessageDiscord(...args);
|
|
60942
60942
|
},
|
|
60943
60943
|
sendMessageSlack: async (...args) => {
|
|
60944
|
-
const { sendMessageSlack } = await import("./send-
|
|
60944
|
+
const { sendMessageSlack } = await import("./send-paWifUry.js").then((n) => n.n);
|
|
60945
60945
|
return await sendMessageSlack(...args);
|
|
60946
60946
|
},
|
|
60947
60947
|
sendMessageSignal: async (...args) => {
|
|
60948
|
-
const { sendMessageSignal } = await import("./send-
|
|
60948
|
+
const { sendMessageSignal } = await import("./send-BSw60pEI.js").then((n) => n.i);
|
|
60949
60949
|
return await sendMessageSignal(...args);
|
|
60950
60950
|
},
|
|
60951
60951
|
sendMessageIMessage: async (...args) => {
|
|
60952
|
-
const { sendMessageIMessage } = await import("./send-
|
|
60952
|
+
const { sendMessageIMessage } = await import("./send-DrLGfHcu.js").then((n) => n.n);
|
|
60953
60953
|
return await sendMessageIMessage(...args);
|
|
60954
60954
|
}
|
|
60955
60955
|
};
|
|
@@ -73036,7 +73036,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
73036
73036
|
}
|
|
73037
73037
|
let commandsRegistry;
|
|
73038
73038
|
async function getCommandsRegistry() {
|
|
73039
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
73039
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-sN7UY9o6.js").then((n) => n.n);
|
|
73040
73040
|
return commandsRegistry;
|
|
73041
73041
|
}
|
|
73042
73042
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -73366,14 +73366,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
73366
73366
|
const channelName = channelInfo?.name;
|
|
73367
73367
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
73368
73368
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
73369
|
-
import("./resolve-route-
|
|
73369
|
+
import("./resolve-route-CeAUOHqF.js").then((n) => n.r),
|
|
73370
73370
|
import("./inbound-context-Jol-RpNX.js").then((n) => n.n),
|
|
73371
73371
|
Promise.resolve().then(() => provider_dispatcher_exports)
|
|
73372
73372
|
]);
|
|
73373
73373
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
|
|
73374
73374
|
import("./conversation-label-BxJexdbX.js").then((n) => n.t),
|
|
73375
|
-
import("./reply-prefix-
|
|
73376
|
-
import("./session-meta-
|
|
73375
|
+
import("./reply-prefix-BDSRMl8C.js").then((n) => n.n),
|
|
73376
|
+
import("./session-meta-B56tnXvx.js").then((n) => n.n)
|
|
73377
73377
|
]);
|
|
73378
73378
|
const route = resolveAgentRoute({
|
|
73379
73379
|
cfg,
|
|
@@ -73438,9 +73438,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
73438
73438
|
});
|
|
73439
73439
|
const deliverSlashPayloads = async (replies) => {
|
|
73440
73440
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
73441
|
-
import("./replies-
|
|
73442
|
-
import("./chunk-
|
|
73443
|
-
import("./markdown-tables-
|
|
73441
|
+
import("./replies-CRQL_9_u.js").then((n) => n.r),
|
|
73442
|
+
import("./chunk-CJxSBMow.js").then((n) => n.s),
|
|
73443
|
+
import("./markdown-tables-ChcK0mrw.js").then((n) => n.t)
|
|
73444
73444
|
]);
|
|
73445
73445
|
await deliverSlackSlashReplies({
|
|
73446
73446
|
replies,
|
|
@@ -73493,7 +73493,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
73493
73493
|
let nativeCommands = [];
|
|
73494
73494
|
if (nativeEnabled) {
|
|
73495
73495
|
reg = await getCommandsRegistry();
|
|
73496
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
73496
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-DfX4Z2l_.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
|
|
73497
73497
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
73498
73498
|
skillCommands,
|
|
73499
73499
|
provider: "slack"
|
|
@@ -74079,7 +74079,7 @@ async function auditTelegramGroupMembership(params) {
|
|
|
74079
74079
|
groups: [],
|
|
74080
74080
|
elapsedMs: Date.now() - started
|
|
74081
74081
|
};
|
|
74082
|
-
const fetcher = params.proxyUrl ? (await import("./proxy-
|
|
74082
|
+
const fetcher = params.proxyUrl ? (await import("./proxy-DuIUyAbU.js").then((n) => n.t)).makeProxyFetch(params.proxyUrl) : fetch;
|
|
74083
74083
|
const { fetchWithTimeout } = await import("./fetch-timeout-BVa_Fx_T.js").then((n) => n.r);
|
|
74084
74084
|
const base = `${TELEGRAM_API_BASE$1}/bot${token}`;
|
|
74085
74085
|
const groups = [];
|
|
@@ -76402,7 +76402,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
76402
76402
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
76403
76403
|
let preflightTranscript;
|
|
76404
76404
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
76405
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
76405
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-CHD1xVrt.js");
|
|
76406
76406
|
preflightTranscript = await transcribeFirstAudio({
|
|
76407
76407
|
ctx: {
|
|
76408
76408
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -79100,7 +79100,7 @@ function createWhatsAppLoginTool() {
|
|
|
79100
79100
|
force: Type.Optional(Type.Boolean())
|
|
79101
79101
|
}),
|
|
79102
79102
|
execute: async (_toolCallId, args) => {
|
|
79103
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
79103
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-Bu-zPzca.js");
|
|
79104
79104
|
if ((args?.action ?? "start") === "wait") {
|
|
79105
79105
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
79106
79106
|
return {
|
|
@@ -79175,23 +79175,23 @@ let webLoginQrPromise = null;
|
|
|
79175
79175
|
let webChannelPromise = null;
|
|
79176
79176
|
let whatsappActionsPromise = null;
|
|
79177
79177
|
function loadWebOutbound() {
|
|
79178
|
-
webOutboundPromise ??= import("./outbound-
|
|
79178
|
+
webOutboundPromise ??= import("./outbound-B9pGRwxd.js").then((n) => n.t);
|
|
79179
79179
|
return webOutboundPromise;
|
|
79180
79180
|
}
|
|
79181
79181
|
function loadWebLogin() {
|
|
79182
|
-
webLoginPromise ??= import("./login-
|
|
79182
|
+
webLoginPromise ??= import("./login-CrT31QVq.js").then((n) => n.n);
|
|
79183
79183
|
return webLoginPromise;
|
|
79184
79184
|
}
|
|
79185
79185
|
function loadWebLoginQr() {
|
|
79186
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
79186
|
+
webLoginQrPromise ??= import("./login-qr-Bu-zPzca.js");
|
|
79187
79187
|
return webLoginQrPromise;
|
|
79188
79188
|
}
|
|
79189
79189
|
function loadWebChannel() {
|
|
79190
|
-
webChannelPromise ??= import("./web-
|
|
79190
|
+
webChannelPromise ??= import("./web-CvYmNThc.js");
|
|
79191
79191
|
return webChannelPromise;
|
|
79192
79192
|
}
|
|
79193
79193
|
function loadWhatsAppActions() {
|
|
79194
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
79194
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-D_-xXIS-.js");
|
|
79195
79195
|
return whatsappActionsPromise;
|
|
79196
79196
|
}
|
|
79197
79197
|
function createRuntimeWhatsApp() {
|
|
@@ -79641,7 +79641,7 @@ async function getMemorySearchManager(params) {
|
|
|
79641
79641
|
if (cached) return { manager: cached };
|
|
79642
79642
|
}
|
|
79643
79643
|
try {
|
|
79644
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
79644
|
+
const { QmdMemoryManager } = await import("./qmd-manager-DCiOmvlF.js");
|
|
79645
79645
|
const primary = await QmdMemoryManager.create({
|
|
79646
79646
|
cfg: params.cfg,
|
|
79647
79647
|
agentId: params.agentId,
|
|
@@ -79653,7 +79653,7 @@ async function getMemorySearchManager(params) {
|
|
|
79653
79653
|
const wrapper = new FallbackMemoryManager({
|
|
79654
79654
|
primary,
|
|
79655
79655
|
fallbackFactory: async () => {
|
|
79656
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
79656
|
+
const { MemoryIndexManager } = await import("./manager-BwSA683a.js").then((n) => n.t);
|
|
79657
79657
|
return await MemoryIndexManager.get(params);
|
|
79658
79658
|
}
|
|
79659
79659
|
}, () => {
|
|
@@ -79668,7 +79668,7 @@ async function getMemorySearchManager(params) {
|
|
|
79668
79668
|
}
|
|
79669
79669
|
}
|
|
79670
79670
|
try {
|
|
79671
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
79671
|
+
const { MemoryIndexManager } = await import("./manager-BwSA683a.js").then((n) => n.t);
|
|
79672
79672
|
return { manager: await MemoryIndexManager.get(params) };
|
|
79673
79673
|
} catch (err) {
|
|
79674
79674
|
return {
|
|
@@ -81892,7 +81892,7 @@ async function recordLoopOutcome(args) {
|
|
|
81892
81892
|
if (!args.ctx?.sessionKey) return;
|
|
81893
81893
|
try {
|
|
81894
81894
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-iIgQ4O9h.js").then((n) => n.n);
|
|
81895
|
-
const { recordToolCallOutcome } = await import("./tool-loop-detection-
|
|
81895
|
+
const { recordToolCallOutcome } = await import("./tool-loop-detection-Cmi-kldp.js");
|
|
81896
81896
|
recordToolCallOutcome(getDiagnosticSessionState({
|
|
81897
81897
|
sessionKey: args.ctx.sessionKey,
|
|
81898
81898
|
sessionId: args.ctx?.agentId
|
|
@@ -81913,8 +81913,8 @@ async function runBeforeToolCallHook(args) {
|
|
|
81913
81913
|
const params = args.params;
|
|
81914
81914
|
if (args.ctx?.sessionKey) {
|
|
81915
81915
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-iIgQ4O9h.js").then((n) => n.n);
|
|
81916
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
81917
|
-
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-
|
|
81916
|
+
const { logToolLoopAction } = await import("./diagnostic-Co8pKHgV.js").then((n) => n.n);
|
|
81917
|
+
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-Cmi-kldp.js");
|
|
81918
81918
|
const sessionState = getDiagnosticSessionState({
|
|
81919
81919
|
sessionKey: args.ctx.sessionKey,
|
|
81920
81920
|
sessionId: args.ctx?.agentId
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Dn as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { Dn as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-D_Si2Ict.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/pi-auth-credentials.ts
|
|
@@ -70,10 +70,10 @@ function isRecord(value) {
|
|
|
70
70
|
}
|
|
71
71
|
function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
72
72
|
if (process.env.OPENCLAW_AUTH_STORE_READONLY === "1") return;
|
|
73
|
-
if (!
|
|
73
|
+
if (!syncFs.existsSync(pathname)) return;
|
|
74
74
|
let parsed;
|
|
75
75
|
try {
|
|
76
|
-
parsed = JSON.parse(
|
|
76
|
+
parsed = JSON.parse(syncFs.readFileSync(pathname, "utf8"));
|
|
77
77
|
} catch {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -87,11 +87,11 @@ function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
|
87
87
|
}
|
|
88
88
|
if (!changed) return;
|
|
89
89
|
if (Object.keys(parsed).length === 0) {
|
|
90
|
-
|
|
90
|
+
syncFs.rmSync(pathname, { force: true });
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
syncFs.writeFileSync(pathname, `${JSON.stringify(parsed, null, 2)}\n`, "utf8");
|
|
94
|
+
syncFs.chmodSync(pathname, 384);
|
|
95
95
|
}
|
|
96
96
|
function createAuthStorage(AuthStorageLike, path, creds) {
|
|
97
97
|
const withInMemory = AuthStorageLike;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { On as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { On as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-D5OFBCTr.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import syncFs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CVmydYhZ.js";
|
|
2
2
|
import { h as normalizeOptionalAccountId, m as normalizeAccountId, p as DEFAULT_ACCOUNT_ID } from "./session-key-a6av96Fj.js";
|
|
3
|
-
import { d as normalizeE164 } from "./utils-
|
|
4
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
5
|
-
import { a as normalizeAnyChannelId, d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, u as getActivePluginRegistryVersion } from "./registry-
|
|
6
|
-
import { h as createAccountListHelpers } from "./accounts-
|
|
3
|
+
import { d as normalizeE164 } from "./utils-CM9uSTVd.js";
|
|
4
|
+
import { t as isTruthyEnvValue } from "./env-zky96nK6.js";
|
|
5
|
+
import { a as normalizeAnyChannelId, d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, u as getActivePluginRegistryVersion } from "./registry-BOq-EU8K.js";
|
|
6
|
+
import { h as createAccountListHelpers } from "./accounts-DYfFud2l.js";
|
|
7
7
|
import { t as resolveAccountEntry } from "./account-lookup-C0ndrpt-.js";
|
|
8
8
|
import { t as normalizeChatType } from "./chat-type-CYPyHAj-.js";
|
|
9
|
-
import { i as resolveDefaultAgentBoundAccountId, r as listBoundAccountIds } from "./bindings-
|
|
9
|
+
import { i as resolveDefaultAgentBoundAccountId, r as listBoundAccountIds } from "./bindings-Cn3Pwuys.js";
|
|
10
10
|
import syncFs from "node:fs";
|
|
11
11
|
import util from "node:util";
|
|
12
12
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-BRjuJbbM.js";
|
|
2
2
|
import { h as normalizeOptionalAccountId, m as normalizeAccountId, p as DEFAULT_ACCOUNT_ID } from "./session-key-a6av96Fj.js";
|
|
3
|
-
import { d as normalizeE164 } from "./utils-
|
|
4
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
5
|
-
import { a as normalizeAnyChannelId, d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, u as getActivePluginRegistryVersion } from "./registry-
|
|
6
|
-
import { h as createAccountListHelpers } from "./accounts-
|
|
3
|
+
import { d as normalizeE164 } from "./utils-BFZnl-5N.js";
|
|
4
|
+
import { t as isTruthyEnvValue } from "./env-DNMZEG57.js";
|
|
5
|
+
import { a as normalizeAnyChannelId, d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, u as getActivePluginRegistryVersion } from "./registry-CJCkqTms.js";
|
|
6
|
+
import { h as createAccountListHelpers } from "./accounts-ubG6irXZ.js";
|
|
7
7
|
import { t as resolveAccountEntry } from "./account-lookup-JrULBwdR.js";
|
|
8
8
|
import { t as normalizeChatType } from "./chat-type-DKb2TlGZ.js";
|
|
9
|
-
import { i as resolveDefaultAgentBoundAccountId, r as listBoundAccountIds } from "./bindings-
|
|
10
|
-
import
|
|
9
|
+
import { i as resolveDefaultAgentBoundAccountId, r as listBoundAccountIds } from "./bindings-CsIiIjqN.js";
|
|
10
|
+
import syncFs from "node:fs";
|
|
11
11
|
import util from "node:util";
|
|
12
12
|
|
|
13
13
|
//#region src/channels/plugins/account-action-gate.ts
|
|
@@ -218,7 +218,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
218
218
|
const accountCfg = resolveAccountCfg(accountId !== DEFAULT_ACCOUNT_ID ? accountId : DEFAULT_ACCOUNT_ID);
|
|
219
219
|
const accountTokenFile = accountCfg?.tokenFile?.trim();
|
|
220
220
|
if (accountTokenFile) {
|
|
221
|
-
if (!
|
|
221
|
+
if (!syncFs.existsSync(accountTokenFile)) {
|
|
222
222
|
opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile not found: ${accountTokenFile}`);
|
|
223
223
|
return {
|
|
224
224
|
token: "",
|
|
@@ -226,7 +226,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
228
|
try {
|
|
229
|
-
const token =
|
|
229
|
+
const token = syncFs.readFileSync(accountTokenFile, "utf-8").trim();
|
|
230
230
|
if (token) return {
|
|
231
231
|
token,
|
|
232
232
|
source: "tokenFile"
|
|
@@ -251,7 +251,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
251
251
|
const allowEnv = accountId === DEFAULT_ACCOUNT_ID;
|
|
252
252
|
const tokenFile = telegramCfg?.tokenFile?.trim();
|
|
253
253
|
if (tokenFile && allowEnv) {
|
|
254
|
-
if (!
|
|
254
|
+
if (!syncFs.existsSync(tokenFile)) {
|
|
255
255
|
opts.logMissingFile?.(`channels.telegram.tokenFile not found: ${tokenFile}`);
|
|
256
256
|
return {
|
|
257
257
|
token: "",
|
|
@@ -259,7 +259,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
261
|
try {
|
|
262
|
-
const token =
|
|
262
|
+
const token = syncFs.readFileSync(tokenFile, "utf-8").trim();
|
|
263
263
|
if (token) return {
|
|
264
264
|
token,
|
|
265
265
|
source: "tokenFile"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
2
|
+
import { t as makeProxyFetch } from "./proxy-fetch-xlbVQYN_.js";
|
|
3
3
|
|
|
4
4
|
//#region src/telegram/proxy.ts
|
|
5
5
|
var proxy_exports = /* @__PURE__ */ __exportAll({ makeProxyFetch: () => makeProxyFetch });
|