MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / resolveOne

Function resolveOne

packages/agent-core/test/session/subagent-batch.test.ts:683–692  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

681 });
682 const resolved = new Set<number>();
683 const resolveOne = (index: number) => {
684 const attempt = attempts[index]!;
685 resolved.add(index);
686 attempt.outcome.resolve({
687 task: attempt.task,
688 agentId: `agent-${String(index + 1)}`,
689 status: 'completed',
690 result: `result ${String(index + 1)}`,
691 });
692 };
693 const inFlight = () => attempts.length - resolved.size;
694
695 // Initial burst is capped at 3 instead of the default 5.

Callers 1

Calls 2

addMethod · 0.65
resolveMethod · 0.65

Tested by

no test coverage detected