Skip to content
Source
Sign inSign up
TanStack/intent

perf: hoist relative package paths and reuse project context in intent stale #341

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

Showing 6 changed files with 36 additions and 14 deletions (loading 3).

x
0 of 6 viewed, 6 left
5 additions and 0 deletions.changeset/stale-reuse-context-and-relpath.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/intent': patch
+---
+​
+Make `intent stale` reuse its per-run filesystem cache across target discovery, workspace enumeration, and skill-policy filtering, and compute each package's relative path to `_artifacts` once per package instead of once per artifact entry; behavior does not change.
26 additions and 11 deletionspackages/intent/src/commands/stale.tsModified
View file
@@ -7,7 +7,7 @@
import { resolveProjectContext } from '../core/project-context.js'
import { createIntentFsCache } from '../discovery/fs-cache.js'
import {
- isSourcePermitted,
+ compileSkillSourcePolicy,
readSkillSourcesConfig,
} from '../core/source-policy.js'
import { isCliFailure } from '../shared/cli-error.js'
@@ -15,6 +15,7 @@
detectIntentCommandPackageManager,
formatIntentCommand,
} from '../shared/command-runner.js'
+import type { IntentFsCache } from '../discovery/fs-cache.js'
import type { StalenessReport } from '../shared/types.js'