feat(FN-4626): complete Step 2 — extend worktrunk audit taxonomy

Fusion-Task-Id: FN-4626
Fusion-Task-Lineage: 04b06bf6-b08c-4ff1-b69a-ab93f6e508b3
This commit is contained in:
Fusion (runfusion.ai)
2026-05-15 22:02:39 -07:00
committed by gsxdsm
parent bdda0e2da8
commit 99860e8419

View File

@@ -66,6 +66,23 @@ export type GitMutationType =
| "worktree:create"
| "worktree:remove"
| "worktree:reuse"
/**
* worktrunk run-audit metadata shape:
*
* ```ts
* metadata: {
* op: "install" | "create" | "sync" | "prune" | "remove" | "failure" | "fallback-native";
* binaryPath?: string; // resolved worktrunk binary path
* worktreePath?: string; // target worktree path (create/sync/remove; prune when single-target)
* durationMs?: number; // wall-clock duration of the worktrunk invocation
* exitCode?: number | null; // only on failure / fallback-native events
* stderrPreview?: string; // truncated to 4 KB; only on failure / fallback-native events
* installSource?: "release-binary" | "cargo"; // only on successful install events
* prunedCount?: number; // only on successful prune events when known
* }
* ```
*/
| "worktree:worktrunk-install"
| "worktree:worktrunk-create"
| "worktree:worktrunk-remove"
| "worktree:worktrunk-sync"