MCPcopy
hub / github.com/witheve/Eve / propose

Method propose

src/runtime/join.ts:682–700  ·  view source on GitHub ↗
(multiIndex: MultiIndex, prefix)

Source from the content-addressed store, hash-verified

680 }
681
682 propose(multiIndex: MultiIndex, prefix) {
683 // if either our inputs aren't resolved or our outputs are all filled
684 // in, then we don't have anything to propose
685 if(!fullyResolved(this.args, prefix)
686 || fullyResolved(this.outputs, prefix)) return;
687
688 // find out which of our outputs we could propose a value for
689 let proposed;
690 let proposedIx = 0;
691 for(let ret of this.outputs) {
692 if(toValue(ret, prefix) === undefined) {
693 proposed = ret;
694 break;
695 }
696 proposedIx++;
697 }
698
699 return this.getProposal(multiIndex, proposed, proposedIx, prefix);
700 }
701
702 resolveProposal(proposal, prefix) {
703 return proposal.index;

Callers

nothing calls this directly

Calls 3

getProposalMethod · 0.95
fullyResolvedFunction · 0.85
toValueFunction · 0.85

Tested by

no test coverage detected