feat(FN-4690): add tracking coverage for register-task-workflow API routes

Adds test coverage for task operation API routes including workflow tracking endpoints, with minor doc updates and a changeset for the `@runfusion/fusion` package.

Fusion-Task-Id: FN-4690
This commit is contained in:
Fusion (runfusion.ai)
2026-05-15 21:36:14 -07:00
committed by gsxdsm
parent 82273a47bb
commit f7a7038582
5 changed files with 170 additions and 7 deletions

View File

@@ -605,6 +605,7 @@ export function registerTaskWorkflowRoutes(ctx: ApiRoutesContext, deps: TaskWork
try {
const { store: scopedStore } = await getProjectContext(req);
const newTask = await scopedStore.duplicateTask(req.params.id);
await maybeCreateTaskTrackingIssue(scopedStore, newTask, options?.githubToken);
res.status(201).json(newTask);
} catch (err: unknown) {
if (err instanceof ApiError) {
@@ -631,6 +632,7 @@ export function registerTaskWorkflowRoutes(ctx: ApiRoutesContext, deps: TaskWork
}
const refinedTask = await scopedStore.refineTask(req.params.id, trimmedFeedback);
await maybeCreateTaskTrackingIssue(scopedStore, refinedTask, options?.githubToken);
await scopedStore.logEntry(req.params.id, "Refinement requested", trimmedFeedback);
res.status(201).json(refinedTask);
} catch (err: unknown) {