import{i as e}from"./DFB29SWc.js";async function t(t,r){await e(t,{text:n(r),title:`dispatch-trace: ${r.predictedAgentId} → ${r.fallbackUsed?`universal-fallback`:`registry-hit`}`,memoryType:`procedural`,tier:`short`,confidence:.5,source:`task-completion`,sourceConfidence:`speculative`})}function n(e){let t=[`Dispatch trace for task ${e.taskId}:`,`  predictedAgentId: ${e.predictedAgentId}`,`  confidence: ${e.confidence}`,`  registryHit: ${e.registryHit}`,`  fallbackUsed: ${e.fallbackUsed}`,`  reason: ${e.reason}`,`  resolvedAt: ${e.resolvedAt}`];return e.resolverWarning&&t.push(`  resolverWarning: ${e.resolverWarning}`),t.join(`
`)}export{t as emitDispatchTrace};