Skip to content
Source
Sign inSign up
TanStack/intent

perf: share package context, path checks, and frontmatter across maintainer batches #337

MergedLadyBluenotes(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/337/headmerged by LadyBluenotes(GitHub profile, opens in a new tab)

Showing 8 changed files with 44 additions and 7 deletions (loading 5).

x
0 of 8 viewed, 8 left
5 additions and 0 deletions.changeset/maintainer-setup-batch.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/intent': patch
+---
+​
+Make `intent maintainer setup` faster when a repository already has skills. Discovery and registration now share package context, checked paths, and parsed `SKILL.md` frontmatter across the batch instead of repeating them per skill; behavior does not change.
8 additions and 2 deletionspackages/intent/src/commands/maintainer.tsModified
View file
@@ -2,6 +2,7 @@
import { dirname, relative, resolve } from 'node:path'
import { isCI } from 'std-env'
import { resolveProjectContext } from '../core/project-context.js'
+import { createIntentFsCache } from '../discovery/fs-cache.js'
import { fail } from '../shared/cli-error.js'
import {
planSetupRecords,
@@ -332,13 +333,16 @@
if (['setup', 'add', 'remove', 'sync'].includes(action)) {
await withMaintainerLock(project.root, () => {
if (action === 'setup') {
- const created = planSetupRecords(project)
- const existing = findExistingSkills(project, created)
+ const fsCache = createIntentFsCache()