Part of the optional stretch in #8, deferred from #21 (v0.1.0-fork.1 release).
The session-audit CLI currently runs via pnpm analyze:session / pnpm analyze:sessions (tsx from devDependencies). External users should be able to npx the audit without cloning the Electron app.
Why it wasn't a quick add in #21
src/cli/analyzeSession.ts imports @main/services/discovery, @main/types, and @main/utils — a bin + files whitelist needs a CLI-only bundle built outside electron-vite, plus verification that no Electron-only imports leak into that bundle.
Что сделать
- CLI-only build step (bundle
src/cli/analyzeSession.ts + src/cli/sessionInventory.ts with their @main/@shared imports).
package.json → bin entry + files whitelist.
pnpm pack smoke test: install the tarball into a scratch directory and run the bin.
Acceptance
Part of the optional stretch in #8, deferred from #21 (v0.1.0-fork.1 release).
The session-audit CLI currently runs via
pnpm analyze:session/pnpm analyze:sessions(tsx from devDependencies). External users should be able tonpxthe audit without cloning the Electron app.Why it wasn't a quick add in #21
src/cli/analyzeSession.tsimports@main/services/discovery,@main/types, and@main/utils— abin+fileswhitelist needs a CLI-only bundle built outside electron-vite, plus verification that no Electron-only imports leak into that bundle.Что сделать
src/cli/analyzeSession.ts+src/cli/sessionInventory.tswith their@main/@sharedimports).package.json→binentry +fileswhitelist.pnpm packsmoke test: install the tarball into a scratch directory and run the bin.Acceptance
npxpath works from a scratch directory (same bar as the Releases: tags + CHANGELOG, optional npx bin #8 stretch)