@bitseek/claw 1.3.9 → 1.3.10-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agents-DyoF_f3J.js → agents-CfwaUUzc.js} +4 -4
- package/dist/{agents.config-DlsoquZH.js → agents.config-DHX7f-II.js} +1 -1
- package/dist/{agents.config-D-pjQl0a.js → agents.config-YFwIb3TI.js} +1 -1
- package/dist/{auth-choice-BtNLcXFy.js → auth-choice-C2N-LUBR.js} +1 -1
- package/dist/{auth-choice-BnlfU4y1.js → auth-choice-CYJe-sOy.js} +1 -1
- package/dist/{banner-Dl-V7Ptt.js → banner-C4GZFnfu.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-DbFmOvel.js → channel-options-Df9B8tD2.js} +1 -1
- package/dist/{channel-options-BYE1VHBo.js → channel-options-MWKuSMlJ.js} +1 -1
- package/dist/{channel-web-DI8CzqrG.js → channel-web-CZj36UOq.js} +1 -1
- package/dist/{channel-web-COoUoCJ1.js → channel-web-CmZ5LJFz.js} +1 -1
- package/dist/{channels-cli-a630SQK6.js → channels-cli-CrpfRxVo.js} +6 -6
- package/dist/{channels-cli-CnwFvDuq.js → channels-cli-DV6Cp2_m.js} +6 -6
- package/dist/{cli-CSvBbD4L.js → cli-Fm20on0Y.js} +1 -1
- package/dist/{cli-Dyjp2Eb9.js → cli-IXAHPzCM.js} +1 -1
- package/dist/{command-registry-CiiKLf7K.js → command-registry-C3Gr6QIZ.js} +9 -9
- package/dist/{completion-cli-A-7_BOG8.js → completion-cli-D96BgcqD.js} +2 -2
- package/dist/{completion-cli-Cf-BVW55.js → completion-cli-DcmfM_XB.js} +1 -1
- package/dist/{config-cli-DKp1_Q2a.js → config-cli-CR5YWpNX.js} +1 -1
- package/dist/{config-cli-B8b1tCQT.js → config-cli-DXlVuWUo.js} +1 -1
- package/dist/{configure-C0LdxD84.js → configure-BXys8MUC.js} +3 -3
- package/dist/{configure-BFAj-ANy.js → configure-CwQnyhnv.js} +3 -3
- package/dist/{doctor-completion-CqdGtWOU.js → doctor-completion-DiVJuSS4.js} +1 -1
- package/dist/{doctor-completion-DDa8Rj_C.js → doctor-completion-nOnIa5ym.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/extensionAPI.js +1 -1
- package/dist/{gateway-cli-D7OOfzP7.js → gateway-cli-C1IqQHY2.js} +8 -8
- package/dist/{gateway-cli-CKOUY2y1.js → gateway-cli-jZ-EpLEa.js} +8 -8
- package/dist/{health-Dyd4RpCM.js → health-DOGcHcgN.js} +1 -1
- package/dist/{health-D7FO50c6.js → health-DeofgoIV.js} +1 -1
- package/dist/{hooks-cli-C0ESoNa0.js → hooks-cli-BfA8a5jt.js} +2 -2
- package/dist/{hooks-cli-DufRHJ0v.js → hooks-cli-Dh_3-NNe.js} +2 -2
- package/dist/index.js +6 -6
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{models-cli-B3Xw4zlc.js → models-cli-DsaQe3L8.js} +3 -3
- package/dist/{models-cli-BfSKbP6r.js → models-cli-Of0Dt4T3.js} +2 -2
- package/dist/{models-Cdge-yuv.js → models-x91yp20X.js} +2 -2
- package/dist/{npm-resolution-CEMLdRCK.js → npm-resolution-Dh42ChiK.js} +1 -1
- package/dist/{npm-resolution-CIbDK6N6.js → npm-resolution-tKQdyyrr.js} +1 -1
- package/dist/{onboard-channels-BfnzcJrR.js → onboard-channels-BVZJDmqk.js} +1 -1
- package/dist/{onboard-channels-Bw9YbUzP.js → onboard-channels-zkzv3Yvo.js} +1 -1
- package/dist/{onboard-D7KozrLf.js → onboard-pwWKjijO.js} +2 -2
- package/dist/{onboard-CMEmzKLW.js → onboard-vOB2yRup.js} +2 -2
- package/dist/{onboarding-BLcdYzEJ.js → onboarding-Dqr7aZ7Y.js} +3 -3
- package/dist/{onboarding-C1mU33hA.js → onboarding-W2AiGqjG.js} +3 -3
- package/dist/{onboarding.finalize-BP0DKBAn.js → onboarding.finalize-DIWji8d4.js} +6 -6
- package/dist/{onboarding.finalize-2exVy-pf.js → onboarding.finalize-QfwQJFMM.js} +5 -5
- package/dist/{pi-embedded-DzJti3AT.js → pi-embedded-DO73FSrv.js} +39 -6
- package/dist/{pi-embedded-Dr2npoTx.js → pi-embedded-D_5_WIVV.js} +39 -6
- package/dist/{plugin-registry-C6E8urZI.js → plugin-registry-BTbNdUJI.js} +1 -1
- package/dist/{plugin-registry-htTOE5ts.js → plugin-registry-fStNzAh6.js} +1 -1
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.messages.d.ts +8 -0
- package/dist/plugin-sdk/{channel-web-g5RnVnVc.js → channel-web-kSEIZEuw.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-Bn7G66m2.js → reply-B_uFeTht.js} +39 -6
- package/dist/plugin-sdk/{web-BapRq5np.js → web-CY6oM5WK.js} +2 -2
- package/dist/{plugins-cli-NTdICagm.js → plugins-cli-CJH6AKMz.js} +2 -2
- package/dist/{plugins-cli-Bh8rE7t6.js → plugins-cli-Co-nvd9J.js} +2 -2
- package/dist/{program-BzrloeUd.js → program-CNpQbt0K.js} +7 -7
- package/dist/{program-context-Dj2_qoie.js → program-context-CGNIVn8U.js} +17 -17
- package/dist/{prompt-select-styled-CRUyZ8Zn.js → prompt-select-styled-CIRPu5Ka.js} +4 -4
- package/dist/{prompt-select-styled-CRpJTxEn.js → prompt-select-styled-CnF7G9nh.js} +4 -4
- package/dist/{provider-auth-helpers-CTHHzB9d.js → provider-auth-helpers-CNUvu0a0.js} +1 -1
- package/dist/{provider-auth-helpers-CGlrXlEv.js → provider-auth-helpers-DjIygYv_.js} +1 -1
- package/dist/{push-apns-D6P4wyMo.js → push-apns-BgQum9Gy.js} +1 -1
- package/dist/{push-apns-CfIOYv6I.js → push-apns-D80k7T9j.js} +1 -1
- package/dist/{register.agent-tUHan7i6.js → register.agent-Bhyoci3o.js} +6 -6
- package/dist/{register.agent-CbbtPCTG.js → register.agent-kfyfQI8T.js} +7 -7
- package/dist/{register.configure-H6uG1A19.js → register.configure-B5HCAfdz.js} +7 -7
- package/dist/{register.configure-CurF_EBC.js → register.configure-B7NHNcfM.js} +7 -7
- package/dist/{register.maintenance-C4vUOdVb.js → register.maintenance-BD1oDxC-.js} +8 -8
- package/dist/{register.maintenance-B4zbpuqh.js → register.maintenance-C1PaIvLI.js} +7 -7
- package/dist/{register.message-BNLwGPS-.js → register.message-CveEoRPg.js} +2 -2
- package/dist/{register.message-BmweIh8D.js → register.message-D-1QnCw_.js} +2 -2
- package/dist/{register.onboard-DElUgwoa.js → register.onboard-DTH8w4yg.js} +2 -2
- package/dist/{register.onboard-B_CVsLWL.js → register.onboard-DxdKBYPa.js} +2 -2
- package/dist/{register.setup-DWIO5nY-.js → register.setup-B0xOuiw1.js} +2 -2
- package/dist/{register.setup-BF5BjQQE.js → register.setup-B_QzzqYV.js} +2 -2
- package/dist/{register.status-health-sessions-CGnHeuq9.js → register.status-health-sessions-DdoDk6tI.js} +3 -3
- package/dist/{register.status-health-sessions-DVQycJyO.js → register.status-health-sessions-QfEbhT67.js} +3 -3
- package/dist/{register.subclis-CXCp9MIN.js → register.subclis-C6ixj03Z.js} +9 -9
- package/dist/{reply-Cmqwu6vZ.js → reply-DkwQo3LK.js} +39 -6
- package/dist/{run-main-LIh93d7b.js → run-main-CiyxqGgu.js} +14 -14
- package/dist/{server-node-events-DhzgyreJ.js → server-node-events-CXwSn_of.js} +2 -2
- package/dist/{server-node-events-SLHkUEcI.js → server-node-events-DC1BMCVn.js} +2 -2
- package/dist/{status-06d3zhTb.js → status-BB7xEcRf.js} +2 -2
- package/dist/{status-B8I9eCIt.js → status-CBRTQ939.js} +2 -2
- package/dist/{subagent-registry-CU894Q5r.js → subagent-registry-BcuTxEMl.js} +39 -6
- package/dist/{update-cli-Bq0E6UWE.js → update-cli-B4lljwO3.js} +8 -8
- package/dist/{update-cli-CL5aaHct.js → update-cli-BBJFl04y.js} +7 -7
- package/dist/{update-runner-jAwo79K3.js → update-runner-D60XSU4r.js} +1 -1
- package/dist/{update-runner-CDmAZF8g.js → update-runner-DyCzzM9h.js} +1 -1
- package/dist/{web-_WxgxGh7.js → web-BxoxUANA.js} +1 -1
- package/dist/{web-CadeCgho.js → web-DLuhYIW3.js} +1 -1
- package/dist/{web-CGIjjBC-.js → web-DXuCeyJX.js} +2 -2
- package/dist/{web-B8lEM5aa.js → web-T0rbkNL4.js} +2 -2
- package/docs/install/installer.md +1 -0
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ import "./accounts-MEuVJDoB.js";
|
|
|
34
34
|
import { t as buildChannelAccountBindings } from "./bindings-BDScuSfd.js";
|
|
35
35
|
import "./send-BLv3U-2N.js";
|
|
36
36
|
import "./send-BUqXYyi5.js";
|
|
37
|
-
import { $n as normalizeSendPolicy, $t as isExternalHookSession, A as agentCommandFromIngress, Ar as waitForActiveTasks, At as formatRestartSentinelMessage, Br as onAgentEvent, Bt as normalizeOptionalSessionKey, C as readJsonBodyWithLimit, Cr as OPENAI_TTS_VOICES, D as sleepWithAbort, Dn as formatZonedTimestamp, Dr as markGatewayDraining, E as computeBackoff, Er as getTotalQueueSize, Et as runWithModelFallback, F as createDefaultDeps, Fn as isSystemEventContextChanged, Ft as normalizeHttpWebhookUrl, Gn as DEFAULT_INPUT_IMAGE_MIMES, Gt as buildDeliveryFromLegacyPayload, Ht as normalizePayloadToSystemText, I as createOutboundSendDeps$1, Ir as stripHeartbeatToken, It as normalizeCronJobCreate, Jn as extractFileContentFromSource, Kn as DEFAULT_INPUT_MAX_REDIRECTS, Kt as hasLegacyDeliveryHints, L as resolveAgentAvatar, Lr as clearAgentRunContext, Lt as normalizeCronJobPatch, M as resolveAgentDeliveryPlan, Mr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Mt as summarizeRestartSentinel, N as resolveAgentOutboundTarget, Or as resetAllLanes, Ot as consumeRestartSentinel, P as createOutboundSendDeps, Pn as enqueueSystemEvent, Pt as writeRestartSentinel, Qn as resolveAgentTimeoutMs, Qt as getHookType, Rn as requestHeartbeatNow, Rr as emitAgentEvent, Rt as inferLegacyName, S as handleSlackHttpRequest, Sn as loadProviderUsageSummary, Sr as OPENAI_TTS_MODELS, St as resolveOutboundChannelPlugin, Un as ACP_SESSION_IDENTITY_RENDERER_VERSION, Ut as normalizeRequiredName, Vr as registerAgentRunContext, Vt as normalizeOptionalText, W as buildHistoryContextFromEntries, Wn as DEFAULT_INPUT_IMAGE_MAX_BYTES, Wt as migrateLegacyCronPayload, Xn as normalizeMimeList, Xt as buildSafeExternalPrompt, Yn as extractImageContentFromSource, Zn as resolveInputFileLimits, Zt as detectSuspiciousPatterns, _ as loadOpenClawPlugins, _n as setPreRestartDeferralCheck, _r as resolveTtsPrefsPath, _t as resolveOutboundSessionRoute, a as runSubagentAnnounceFlow, b as resolveAgentOutboundIdentity, bn as normalizeGroupActivation, br as setTtsProvider, bt as resolveOutboundTarget, c as abortEmbeddedPiRun, cn as parseVerboseOverride, cr as resolveAgentSessionDirs, ct as resolveCronStyleNow, d as applyToolPolicyPipeline, dn as deferGatewayRestartUntilIdle, dr as getTtsProvider, dt as runCliAgent, en as applyBrowserProxyPaths, er as resolveSendPolicy, f as buildDefaultToolPolicyPipelineSteps, fn as emitGatewayRestart, fr as isTtsEnabled, ft as createOpenClawTools, gn as setGatewaySigusr1RestartPolicy, gr as resolveTtsConfig, gt as ensureOutboundSessionEntry, h as resolvePluginTools, hn as scheduleGatewaySigusr1Restart, hr as resolveTtsAutoMode, ir as stopSubagentsForRequester, jr as CommandLane, kr as setCommandLaneConcurrency, kt as formatDoctorNonInteractiveHint, l as getActiveEmbeddedRunCount, ln as buildOutboundSessionContext, lr as resolveUserTimezone, lt as getCliSessionId, m as getPluginToolMeta, mn as markGatewaySigusr1RestartHandled, mr as resolveTtsApiKey, mt as resolveAnnounceTargetFromKey, n as initSubagentRegistry, nn as resolveSessionAuthProfileOverride, nt as createReplyDispatcher, o as clearSessionQueues, on as applyModelOverrideToSessionEntry, ot as BARE_SESSION_RESET_PROMPT, pn as isGatewaySigusr1RestartExternallyAllowed, pr as isTtsProviderConfigured, pt as readLatestAssistantReply, qn as DEFAULT_INPUT_TIMEOUT_MS, qt as stripLegacyDeliveryFields, r as listDescendantRunsForRequester, rr as isAbortRequestText, rt as getTotalPendingReplies, s as runEmbeddedPiAgent, sn as applyVerboseOverride, sr as getAcpSessionManager, t as countActiveDescendantRuns, tn as persistBrowserProxyFiles, tt as dispatchInboundMessage, u as waitForEmbeddedPiRunEnd, un as consumeGatewaySigusr1RestartAuthorization, ur as clearBootstrapSnapshot, ut as setCliSessionId, v as createPluginRuntime, vn as triggerOpenClawRestart, vr as resolveTtsProviderOrder, w as requestBodyErrorToText, wr as getActiveTaskCount, wt as resetDirectoryCache, xr as textToSpeech, xt as resolveSessionDeliveryTarget, yn as unbindThreadBindingsBySessionKey, yr as setTtsEnabled, zr as getAgentRunContext, zt as normalizeOptionalAgentId } from "./subagent-registry-
|
|
37
|
+
import { $n as normalizeSendPolicy, $t as isExternalHookSession, A as agentCommandFromIngress, Ar as waitForActiveTasks, At as formatRestartSentinelMessage, Br as onAgentEvent, Bt as normalizeOptionalSessionKey, C as readJsonBodyWithLimit, Cr as OPENAI_TTS_VOICES, D as sleepWithAbort, Dn as formatZonedTimestamp, Dr as markGatewayDraining, E as computeBackoff, Er as getTotalQueueSize, Et as runWithModelFallback, F as createDefaultDeps, Fn as isSystemEventContextChanged, Ft as normalizeHttpWebhookUrl, Gn as DEFAULT_INPUT_IMAGE_MIMES, Gt as buildDeliveryFromLegacyPayload, Ht as normalizePayloadToSystemText, I as createOutboundSendDeps$1, Ir as stripHeartbeatToken, It as normalizeCronJobCreate, Jn as extractFileContentFromSource, Kn as DEFAULT_INPUT_MAX_REDIRECTS, Kt as hasLegacyDeliveryHints, L as resolveAgentAvatar, Lr as clearAgentRunContext, Lt as normalizeCronJobPatch, M as resolveAgentDeliveryPlan, Mr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Mt as summarizeRestartSentinel, N as resolveAgentOutboundTarget, Or as resetAllLanes, Ot as consumeRestartSentinel, P as createOutboundSendDeps, Pn as enqueueSystemEvent, Pt as writeRestartSentinel, Qn as resolveAgentTimeoutMs, Qt as getHookType, Rn as requestHeartbeatNow, Rr as emitAgentEvent, Rt as inferLegacyName, S as handleSlackHttpRequest, Sn as loadProviderUsageSummary, Sr as OPENAI_TTS_MODELS, St as resolveOutboundChannelPlugin, Un as ACP_SESSION_IDENTITY_RENDERER_VERSION, Ut as normalizeRequiredName, Vr as registerAgentRunContext, Vt as normalizeOptionalText, W as buildHistoryContextFromEntries, Wn as DEFAULT_INPUT_IMAGE_MAX_BYTES, Wt as migrateLegacyCronPayload, Xn as normalizeMimeList, Xt as buildSafeExternalPrompt, Yn as extractImageContentFromSource, Zn as resolveInputFileLimits, Zt as detectSuspiciousPatterns, _ as loadOpenClawPlugins, _n as setPreRestartDeferralCheck, _r as resolveTtsPrefsPath, _t as resolveOutboundSessionRoute, a as runSubagentAnnounceFlow, b as resolveAgentOutboundIdentity, bn as normalizeGroupActivation, br as setTtsProvider, bt as resolveOutboundTarget, c as abortEmbeddedPiRun, cn as parseVerboseOverride, cr as resolveAgentSessionDirs, ct as resolveCronStyleNow, d as applyToolPolicyPipeline, dn as deferGatewayRestartUntilIdle, dr as getTtsProvider, dt as runCliAgent, en as applyBrowserProxyPaths, er as resolveSendPolicy, f as buildDefaultToolPolicyPipelineSteps, fn as emitGatewayRestart, fr as isTtsEnabled, ft as createOpenClawTools, gn as setGatewaySigusr1RestartPolicy, gr as resolveTtsConfig, gt as ensureOutboundSessionEntry, h as resolvePluginTools, hn as scheduleGatewaySigusr1Restart, hr as resolveTtsAutoMode, ir as stopSubagentsForRequester, jr as CommandLane, kr as setCommandLaneConcurrency, kt as formatDoctorNonInteractiveHint, l as getActiveEmbeddedRunCount, ln as buildOutboundSessionContext, lr as resolveUserTimezone, lt as getCliSessionId, m as getPluginToolMeta, mn as markGatewaySigusr1RestartHandled, mr as resolveTtsApiKey, mt as resolveAnnounceTargetFromKey, n as initSubagentRegistry, nn as resolveSessionAuthProfileOverride, nt as createReplyDispatcher, o as clearSessionQueues, on as applyModelOverrideToSessionEntry, ot as BARE_SESSION_RESET_PROMPT, pn as isGatewaySigusr1RestartExternallyAllowed, pr as isTtsProviderConfigured, pt as readLatestAssistantReply, qn as DEFAULT_INPUT_TIMEOUT_MS, qt as stripLegacyDeliveryFields, r as listDescendantRunsForRequester, rr as isAbortRequestText, rt as getTotalPendingReplies, s as runEmbeddedPiAgent, sn as applyVerboseOverride, sr as getAcpSessionManager, t as countActiveDescendantRuns, tn as persistBrowserProxyFiles, tt as dispatchInboundMessage, u as waitForEmbeddedPiRunEnd, un as consumeGatewaySigusr1RestartAuthorization, ur as clearBootstrapSnapshot, ut as setCliSessionId, v as createPluginRuntime, vn as triggerOpenClawRestart, vr as resolveTtsProviderOrder, w as requestBodyErrorToText, wr as getActiveTaskCount, wt as resetDirectoryCache, xr as textToSpeech, xt as resolveSessionDeliveryTarget, yn as unbindThreadBindingsBySessionKey, yr as setTtsEnabled, zr as getAgentRunContext, zt as normalizeOptionalAgentId } from "./subagent-registry-BcuTxEMl.js";
|
|
38
38
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, s as resolveSessionTranscriptsDirForAgent } from "./paths-oIurw4YQ.js";
|
|
39
39
|
import { i as normalizeInputProvenance } from "./input-provenance-BDYpbBeC.js";
|
|
40
40
|
import "./chat-envelope-AUuZAcrC.js";
|
|
@@ -134,7 +134,7 @@ import { n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./dangerous-tools-lwpZk6nY.
|
|
|
134
134
|
import { n as inheritOptionFromParent } from "./command-options-DGYxc3D_.js";
|
|
135
135
|
import { t as WizardCancelledError } from "./prompts-QSI6gA3k.js";
|
|
136
136
|
import { t as resolveChannelDefaultAccountId } from "./helpers-D6BlzJnx.js";
|
|
137
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
137
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-YFwIb3TI.js";
|
|
138
138
|
import { t as isWithinDir } from "./path-safety-DDHmx5YW.js";
|
|
139
139
|
import { t as assertCanonicalPathWithinBase } from "./install-safe-path-DBJEsbCp.js";
|
|
140
140
|
import "./skill-scanner-D7WuF5Sb.js";
|
|
@@ -156,21 +156,21 @@ import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } fr
|
|
|
156
156
|
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-fKlvovu7.js";
|
|
157
157
|
import { a as probeGateway, n as collectEnabledInsecureOrDangerousFlags } from "./audit-D-QnHZqm.js";
|
|
158
158
|
import { t as discoverGatewayBeacons } from "./bonjour-discovery-Cr9ghR-L.js";
|
|
159
|
-
import { i as pickGatewaySelfPresence, r as getStatusSummary } from "./status-
|
|
160
|
-
import { a as styleHealthChannelLine, c as setHeartbeatsEnabled, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines, u as isCronSystemEvent } from "./health-
|
|
159
|
+
import { i as pickGatewaySelfPresence, r as getStatusSummary } from "./status-CBRTQ939.js";
|
|
160
|
+
import { a as styleHealthChannelLine, c as setHeartbeatsEnabled, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines, u as isCronSystemEvent } from "./health-DOGcHcgN.js";
|
|
161
161
|
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-hAbiBedq.js";
|
|
162
162
|
import { o as isBitseekBuild } from "./status.update-CbAiJIbB.js";
|
|
163
163
|
import { h as normalizeUpdateChannel, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-D__SZrX3.js";
|
|
164
164
|
import { i as prepareSecretsRuntimeSnapshot, n as clearSecretsRuntimeSnapshot, r as getActiveSecretsRuntimeSnapshot, t as activateSecretsRuntimeSnapshot } from "./runtime-vnX4kz3-.js";
|
|
165
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
166
|
-
import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-
|
|
165
|
+
import { t as runOnboardingWizard } from "./onboarding-Dqr7aZ7Y.js";
|
|
166
|
+
import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-D80k7T9j.js";
|
|
167
167
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-Bk2GBbEH.js";
|
|
168
168
|
import { n as isNodeCommandAllowed, r as resolveNodeCommandAllowlist } from "./node-command-policy-Dk_UuHKt.js";
|
|
169
169
|
import "./node-service-BNRDY7GU.js";
|
|
170
170
|
import "./shared-D96SvIQZ.js";
|
|
171
171
|
import { d as verifyOpenAiCompatibleModel } from "./onboard-custom.shared-DGA1AopE.js";
|
|
172
172
|
import { n as formatInstallFailureMessage, t as installSkill } from "./skills-install-Ba_1ws_H.js";
|
|
173
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
173
|
+
import { t as runGatewayUpdate } from "./update-runner-DyCzzM9h.js";
|
|
174
174
|
import { i as shouldIncludeHook, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-CoIrgiMR.js";
|
|
175
175
|
import { n as forceFreePortAndWait } from "./ports-BNwHSlzK.js";
|
|
176
176
|
import { spawn, spawnSync } from "node:child_process";
|
|
@@ -13613,7 +13613,7 @@ const nodeHandlers = {
|
|
|
13613
13613
|
const p = params;
|
|
13614
13614
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
13615
13615
|
await respondUnavailableOnThrow(respond, async () => {
|
|
13616
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
13616
|
+
const { handleNodeEvent } = await import("./server-node-events-DC1BMCVn.js");
|
|
13617
13617
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
13618
13618
|
await handleNodeEvent({
|
|
13619
13619
|
deps: context.deps,
|
|
@@ -10,7 +10,7 @@ import { i as DEFAULT_HEARTBEAT_FILENAME } from "./workspace-D3Bd1Wd-.js";
|
|
|
10
10
|
import { $ as resolveAgentMainSessionKey, Q as canonicalizeMainSessionAlias, d as updateSessionStore, l as saveSessionStore, o as loadSessionStore } from "./sessions-DugDYFTs.js";
|
|
11
11
|
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-DPspmGax.js";
|
|
12
12
|
import { a as resolvePreferredAccountId, t as buildChannelAccountBindings } from "./bindings-BDScuSfd.js";
|
|
13
|
-
import { Bn as resolveHeartbeatReasonKind, Fr as resolveHeartbeatPrompt$1, In as peekSystemEventEntries, Ir as stripHeartbeatToken, Mr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Nr as DEFAULT_HEARTBEAT_EVERY, Pr as isHeartbeatContentEffectivelyEmpty, Rn as requestHeartbeatNow, Tr as getQueueSize, at as getReplyFromConfig, jr as CommandLane, ln as buildOutboundSessionContext, lr as resolveUserTimezone, st as appendCronStyleCurrentTimeLine, vt as resolveHeartbeatDeliveryTarget, yt as resolveHeartbeatSenderContext, zn as setHeartbeatWakeHandler } from "./subagent-registry-
|
|
13
|
+
import { Bn as resolveHeartbeatReasonKind, Fr as resolveHeartbeatPrompt$1, In as peekSystemEventEntries, Ir as stripHeartbeatToken, Mr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Nr as DEFAULT_HEARTBEAT_EVERY, Pr as isHeartbeatContentEffectivelyEmpty, Rn as requestHeartbeatNow, Tr as getQueueSize, at as getReplyFromConfig, jr as CommandLane, ln as buildOutboundSessionContext, lr as resolveUserTimezone, st as appendCronStyleCurrentTimeLine, vt as resolveHeartbeatDeliveryTarget, yt as resolveHeartbeatSenderContext, zn as setHeartbeatWakeHandler } from "./subagent-registry-BcuTxEMl.js";
|
|
14
14
|
import { c as resolveStorePath, n as resolveSessionFilePath } from "./paths-oIurw4YQ.js";
|
|
15
15
|
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-Dx2aHVrt.js";
|
|
16
16
|
import { t as HEARTBEAT_TOKEN } from "./tokens-COy2Fxku.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { f as isRich, n as info, p as theme } from "./globals-voGoTlHc.js";
|
|
3
3
|
import { l as escapeRegExp } from "./utils-BKvMUpT6.js";
|
|
4
|
-
import { Cr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Dn as resolveHeartbeatDeliveryTarget, Dr as stripHeartbeatToken, Er as resolveHeartbeatPrompt$1, Fr as setHeartbeatWakeHandler, Ir as resolveHeartbeatReasonKind, Jn as buildOutboundSessionContext, Mr as peekSystemEventEntries, On as resolveHeartbeatSenderContext, Pr as requestHeartbeatNow, Sr as CommandLane, Tr as isHeartbeatContentEffectivelyEmpty, er as resolveUserTimezone, gr as getQueueSize, r as appendCronStyleCurrentTimeLine, t as getReplyFromConfig, wr as DEFAULT_HEARTBEAT_EVERY } from "./reply-
|
|
4
|
+
import { Cr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Dn as resolveHeartbeatDeliveryTarget, Dr as stripHeartbeatToken, Er as resolveHeartbeatPrompt$1, Fr as setHeartbeatWakeHandler, Ir as resolveHeartbeatReasonKind, Jn as buildOutboundSessionContext, Mr as peekSystemEventEntries, On as resolveHeartbeatSenderContext, Pr as requestHeartbeatNow, Sr as CommandLane, Tr as isHeartbeatContentEffectivelyEmpty, er as resolveUserTimezone, gr as getQueueSize, r as appendCronStyleCurrentTimeLine, t as getReplyFromConfig, wr as DEFAULT_HEARTBEAT_EVERY } from "./reply-DkwQo3LK.js";
|
|
5
5
|
import { d as resolveDefaultAgentId, i as resolveAgentConfig, u as resolveAgentWorkspaceDir } from "./agent-scope-Bn65aC59.js";
|
|
6
6
|
import { d as defaultRuntime, t as createSubsystemLogger } from "./subsystem-6SmBCR59.js";
|
|
7
7
|
import { c as normalizeAgentId, m as toAgentStoreSessionKey, u as resolveAgentIdFromSessionKey } from "./session-key-C9z4VQtw.js";
|
|
@@ -32,7 +32,7 @@ import "./accounts-MEuVJDoB.js";
|
|
|
32
32
|
import "./bindings-BDScuSfd.js";
|
|
33
33
|
import "./send-BLv3U-2N.js";
|
|
34
34
|
import "./send-BUqXYyi5.js";
|
|
35
|
-
import "./subagent-registry-
|
|
35
|
+
import "./subagent-registry-BcuTxEMl.js";
|
|
36
36
|
import "./paths-oIurw4YQ.js";
|
|
37
37
|
import "./chat-envelope-AUuZAcrC.js";
|
|
38
38
|
import "./client-DVME2dNA.js";
|
|
@@ -126,7 +126,7 @@ import { a as installPackageDir, c as resolveTimedInstallModeOptions, f as resol
|
|
|
126
126
|
import { t as renderTable } from "./table-DHipKm5c.js";
|
|
127
127
|
import { a as parseFrontmatter, t as loadWorkspaceHookEntries } from "./workspace-CoIrgiMR.js";
|
|
128
128
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-DC5Ls265.js";
|
|
129
|
-
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec, t as buildNpmInstallRecordFields } from "./npm-resolution-
|
|
129
|
+
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec, t as buildNpmInstallRecordFields } from "./npm-resolution-Dh42ChiK.js";
|
|
130
130
|
import path from "node:path";
|
|
131
131
|
import fs from "node:fs";
|
|
132
132
|
import fs$1 from "node:fs/promises";
|
|
@@ -2,7 +2,7 @@ import "./paths-Drdbent8.js";
|
|
|
2
2
|
import { p as theme } from "./globals-voGoTlHc.js";
|
|
3
3
|
import { S as shortenHomePath, t as CONFIG_DIR, y as resolveUserPath } from "./utils-BKvMUpT6.js";
|
|
4
4
|
import "./thinking-44rmAw5o.js";
|
|
5
|
-
import "./reply-
|
|
5
|
+
import "./reply-DkwQo3LK.js";
|
|
6
6
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-Bn65aC59.js";
|
|
7
7
|
import { d as defaultRuntime } from "./subsystem-6SmBCR59.js";
|
|
8
8
|
import "./workspace-lzz92TZO.js";
|
|
@@ -125,7 +125,7 @@ import { a as installPackageDir, c as resolveTimedInstallModeOptions, f as resol
|
|
|
125
125
|
import { t as renderTable } from "./table-Dzqv7War.js";
|
|
126
126
|
import { a as parseFrontmatter, t as loadWorkspaceHookEntries } from "./workspace-CDvNyeFM.js";
|
|
127
127
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-CrC3rfts.js";
|
|
128
|
-
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec, t as buildNpmInstallRecordFields } from "./npm-resolution-
|
|
128
|
+
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec, t as buildNpmInstallRecordFields } from "./npm-resolution-tKQdyyrr.js";
|
|
129
129
|
import fs from "node:fs";
|
|
130
130
|
import path from "node:path";
|
|
131
131
|
import fs$1 from "node:fs/promises";
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./paths-Drdbent8.js";
|
|
|
3
3
|
import { D as tryParseLogLevel, F as hasHelpOrVersion, I as hasRootVersionAlias, N as getVerboseFlag, P as hasFlag, f as isRich, j as getCommandPathWithRootOptions, p as theme, s as setVerbose, w as ALLOWED_LOG_LEVELS } from "./globals-voGoTlHc.js";
|
|
4
4
|
import { T as toWhatsappJid, l as escapeRegExp, m as normalizeE164, n as assertWebChannel } from "./utils-BKvMUpT6.js";
|
|
5
5
|
import "./thinking-44rmAw5o.js";
|
|
6
|
-
import { Rt as createDefaultDeps, bt as resolveCommitHash, t as getReplyFromConfig } from "./reply-
|
|
6
|
+
import { Rt as createDefaultDeps, bt as resolveCommitHash, t as getReplyFromConfig } from "./reply-DkwQo3LK.js";
|
|
7
7
|
import "./agent-scope-Bn65aC59.js";
|
|
8
8
|
import { d as defaultRuntime, l as visibleWidth, r as enableConsoleCapture } from "./subsystem-6SmBCR59.js";
|
|
9
9
|
import "./workspace-lzz92TZO.js";
|
|
@@ -120,7 +120,7 @@ import "./server-lifecycle-B0rQI3vu.js";
|
|
|
120
120
|
import "./stagger-BIZMWR_z.js";
|
|
121
121
|
import "./constants-BLoDkl98.js";
|
|
122
122
|
import "./context-window-guard-cHOCxHiA.js";
|
|
123
|
-
import { r as waitForever, t as monitorWebChannel } from "./channel-web-
|
|
123
|
+
import { r as waitForever, t as monitorWebChannel } from "./channel-web-CZj36UOq.js";
|
|
124
124
|
import "./outbound-bFvl9MXB.js";
|
|
125
125
|
import "./session-8gkSR_hH.js";
|
|
126
126
|
import "./login-D-X2kueP.js";
|
|
@@ -128,9 +128,9 @@ import { t as isMainModule } from "./is-main-DMW049m8.js";
|
|
|
128
128
|
import { t as ensureOpenClawCliOnPath } from "./path-env-CX4ttizU.js";
|
|
129
129
|
import { t as assertSupportedRuntime } from "./runtime-guard-B3YxeGOO.js";
|
|
130
130
|
import "./ports-7quBh0W7.js";
|
|
131
|
-
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-
|
|
132
|
-
import "./plugin-registry-
|
|
133
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
131
|
+
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-CGNIVn8U.js";
|
|
132
|
+
import "./plugin-registry-BTbNdUJI.js";
|
|
133
|
+
import { n as resolveCliChannelOptions } from "./channel-options-Df9B8tD2.js";
|
|
134
134
|
import process$1 from "node:process";
|
|
135
135
|
import { fileURLToPath } from "node:url";
|
|
136
136
|
import { Command, InvalidArgumentError } from "commander";
|
|
@@ -599,7 +599,7 @@ function loadConfigGuardModule() {
|
|
|
599
599
|
return configGuardModulePromise;
|
|
600
600
|
}
|
|
601
601
|
function loadPluginRegistryModule() {
|
|
602
|
-
pluginRegistryModulePromise ??= import("./plugin-registry-
|
|
602
|
+
pluginRegistryModulePromise ??= import("./plugin-registry-BTbNdUJI.js").then((n) => n.n);
|
|
603
603
|
return pluginRegistryModulePromise;
|
|
604
604
|
}
|
|
605
605
|
function getRootCommand(command) {
|
|
@@ -12,7 +12,7 @@ import "./internal-hooks-CWkUJTSO.js";
|
|
|
12
12
|
import "./registry-D6H0WNV8.js";
|
|
13
13
|
import "./dock-zn9R9u-t.js";
|
|
14
14
|
import "./tokens-Bra2OFtc.js";
|
|
15
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
15
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-D_5_WIVV.js";
|
|
16
16
|
import "./plugins-CWe0lrUU.js";
|
|
17
17
|
import "./accounts-X3fWVugV.js";
|
|
18
18
|
import "./bindings-O-6Zk868.js";
|
|
@@ -30,7 +30,7 @@ import "./accounts-MEuVJDoB.js";
|
|
|
30
30
|
import "./bindings-BDScuSfd.js";
|
|
31
31
|
import "./send-BLv3U-2N.js";
|
|
32
32
|
import "./send-BUqXYyi5.js";
|
|
33
|
-
import "./subagent-registry-
|
|
33
|
+
import "./subagent-registry-BcuTxEMl.js";
|
|
34
34
|
import "./paths-oIurw4YQ.js";
|
|
35
35
|
import "./chat-envelope-AUuZAcrC.js";
|
|
36
36
|
import "./client-DVME2dNA.js";
|
|
@@ -126,8 +126,8 @@ import "./table-DHipKm5c.js";
|
|
|
126
126
|
import "./shared-D96SvIQZ.js";
|
|
127
127
|
import "./auth-token-BYBDbosA.js";
|
|
128
128
|
import "./logging-UKb4kRzi.js";
|
|
129
|
-
import { c as githubCopilotLoginCommand } from "./provider-auth-helpers-
|
|
130
|
-
import { C as modelsAliasesListCommand, S as modelsAliasesAddCommand, _ as modelsAuthOrderSetCommand, a as modelsStatusCommand, b as modelsAuthPasteTokenCommand, c as modelsImageFallbacksClearCommand, d as modelsFallbacksAddCommand, f as modelsFallbacksClearCommand, g as modelsAuthOrderGetCommand, h as modelsAuthOrderClearCommand, i as modelsScanCommand, l as modelsImageFallbacksListCommand, m as modelsFallbacksRemoveCommand, n as modelsSetImageCommand, o as modelsListCommand, p as modelsFallbacksListCommand, r as modelsSetCommand, s as modelsImageFallbacksAddCommand, u as modelsImageFallbacksRemoveCommand, v as modelsAuthAddCommand, w as modelsAliasesRemoveCommand, x as modelsAuthSetupTokenCommand, y as modelsAuthLoginCommand } from "./models-
|
|
129
|
+
import { c as githubCopilotLoginCommand } from "./provider-auth-helpers-DjIygYv_.js";
|
|
130
|
+
import { C as modelsAliasesListCommand, S as modelsAliasesAddCommand, _ as modelsAuthOrderSetCommand, a as modelsStatusCommand, b as modelsAuthPasteTokenCommand, c as modelsImageFallbacksClearCommand, d as modelsFallbacksAddCommand, f as modelsFallbacksClearCommand, g as modelsAuthOrderGetCommand, h as modelsAuthOrderClearCommand, i as modelsScanCommand, l as modelsImageFallbacksListCommand, m as modelsFallbacksRemoveCommand, n as modelsSetImageCommand, o as modelsListCommand, p as modelsFallbacksListCommand, r as modelsSetCommand, s as modelsImageFallbacksAddCommand, u as modelsImageFallbacksRemoveCommand, v as modelsAuthAddCommand, w as modelsAliasesRemoveCommand, x as modelsAuthSetupTokenCommand, y as modelsAuthLoginCommand } from "./models-x91yp20X.js";
|
|
131
131
|
|
|
132
132
|
//#region src/cli/models-cli.ts
|
|
133
133
|
function runModelsCommand(action) {
|
|
@@ -2,7 +2,7 @@ import { t as CONFIG_PATH } from "./paths-Drdbent8.js";
|
|
|
2
2
|
import { d as colorize, f as isRich$1, p as theme } from "./globals-voGoTlHc.js";
|
|
3
3
|
import { S as shortenHomePath } from "./utils-BKvMUpT6.js";
|
|
4
4
|
import "./thinking-44rmAw5o.js";
|
|
5
|
-
import { Gt as maskApiKey, Wt as describeFailoverError, a as DEFAULT_OAUTH_WARN_MS, gt as loadProviderUsageSummary, o as buildAuthHealthSummary, p as runEmbeddedPiAgent, s as formatRemainingShort, vt as formatUsageWindowSummary, yt as resolveUsageProviderId } from "./reply-
|
|
5
|
+
import { Gt as maskApiKey, Wt as describeFailoverError, a as DEFAULT_OAUTH_WARN_MS, gt as loadProviderUsageSummary, o as buildAuthHealthSummary, p as runEmbeddedPiAgent, s as formatRemainingShort, vt as formatUsageWindowSummary, yt as resolveUsageProviderId } from "./reply-DkwQo3LK.js";
|
|
6
6
|
import { _ as resolveAgentModelPrimaryValue, a as resolveAgentDir, c as resolveAgentModelFallbacksOverride, d as resolveDefaultAgentId, g as resolveAgentModelFallbackValues, s as resolveAgentExplicitModelPrimary, u as resolveAgentWorkspaceDir, v as toAgentModelListLike } from "./agent-scope-Bn65aC59.js";
|
|
7
7
|
import { d as defaultRuntime } from "./subsystem-6SmBCR59.js";
|
|
8
8
|
import { h as resolveDefaultAgentWorkspaceDir } from "./workspace-lzz92TZO.js";
|
|
@@ -128,7 +128,7 @@ import { n as redactSecrets } from "./format-B4BvVfHq.js";
|
|
|
128
128
|
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-_qE4Pz7t.js";
|
|
129
129
|
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-BHOEf9GJ.js";
|
|
130
130
|
import { n as logConfigUpdated } from "./logging-CdJuZgW9.js";
|
|
131
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
131
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-CNUvu0a0.js";
|
|
132
132
|
import path from "node:path";
|
|
133
133
|
import fs from "node:fs/promises";
|
|
134
134
|
import crypto from "node:crypto";
|
|
@@ -8,7 +8,7 @@ import { x as shortenHomePath } from "./utils-Dwy0Sy1G.js";
|
|
|
8
8
|
import { h as resolveDefaultAgentWorkspaceDir } from "./workspace-D3Bd1Wd-.js";
|
|
9
9
|
import { r as resolveForwardCompatModel } from "./model-BUgU1YvD.js";
|
|
10
10
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-P149vq2k.js";
|
|
11
|
-
import { Dt as describeFailoverError, En as maskApiKey, Sn as loadProviderUsageSummary, Tn as resolveUsageProviderId, an as formatRemainingShort, in as buildAuthHealthSummary, rn as DEFAULT_OAUTH_WARN_MS, s as runEmbeddedPiAgent, wn as formatUsageWindowSummary } from "./subagent-registry-
|
|
11
|
+
import { Dt as describeFailoverError, En as maskApiKey, Sn as loadProviderUsageSummary, Tn as resolveUsageProviderId, an as formatRemainingShort, in as buildAuthHealthSummary, rn as DEFAULT_OAUTH_WARN_MS, s as runEmbeddedPiAgent, wn as formatUsageWindowSummary } from "./subagent-registry-BcuTxEMl.js";
|
|
12
12
|
import { i as resolveSessionTranscriptPath, s as resolveSessionTranscriptsDirForAgent } from "./paths-oIurw4YQ.js";
|
|
13
13
|
import { t as ensureOpenClawModelsJson } from "./models-config-BUq1pLs3.js";
|
|
14
14
|
import { n as loadModelCatalog } from "./model-catalog-D4hoiCav.js";
|
|
@@ -22,7 +22,7 @@ import { n as redactSecrets } from "./format-C-890_pY.js";
|
|
|
22
22
|
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-D96SvIQZ.js";
|
|
23
23
|
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-BYBDbosA.js";
|
|
24
24
|
import { n as logConfigUpdated } from "./logging-UKb4kRzi.js";
|
|
25
|
-
import { a as createVpsAwareOAuthHandlers, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
25
|
+
import { a as createVpsAwareOAuthHandlers, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-DjIygYv_.js";
|
|
26
26
|
import path from "node:path";
|
|
27
27
|
import fs from "node:fs/promises";
|
|
28
28
|
import { complete, getEnvApiKey, getModel } from "@mariozechner/pi-ai";
|
|
@@ -2,7 +2,7 @@ import { t as createSubsystemLogger } from "./subsystem-BkPzfTiu.js";
|
|
|
2
2
|
import { M as loadConfig } from "./auth-profiles-Dgxwr8Sa.js";
|
|
3
3
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-YUWhK3d-.js";
|
|
4
4
|
import { h as resolveDefaultAgentWorkspaceDir } from "./workspace-D3Bd1Wd-.js";
|
|
5
|
-
import { _ as loadOpenClawPlugins, g as createPluginLoaderLogger } from "./subagent-registry-
|
|
5
|
+
import { _ as loadOpenClawPlugins, g as createPluginLoaderLogger } from "./subagent-registry-BcuTxEMl.js";
|
|
6
6
|
import { d as buildNpmResolutionFields } from "./npm-pack-install-dRUKCY1x.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dt as loadOpenClawPlugins, ut as createPluginLoaderLogger } from "./reply-
|
|
1
|
+
import { dt as loadOpenClawPlugins, ut as createPluginLoaderLogger } from "./reply-DkwQo3LK.js";
|
|
2
2
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-Bn65aC59.js";
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-6SmBCR59.js";
|
|
4
4
|
import { h as resolveDefaultAgentWorkspaceDir } from "./workspace-lzz92TZO.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { h as pathExists, m as normalizeE164, t as CONFIG_DIR } from "./utils-BKvMUpT6.js";
|
|
3
|
-
import { Lr as resolveSlackUserAllowlist, Rr as resolveDiscordUserAllowlist, St as resolveSlackChannelAllowlist, dt as loadOpenClawPlugins, kt as resolveDiscordChannelAllowlist, ut as createPluginLoaderLogger } from "./reply-
|
|
3
|
+
import { Lr as resolveSlackUserAllowlist, Rr as resolveDiscordUserAllowlist, St as resolveSlackChannelAllowlist, dt as loadOpenClawPlugins, kt as resolveDiscordChannelAllowlist, ut as createPluginLoaderLogger } from "./reply-DkwQo3LK.js";
|
|
4
4
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-Bn65aC59.js";
|
|
5
5
|
import { t as createSubsystemLogger } from "./subsystem-6SmBCR59.js";
|
|
6
6
|
import { g as normalizeAccountId, h as DEFAULT_ACCOUNT_ID } from "./session-key-C9z4VQtw.js";
|
|
@@ -11,7 +11,7 @@ import { a as resolveWhatsAppAuthDir, n as listWhatsAppAccountIds, r as resolveD
|
|
|
11
11
|
import { n as resolveDefaultIMessageAccountId, r as resolveIMessageAccount, t as listIMessageAccountIds } from "./accounts-C9SoQRlD.js";
|
|
12
12
|
import { i as resolveSignalAccount, n as listSignalAccountIds, r as resolveDefaultSignalAccountId } from "./accounts-MEuVJDoB.js";
|
|
13
13
|
import { ut as normalizeDiscordSlug } from "./send-BUqXYyi5.js";
|
|
14
|
-
import { Hn as resolveDiscordUserAllowlist, O as resolveDiscordChannelAllowlist, Vn as resolveSlackUserAllowlist, _ as loadOpenClawPlugins, g as createPluginLoaderLogger, x as resolveSlackChannelAllowlist } from "./subagent-registry-
|
|
14
|
+
import { Hn as resolveDiscordUserAllowlist, O as resolveDiscordChannelAllowlist, Vn as resolveSlackUserAllowlist, _ as loadOpenClawPlugins, g as createPluginLoaderLogger, x as resolveSlackChannelAllowlist } from "./subagent-registry-BcuTxEMl.js";
|
|
15
15
|
import { a as listChannelPluginCatalogEntries, n as isChannelConfigured } from "./plugin-auto-enable-C4EhTu_y.js";
|
|
16
16
|
import { s as normalizeIMessageHandle } from "./send-CwHSY0pB.js";
|
|
17
17
|
import { r as detectBinary } from "./onboard-helpers-DLQ_XMs1.js";
|
|
@@ -8,7 +8,7 @@ import { t as assertSupportedRuntime } from "./runtime-guard-B3YxeGOO.js";
|
|
|
8
8
|
import { t as WizardCancelledError } from "./prompts-DLVFjelr.js";
|
|
9
9
|
import { t as createClackPrompter } from "./clack-prompter-DKNMebvL.js";
|
|
10
10
|
import { t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-J7zRr7jm.js";
|
|
11
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
11
|
+
import { t as runOnboardingWizard } from "./onboarding-W2AiGqjG.js";
|
|
12
12
|
import { n as logConfigUpdated } from "./logging-CdJuZgW9.js";
|
|
13
13
|
import { i as normalizeLegacyOnboardAuthChoice, r as isDeprecatedAuthChoice, t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-BagFJEug.js";
|
|
14
14
|
import { t as applyOnboardingLocalWorkspaceConfig } from "./onboard-config-C0UVcgCr.js";
|
|
@@ -251,7 +251,7 @@ async function runNonInteractiveOnboardingLocal(params) {
|
|
|
251
251
|
}
|
|
252
252
|
const daemonRuntimeRaw = opts.daemonRuntime ?? DEFAULT_GATEWAY_DAEMON_RUNTIME;
|
|
253
253
|
if (!opts.skipHealth) {
|
|
254
|
-
const { healthCommand } = await import("./health-
|
|
254
|
+
const { healthCommand } = await import("./health-DeofgoIV.js").then((n) => n.i);
|
|
255
255
|
await waitForGatewayReachable({
|
|
256
256
|
url: resolveControlUiLinks({
|
|
257
257
|
bind: gatewayResult.bind,
|
|
@@ -8,7 +8,7 @@ import { t as WizardCancelledError } from "./prompts-QSI6gA3k.js";
|
|
|
8
8
|
import { t as createClackPrompter } from "./clack-prompter-C1NdIpbi.js";
|
|
9
9
|
import { t as assertSupportedRuntime } from "./runtime-guard-Bif49nR1.js";
|
|
10
10
|
import { t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-3ZmrkfCf.js";
|
|
11
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
11
|
+
import { t as runOnboardingWizard } from "./onboarding-Dqr7aZ7Y.js";
|
|
12
12
|
import { n as logConfigUpdated } from "./logging-UKb4kRzi.js";
|
|
13
13
|
import { i as normalizeLegacyOnboardAuthChoice, r as isDeprecatedAuthChoice, t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-ijrpDurI.js";
|
|
14
14
|
import { t as applyOnboardingLocalWorkspaceConfig } from "./onboard-config-D9KC4vvF.js";
|
|
@@ -251,7 +251,7 @@ async function runNonInteractiveOnboardingLocal(params) {
|
|
|
251
251
|
}
|
|
252
252
|
const daemonRuntimeRaw = opts.daemonRuntime ?? DEFAULT_GATEWAY_DAEMON_RUNTIME;
|
|
253
253
|
if (!opts.skipHealth) {
|
|
254
|
-
const { healthCommand } = await import("./health-
|
|
254
|
+
const { healthCommand } = await import("./health-DOGcHcgN.js").then((n) => n.i);
|
|
255
255
|
await waitForGatewayReachable({
|
|
256
256
|
url: resolveControlUiLinks({
|
|
257
257
|
bind: gatewayResult.bind,
|
|
@@ -231,7 +231,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
231
231
|
const { ensureAuthProfileStore } = await import("./auth-profiles-Dgxwr8Sa.js").then((n) => n.t);
|
|
232
232
|
const { promptAuthChoiceGrouped } = await import("./auth-choice-prompt-DIbIQ3T7.js").then((n) => n.t);
|
|
233
233
|
const { promptCustomApiConfig } = await import("./onboard-custom-CtmSA7Ih.js").then((n) => n.t);
|
|
234
|
-
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-
|
|
234
|
+
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-C2N-LUBR.js").then((n) => n.t);
|
|
235
235
|
const { applyPrimaryModel, promptDefaultModel } = await import("./model-picker-C52jOYls.js").then((n) => n.i);
|
|
236
236
|
const authStore = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false });
|
|
237
237
|
const authChoiceFromPrompt = opts.authChoice === void 0;
|
|
@@ -285,7 +285,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
285
285
|
if (opts.skipChannels ?? opts.skipProviders) await prompter.note("Skipping channel setup.", "Channels");
|
|
286
286
|
else {
|
|
287
287
|
const { listChannelPlugins } = await import("./plugins-DPspmGax.js").then((n) => n.i);
|
|
288
|
-
const { setupChannels } = await import("./onboard-channels-
|
|
288
|
+
const { setupChannels } = await import("./onboard-channels-zkzv3Yvo.js").then((n) => n.n);
|
|
289
289
|
const quickstartAllowFromChannels = flow === "quickstart" ? listChannelPlugins().filter((plugin) => plugin.meta.quickstartAllowFrom).map((plugin) => plugin.id) : [];
|
|
290
290
|
nextConfig = await setupChannels(nextConfig, runtime, prompter, {
|
|
291
291
|
allowSignalInstall: true,
|
|
@@ -311,7 +311,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
311
311
|
mode
|
|
312
312
|
});
|
|
313
313
|
await writeConfigFile(nextConfig);
|
|
314
|
-
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-
|
|
314
|
+
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-DIWji8d4.js");
|
|
315
315
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
316
316
|
flow,
|
|
317
317
|
opts,
|
|
@@ -231,7 +231,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
231
231
|
const { ensureAuthProfileStore } = await import("./model-selection-Cg3prWqt.js").then((n) => n.pt);
|
|
232
232
|
const { promptAuthChoiceGrouped } = await import("./auth-choice-prompt-DlOvdPcA.js").then((n) => n.t);
|
|
233
233
|
const { promptCustomApiConfig } = await import("./onboard-custom-ipgI44ox.js").then((n) => n.t);
|
|
234
|
-
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-
|
|
234
|
+
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-CYJe-sOy.js").then((n) => n.t);
|
|
235
235
|
const { applyPrimaryModel, promptDefaultModel } = await import("./model-picker-C1usxGGR.js").then((n) => n.i);
|
|
236
236
|
const authStore = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false });
|
|
237
237
|
const authChoiceFromPrompt = opts.authChoice === void 0;
|
|
@@ -285,7 +285,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
285
285
|
if (opts.skipChannels ?? opts.skipProviders) await prompter.note("Skipping channel setup.", "Channels");
|
|
286
286
|
else {
|
|
287
287
|
const { listChannelPlugins } = await import("./plugins-BTlaQWQB.js").then((n) => n.i);
|
|
288
|
-
const { setupChannels } = await import("./onboard-channels-
|
|
288
|
+
const { setupChannels } = await import("./onboard-channels-BVZJDmqk.js").then((n) => n.n);
|
|
289
289
|
const quickstartAllowFromChannels = flow === "quickstart" ? listChannelPlugins().filter((plugin) => plugin.meta.quickstartAllowFrom).map((plugin) => plugin.id) : [];
|
|
290
290
|
nextConfig = await setupChannels(nextConfig, runtime, prompter, {
|
|
291
291
|
allowSignalInstall: true,
|
|
@@ -311,7 +311,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
311
311
|
mode
|
|
312
312
|
});
|
|
313
313
|
await writeConfigFile(nextConfig);
|
|
314
|
-
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-
|
|
314
|
+
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-QfwQJFMM.js");
|
|
315
315
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
316
316
|
flow,
|
|
317
317
|
opts,
|
|
@@ -32,7 +32,7 @@ import "./accounts-MEuVJDoB.js";
|
|
|
32
32
|
import "./bindings-BDScuSfd.js";
|
|
33
33
|
import "./send-BLv3U-2N.js";
|
|
34
34
|
import "./send-BUqXYyi5.js";
|
|
35
|
-
import "./subagent-registry-
|
|
35
|
+
import "./subagent-registry-BcuTxEMl.js";
|
|
36
36
|
import "./paths-oIurw4YQ.js";
|
|
37
37
|
import "./chat-envelope-AUuZAcrC.js";
|
|
38
38
|
import "./client-DVME2dNA.js";
|
|
@@ -122,19 +122,19 @@ import "./progress-ctu3wJgA.js";
|
|
|
122
122
|
import "./constants-By6nxsIT.js";
|
|
123
123
|
import "./context-window-guard-aKoSfdAy.js";
|
|
124
124
|
import "./note-fYPH2CN3.js";
|
|
125
|
-
import { r as installCompletion } from "./completion-cli-
|
|
126
|
-
import "./register.subclis-
|
|
127
|
-
import "./command-registry-
|
|
125
|
+
import { r as installCompletion } from "./completion-cli-D96BgcqD.js";
|
|
126
|
+
import "./register.subclis-C6ixj03Z.js";
|
|
127
|
+
import "./command-registry-C3Gr6QIZ.js";
|
|
128
128
|
import "./program-context-BqyLhTGk.js";
|
|
129
129
|
import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-BsUgG6nU.js";
|
|
130
130
|
import "./runtime-guard-Bif49nR1.js";
|
|
131
131
|
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-3ZmrkfCf.js";
|
|
132
132
|
import { r as isSystemdUserServiceAvailable } from "./systemd-DVgFh5bF.js";
|
|
133
133
|
import { t as resolveGatewayService } from "./service-DdLDWk4F.js";
|
|
134
|
-
import { r as healthCommand } from "./health-
|
|
134
|
+
import { r as healthCommand } from "./health-DOGcHcgN.js";
|
|
135
135
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-hAbiBedq.js";
|
|
136
136
|
import { t as formatHealthCheckFailure } from "./health-format-alQl4_LL.js";
|
|
137
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
137
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-DiVJuSS4.js";
|
|
138
138
|
import { t as runTui } from "./tui-B7dzJD1I.js";
|
|
139
139
|
import path from "node:path";
|
|
140
140
|
import os from "node:os";
|
|
@@ -2,7 +2,7 @@ import "./paths-Drdbent8.js";
|
|
|
2
2
|
import "./globals-voGoTlHc.js";
|
|
3
3
|
import { h as pathExists, y as resolveUserPath } from "./utils-BKvMUpT6.js";
|
|
4
4
|
import "./thinking-44rmAw5o.js";
|
|
5
|
-
import "./reply-
|
|
5
|
+
import "./reply-DkwQo3LK.js";
|
|
6
6
|
import "./agent-scope-Bn65aC59.js";
|
|
7
7
|
import { f as restoreTerminalState } from "./subsystem-6SmBCR59.js";
|
|
8
8
|
import { r as DEFAULT_BOOTSTRAP_FILENAME } from "./workspace-lzz92TZO.js";
|
|
@@ -120,17 +120,17 @@ import "./stagger-BIZMWR_z.js";
|
|
|
120
120
|
import "./constants-BLoDkl98.js";
|
|
121
121
|
import "./context-window-guard-cHOCxHiA.js";
|
|
122
122
|
import "./runtime-guard-B3YxeGOO.js";
|
|
123
|
-
import "./program-context-
|
|
123
|
+
import "./program-context-CGNIVn8U.js";
|
|
124
124
|
import "./note-C6sycQ3H.js";
|
|
125
|
-
import { r as installCompletion } from "./completion-cli-
|
|
125
|
+
import { r as installCompletion } from "./completion-cli-DcmfM_XB.js";
|
|
126
126
|
import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-BPDY64By.js";
|
|
127
127
|
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-J7zRr7jm.js";
|
|
128
128
|
import { r as isSystemdUserServiceAvailable } from "./systemd-DQpABD53.js";
|
|
129
129
|
import { t as resolveGatewayService } from "./service-jUviiiCR.js";
|
|
130
|
-
import { r as healthCommand } from "./health-
|
|
130
|
+
import { r as healthCommand } from "./health-DeofgoIV.js";
|
|
131
131
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-DAcl2zC-.js";
|
|
132
132
|
import { t as formatHealthCheckFailure } from "./health-format-D392yFfI.js";
|
|
133
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
133
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-nOnIa5ym.js";
|
|
134
134
|
import { t as runTui } from "./tui-BRtGtxGi.js";
|
|
135
135
|
import os from "node:os";
|
|
136
136
|
import path from "node:path";
|
|
@@ -61007,7 +61007,7 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
61007
61007
|
function createDefaultDeps() {
|
|
61008
61008
|
return {
|
|
61009
61009
|
sendMessageWhatsApp: async (...args) => {
|
|
61010
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
61010
|
+
const { sendMessageWhatsApp } = await import("./web-DLuhYIW3.js");
|
|
61011
61011
|
return await sendMessageWhatsApp(...args);
|
|
61012
61012
|
},
|
|
61013
61013
|
sendMessageTelegram: async (...args) => {
|
|
@@ -79265,7 +79265,7 @@ function loadWebLoginQr() {
|
|
|
79265
79265
|
return webLoginQrPromise;
|
|
79266
79266
|
}
|
|
79267
79267
|
function loadWebChannel() {
|
|
79268
|
-
webChannelPromise ??= import("./web-
|
|
79268
|
+
webChannelPromise ??= import("./web-DLuhYIW3.js");
|
|
79269
79269
|
return webChannelPromise;
|
|
79270
79270
|
}
|
|
79271
79271
|
function loadWhatsAppActions() {
|
|
@@ -88203,6 +88203,34 @@ function resolveSilentReplyFallbackText(params) {
|
|
|
88203
88203
|
if (!fallback) return params.text;
|
|
88204
88204
|
return fallback;
|
|
88205
88205
|
}
|
|
88206
|
+
function summarizeAssistantMessageDebug(message) {
|
|
88207
|
+
const stopReason = typeof message.stopReason === "string" ? message.stopReason ?? void 0 : void 0;
|
|
88208
|
+
const content = message.content;
|
|
88209
|
+
if (!Array.isArray(content)) return {
|
|
88210
|
+
stopReason,
|
|
88211
|
+
contentTypes: []
|
|
88212
|
+
};
|
|
88213
|
+
const contentTypes = [];
|
|
88214
|
+
const toolCalls = [];
|
|
88215
|
+
for (const block of content) {
|
|
88216
|
+
if (!block || typeof block !== "object") {
|
|
88217
|
+
contentTypes.push(typeof block);
|
|
88218
|
+
continue;
|
|
88219
|
+
}
|
|
88220
|
+
const record = block;
|
|
88221
|
+
const blockType = typeof record.type === "string" ? record.type : "unknown";
|
|
88222
|
+
contentTypes.push(blockType);
|
|
88223
|
+
if (blockType === "toolCall") toolCalls.push({
|
|
88224
|
+
id: typeof record.id === "string" ? record.id : void 0,
|
|
88225
|
+
name: typeof record.name === "string" ? record.name : void 0
|
|
88226
|
+
});
|
|
88227
|
+
}
|
|
88228
|
+
return {
|
|
88229
|
+
stopReason,
|
|
88230
|
+
contentTypes,
|
|
88231
|
+
toolCalls: toolCalls.length > 0 ? toolCalls : void 0
|
|
88232
|
+
};
|
|
88233
|
+
}
|
|
88206
88234
|
function handleMessageStart(ctx, evt) {
|
|
88207
88235
|
if (evt.message?.role !== "assistant") return;
|
|
88208
88236
|
ctx.resetAssistantMessageState(ctx.state.assistantTexts.length);
|
|
@@ -88331,13 +88359,18 @@ function handleMessageEnd(ctx, evt) {
|
|
|
88331
88359
|
ctx.recordAssistantUsage(assistantMessage.usage);
|
|
88332
88360
|
promoteThinkingTagsToBlocks(assistantMessage);
|
|
88333
88361
|
const rawText = extractAssistantText$1(assistantMessage);
|
|
88362
|
+
const rawThinking = extractAssistantThinking(assistantMessage);
|
|
88363
|
+
const debugSummary = summarizeAssistantMessageDebug(assistantMessage);
|
|
88334
88364
|
appendRawStream({
|
|
88335
88365
|
ts: Date.now(),
|
|
88336
88366
|
event: "assistant_message_end",
|
|
88337
88367
|
runId: ctx.params.runId,
|
|
88338
88368
|
sessionId: ctx.params.session.id,
|
|
88339
88369
|
rawText,
|
|
88340
|
-
rawThinking
|
|
88370
|
+
rawThinking,
|
|
88371
|
+
stopReason: debugSummary.stopReason,
|
|
88372
|
+
contentTypes: debugSummary.contentTypes,
|
|
88373
|
+
toolCalls: debugSummary.toolCalls
|
|
88341
88374
|
});
|
|
88342
88375
|
const text = resolveSilentReplyFallbackText({
|
|
88343
88376
|
text: ctx.stripBlockTags(rawText, {
|
|
@@ -88346,8 +88379,8 @@ function handleMessageEnd(ctx, evt) {
|
|
|
88346
88379
|
}),
|
|
88347
88380
|
messagingToolSentTexts: ctx.state.messagingToolSentTexts
|
|
88348
88381
|
});
|
|
88349
|
-
const
|
|
88350
|
-
const formattedReasoning =
|
|
88382
|
+
const visibleRawThinking = ctx.state.includeReasoning || ctx.state.streamReasoning ? rawThinking || extractThinkingFromTaggedText(rawText) : "";
|
|
88383
|
+
const formattedReasoning = visibleRawThinking ? formatReasoningMessage(visibleRawThinking) : "";
|
|
88351
88384
|
const trimmedText = text.trim();
|
|
88352
88385
|
const parsedText = trimmedText ? parseReplyDirectives(stripTrailingDirective(trimmedText)) : null;
|
|
88353
88386
|
let cleanedText = parsedText?.text ?? "";
|
|
@@ -88428,7 +88461,7 @@ function handleMessageEnd(ctx, evt) {
|
|
|
88428
88461
|
}
|
|
88429
88462
|
}
|
|
88430
88463
|
if (!shouldEmitReasoningBeforeAnswer) maybeEmitReasoning();
|
|
88431
|
-
if (ctx.state.streamReasoning &&
|
|
88464
|
+
if (ctx.state.streamReasoning && visibleRawThinking) ctx.emitReasoningStream(visibleRawThinking);
|
|
88432
88465
|
if (ctx.state.blockReplyBreak === "text_end" && onBlockReply) emitSplitResultAsBlockReply(ctx.consumeReplyDirectives("", { final: true }));
|
|
88433
88466
|
ctx.state.deltaBuffer = "";
|
|
88434
88467
|
ctx.state.blockBuffer = "";
|