AppView in a box as a Vite plugin thing hatk.dev

fix: use triggerAutoBackfill for targeted resync, keep onResync for bulk

Single-repo resync now uses triggerAutoBackfill directly instead of
triggering a full network re-enumeration and process restart. Bulk
resync-all still uses onResync callback in production for memory
reclamation restart.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+7 -2
+1 -1
packages/hatk/package.json
··· 1 1 { 2 2 "name": "@hatk/hatk", 3 - "version": "0.0.1-alpha.36", 3 + "version": "0.0.1-alpha.37", 4 4 "license": "MIT", 5 5 "bin": { 6 6 "hatk": "dist/cli.js"
+6 -1
packages/hatk/src/server.ts
··· 586 586 } else { 587 587 repoList = await listActiveRepoDids() 588 588 } 589 + const isTargeted = Array.isArray(dids) && dids.length > 0 589 590 for (const did of repoList) { 590 591 await setRepoStatus(did, 'pending') 591 592 } 592 - if (config.onResync) { 593 + if (isTargeted) { 594 + for (const did of repoList) { 595 + triggerAutoBackfill(did) 596 + } 597 + } else if (config.onResync) { 593 598 config.onResync() 594 599 } else { 595 600 for (const did of repoList) {