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

Method openCascade

src/client.js:637–650  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

635 // Step 1: Start cascade — with retry on panel-state-not-found
636 let cascadeId;
637 const openCascade = async () => {
638 if (reuseEntry?.cascadeId) {
639 log.debug(`Cascade resumed: ${reuseEntry.cascadeId}`);
640 return reuseEntry.cascadeId;
641 }
642 const startProto = buildStartCascadeRequest(this.apiKey, sessionId);
643 const startResp = await grpcUnary(
644 this.port, this.csrfToken, `${LS_SERVICE}/StartCascade`, grpcFrame(startProto)
645 );
646 const id = parseStartCascadeResponse(startResp);
647 if (!id) throw new Error('StartCascade returned empty cascade_id');
648 log.debug(`Cascade started: ${id}`);
649 return id;
650 };
651 try {
652 cascadeId = await openCascade();
653 } catch (e) {

Callers

nothing calls this directly

Calls 4

buildStartCascadeRequestFunction · 0.90
grpcUnaryFunction · 0.90
grpcFrameFunction · 0.90

Tested by

no test coverage detected