Skip to content
Source
Sign inSign up
TanStack/intent

perf: skip artifact coverage scan when a workspace package has a generated skill #336

MergedLadyBluenotes(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/336/headmerged by LadyBluenotes(GitHub profile, opens in a new tab)

Showing 2 changed files with 8 additions and 1 deletion.

x
0 of 2 viewed, 2 left
5 additions and 0 deletions.changeset/stale-skip-covered-artifact-scan.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/intent': patch
+---
+​
+Skip the `_artifacts` coverage scan in `intent stale` when a workspace package already has a generated `SKILL.md`. `buildWorkspaceCoverageSignals` checked whether each package had a generated skill and then still searched `artifacts.skills` before using that result; continuing as soon as a generated skill is found avoids scanning the artifact list for covered packages without changing reported signals.
3 additions and 1 deletionpackages/intent/src/staleness/check.tsModified
View file
@@ -439,11 +439,13 @@
​
const hasGeneratedSkill =
fsCache.findSkillFiles(join(packageDir, 'skills')).length > 0
+ if (hasGeneratedSkill) continue
+​
const hasArtifactCoverage = artifacts.skills.some((artifact) =>
artifactCoversPackage(artifact, packageDir, packageName, artifactRoot),
​
- if (hasGeneratedSkill || hasArtifactCoverage) continue
+ if (hasArtifactCoverage) continue
​
signals.push({
type: 'missing-package-coverage',