list reports skills:0 on Windows + pnpm isolated, load works #297
Env: @tanstack/intent 0.4.0 (via pnpm dlx @tanstack/intent@latest), pnpm 11.21.0, node v24.1.0, Windows (win32, PowerShell), pnpm node-linker isolated (default, pnpm-workspace.yaml only sets allowBuilds).
Repro (pnpm project with @tanstack/* deps):
pnpm dlx @tanstack/intent@latest list --debug→packages: 9, skills: 0, warnings: 35, every packageskillCount: 0withSkipped unreadable or out-of-package skill metadata for "<pkg>".pnpm dlx @tanstack/intent@latest validate ./node_modules/@tanstack/react-start→Validated 3 skill files — all passed.pnpm dlx @tanstack/intent@latest load @tanstack/router-core#router-core→skill "router-core" was not foundwhile transitive-only; succeeds afterpnpm add @tanstack/router-core@latest(top-level symlink created, SKILL.md returned, exit 0).- After promoting all transitives (
router-core,start-client-core,start-server-core,virtual-file-routes,router-plugin,devtools,devtools-event-client) to direct deps, every explicitload <package>#<skill>succeeds (start-core,start-server-core,virtual-file-routes,router-plugin,devtools-app-setup,react-start,router-core), butlist --jsonstill reportsskills: [], allskillCount: 0.
Expected: list skillCount matches loadable skills.
Actual: list empty, load fast-path works.
Pointer (from source read): packages/intent/src/discovery/scanner.ts (~line 404) discoverSkills() → readSkillEntry() (realpathSync.native + isWithinOrEqual + open(O_NOFOLLOW) + fstat dev/ino identity + frontmatter parse) rejects all files on this setup; load goes through resolveSkillUseFastPath() (packages/intent/src/core/load-resolution.ts ~line 222, scanIntentPackageAtRoot with includeSkillMetadata: false + skillNameHint) which synthesizes {name: hint, path} without readSkillEntry() and only checks isResolvedPathInsidePackageRoot + readFileSync. Related: #153 (pnpm transitive missing), #113 (pnpm layout), also duplicate devtools-event-client 0.5.0 vs 0.4.4 present here (react-form→form-core→0.4.4, devtools→0.5.0) but all 9 packages fail, not just the conflicted one — so dedupe alone does not explain it. Looks Windows + pnpm-junction specific.
Workaround in use: promote transitive skill-bearers to direct deps and use explicit load <package>#<skill>; ignoring list counter.
Sign in to join this conversation.
Full
list --debugoutput and failingloaderror from the repro machine:Failing
load(whilerouter-corewas transitive-only):pnpm dlx @tanstack/intent@latest list --debug(exit 0, after promoting transitives to direct —liststill 0):(
(xN)counts summarize repeats of the identical line; full 35-warning listing captured from the run above.)