Skip to content
Source
Sign inSign up
TanStack/intent

list reports skills:0 on Windows + pnpm isolated, load works #297

ClosedVikaskumargd(GitHub profile, opens in a new tab) opened this issue 1 comment

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):

  1. pnpm dlx @tanstack/intent@latest list --debug → packages: 9, skills: 0, warnings: 35, every package skillCount: 0 with Skipped unreadable or out-of-package skill metadata for "<pkg>".
  2. pnpm dlx @tanstack/intent@latest validate ./node_modules/@tanstack/react-start → Validated 3 skill files — all passed.
  3. pnpm dlx @tanstack/intent@latest load @tanstack/router-core#router-core → skill "router-core" was not found while transitive-only; succeeds after pnpm add @tanstack/router-core@latest (top-level symlink created, SKILL.md returned, exit 0).
  4. 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 explicit load <package>#<skill> succeeds (start-core, start-server-core, virtual-file-routes, router-plugin, devtools-app-setup, react-start, router-core), but list --json still reports skills: [], all skillCount: 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.

  1. Full list --debug output and failing load error from the repro machine:

    Failing load (while router-core was transitive-only):

    Cannot resolve skill use "@tanstack/router-core#router-core": skill "router-core" was not found in package "@tanstack/router-core".

    pnpm dlx @tanstack/intent@latest list --debug (exit 0, after promoting transitives to direct — list still 0):

    Debug: intent list
      cwd: C:\Users\vikas\OneDrive\Documents\Projects\Roovrs\web-app
      scope: local
      excludes: (none)
      packages: 9
      skills: 0
      warnings: 35
      notices: 1
      conflicts: 1
      packageJsonReadCount: 416
      packageJsonCacheHits: 12
    
    9 intent-enabled packages, 0 skills
    
    PACKAGE                          SOURCE  VERSION   SKILLS
    ───────────────────────────────────────────────────────────
    @tanstack/devtools               local   0.15.0    0
    @tanstack/devtools-event-client  local   0.5.0     0
    @tanstack/devtools-vite          local   0.8.5     0
    @tanstack/react-start            local   1.168.58  0
    @tanstack/router-core            local   1.171.32  0
    @tanstack/router-plugin          local   1.168.40  0
    @tanstack/start-client-core      local   1.170.32  0
    @tanstack/start-server-core      local   1.169.37  0
    @tanstack/virtual-file-routes    local   1.162.0   0
    
    Version conflicts:
    
      @tanstack/devtools-event-client -> using 0.5.0
        chosen: C:\Users\vikas\OneDrive\Documents\Projects\Roovrs\web-app\node_modules\@tanstack\devtools-event-client
        also found: 0.4.4 at C:\Users\vikas\OneDrive\Documents\Projects\Roovrs\web-app\node_modules\.pnpm\@tanstack+devtools-event-client@0.4.4\node_modules\@tanstack\devtools-event-client
    
    
    Skills:
    
      @tanstack/devtools
    
      @tanstack/devtools-event-client
    
      @tanstack/devtools-vite
    
      @tanstack/react-start
    
      @tanstack/router-core
    
      @tanstack/router-plugin
    
      @tanstack/start-client-core
    
      @tanstack/start-server-core
    
      @tanstack/virtual-file-routes
    
    Warnings:
      ⚠ Skipped unreadable or out-of-package skill metadata for "@tanstack/devtools". (x4)
      ⚠ Skipped unreadable or out-of-package skill metadata for "@tanstack/devtools-event-client". (x3+3, both before and after conflict note)
      ⚠ Skipped unreadable or out-of-package skill metadata for "@tanstack/devtools-vite". (x1)
      ⚠ Skipped unreadable or out-of-package skill metadata for "@tanstack/react-start". (x3)
      ⚠ Skipped unreadable or out-of-package skill metadata for "@tanstack/router-core". (x10)
      ⚠ Skipped unreadable or out-of-package skill metadata for "@tanstack/router-plugin". (x1)
      ⚠ Skipped unreadable or out-of-package skill metadata for "@tanstack/start-client-core". (x7)
      ⚠ Skipped unreadable or out-of-package skill metadata for "@tanstack/start-server-core". (x1)
      ⚠ Skipped unreadable or out-of-package skill metadata for "@tanstack/virtual-file-routes". (x1)
      ⚠ Found 2 installed variants of @tanstack/devtools-event-client across 2 versions (0.5.0 at C:\Users\vikas\OneDrive\Documents\Projects\Roovrs\web-app\node_modules\@tanstack\devtools-event-client, 0.4.4 at C:\Users\vikas\OneDrive\Documents\Projects\Roovrs\web-app\node_modules\.pnpm\@tanstack+devtools-event-client@0.4.4\node_modules\@tanstack\devtools-event-client). Using 0.5.0 from C:\Users\vikas\OneDrive\Documents\Projects\Roovrs\web-app\node_modules\@tanstack\devtools-event-client.
    Notices:
      ℹ 1 discovered package ships skills but is not listed in intent.skills: dotenv. Add to opt in.

    ((xN) counts summarize repeats of the identical line; full 35-warning listing captured from the run above.)

Sign in to join this conversation.