INNER CODE UNIT · TypeScript

progress

PentesterFlow/agent · src/cli/index.ts:606

      const progress = wireChildProgress(`skill:${skillName}`, (ev) => {
        if (ev.phase === 'tool' && ev.tool) progressTools.push(ev.tool);
        noticeHolder.publish?.(childProgressNoticeFromEvent(ev, progressTools));
      });
      await child.run(
        `Load the "${skillName}" skill first (load_skill without fork), then: ${objective}`,
        signal,
        (e) => {
          collected.push(e);
          progress(e);
        },
      );
      const result = summarizeDelegateEvents(collected, 'skill');
      const tally = Object.entries(result.toolTally)
        .map(([name, n]) => `${name}×${n}`)
        .join(', ');
      const header = `[skill-fork/${skillName}: ${result.stepCount} tool call(s)${tally ? ` — ${tally}` : ''}]`;
      const body = result.finalText || '(skill fork produced no final text)';

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…