MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / sendMessage

Method sendMessage

src/client.js:781–792  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

779 // (fresh sessionId + panel init) + fresh StartCascade, with a
780 // small backoff to let the LS settle.
781 const sendMessage = async () => {
782 const sendProto = buildSendCascadeMessageRequest(this.apiKey, cascadeId, text, modelEnum, modelUid, sessionId, {
783 toolPreamble, images,
784 nativeMode: !!nativeMode,
785 nativeAllowlist: nativeAllowlist || null,
786 nativeEnvironment: nativeEnvironment || '',
787 additionalSteps: additionalSteps || null,
788 });
789 await grpcUnary(
790 this.port, this.csrfToken, `${LS_SERVICE}/SendUserCascadeMessage`, grpcFrame(sendProto)
791 );
792 };
793 const MAX_PANEL_RETRIES = 3;
794 const rebuildFullHistoryText = async () => {
795 if (!(isResume && convo.length > 1)) return;

Callers

nothing calls this directly

Calls 3

grpcUnaryFunction · 0.90
grpcFrameFunction · 0.90

Tested by

no test coverage detected