feat(FN-3869): add github tracking fields and resolver to tasks

Adds GitHub tracking fields to the task model with schema migration, store accessors, and type definitions in `@fusion/core`. New `github-tracking.ts` module exposes a resolver for fetching GitHub issue/PR metadata, integrated into the task store. Test coverage spans the new module, store integratio

Fusion-Task-Id: FN-3869
This commit is contained in:
Fusion
2026-05-09 20:42:05 -07:00
committed by gsxdsm
parent 87966fd13f
commit 81243b762b
17 changed files with 543 additions and 32 deletions

View File

@@ -88,7 +88,7 @@ export function probeFts5(db: DatabaseSync): boolean {
// ── Schema Definition ────────────────────────────────────────────────
const SCHEMA_VERSION = 70;
const SCHEMA_VERSION = 71;
function normalizeTaskComments(
steeringComments: SteeringComment[] | undefined,
@@ -206,6 +206,7 @@ CREATE TABLE IF NOT EXISTS tasks (
workflowStepResults TEXT DEFAULT '[]',
prInfo TEXT,
issueInfo TEXT,
githubTracking TEXT,
sourceIssueProvider TEXT,
sourceIssueRepository TEXT,
sourceIssueExternalIssueId TEXT,
@@ -2960,6 +2961,12 @@ export class Database {
});
}
if (version < 71) {
this.applyMigration(71, () => {
this.addColumnIfMissing("tasks", "githubTracking", "TEXT");
});
}
}
/**