feat(FN-3534): surface task provenance in extension outputs

Merges FN-3534 to surface task provenance in CLI extension outputs (task list/show) with corresponding tests and a changeset for the published `@runfusion/fusion` package. Also includes FN-3297 test coverage for incomplete runtime distribution trees in the test-artifacts script.

Fusion-Task-Id: FN-3534
This commit is contained in:
Fusion
2026-05-05 23:08:45 -07:00
committed by gsxdsm
parent 6ee3225a8a
commit 81bf882c81
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@fusion/engine": patch
---
Route skill-selection diagnostics by their declared severity instead of always logging at warn. Info-level messages like "Requested skill: <name>" now log at info level.

View File

@@ -1182,7 +1182,10 @@ export async function createFnAgent(options: AgentOptions): Promise<AgentResult>
if (selectionResult.diagnostics.length > 0) {
const purpose = effectiveSkillSelection.sessionPurpose ?? "skills";
for (const diag of selectionResult.diagnostics) {
piLog.warn(`[skills] [${purpose}] ${diag.type}: ${diag.message}`);
const msg = `[skills] [${purpose}] ${diag.type}: ${diag.message}`;
if (diag.type === "error") piLog.error(msg);
else if (diag.type === "warning") piLog.warn(msg);
else piLog.log(msg);
}
}
skillsOverrideFn = createSkillsOverrideFromSelection(selectionResult, {