# 2026-02-17 Session Notes

## Signet npm Package Publishing

Published `signetai` to npm (v0.1.0 → v0.1.11 through iterative fixes).

### Key Fixes Made
- **v0.1.2**: Fixed daemon path resolution for published package (dist/daemon.js)
- **v0.1.3**: Fixed bun detection (`spawnSync` not `spawn.sync`)
- **v0.1.4**: Replaced emojis with `[text]` icons, handle Ctrl+C gracefully
- **v0.1.5**: Added pip install for Python deps (PyYAML, zvec)
- **v0.1.6**: Auto-init memory schema in daemon, added remember/recall skills
- **v0.1.7**: Load existing config values as defaults when reconfiguring
- **v0.1.9**: Create venv at `~/.agents/.venv` for Python deps
- **v0.1.11**: Added .gitignore template (ignores .venv, .daemon, pycache)

### Known Issues
- Venv creation in setup sometimes fails silently (path resolution issue with templates)
- Daemon auto-update fails without sudo (npm global install permissions)
- Interactive menu may have UX issues (Nicholai reported "unusable")

### Architecture
- CLI: `packages/cli/` - Commander-based, bundled with bun targeting node
- Daemon: `packages/daemon/` - Hono HTTP server, bundled targeting bun (uses bun:sqlite)
- Package: `packages/signetai/` - Combined package with bin, dist, dashboard, templates

### Paths
- GitHub: `Signet-AI/signetai`
- NPM: `signetai`
- Local dev: `~/signet/signetai/`
- Daemon uses venv Python when available: `~/.agents/.venv/bin/python`

## Additional Fixes (v0.1.11-0.1.12)

- **v0.1.11**: Added `.gitignore` template (ignores .venv, .daemon, __pycache__, sqlite journals)
- **v0.1.12**: Fixed interactive menu UX - clears screen between iterations, adds "Press Enter to continue" after output actions

### Menu UX Issue
Nicholai reported the interactive `signet` menu was "unusable" - output from actions appeared above the re-rendered menu, making it hard to read. Fixed by:
1. `console.clear()` before each menu iteration
2. Re-showing the logo/status header
3. Adding `await input({ message: 'Press Enter...' })` after status/logs/restart

### Venv Issue Still Open
The setup still fails to create venv on Nicholai's laptop despite Python 3.14 being installed and `python -m venv` working manually. Need to debug template path resolution in bundled CLI.
