Grouped help, shell polish, export/import-palace, JSON output, aurora theme - #46
Conversation
…output, aurora theme CLI design - Group `superton --help` into guided panels (Start here / Ingest & capture / Ask & explore / Palace management / Model & system) with an examples footer; add `-V` short version flag. - New fifth theme `aurora` (teal on black, `❖` glyph, own spinner and rule character). - Honor `NO_COLOR` plus a scoped `SUPERTON_NO_COLOR` override. Shell UX - Guard mistyped slash commands with a "did you mean /search?" nudge instead of forwarding typos to the model as chat; bare commands that need an argument print their usage line. - Grouped, themed `/help` cheatsheet replacing the one-line dump. - New `/list`, `/recent`, `/note <text>`, and `/why` (retrieval-trace toggle) commands; tab path completion for `/add` and `/refresh`. Features - `superton export [-o file]` writes every drawer as JSON Lines; `superton import-palace <file>` restores it idempotently (content-addressed ids dedupe on re-import). - `--json` output on list / search / sources / stats / recent / today. Fixes - doctor misreported uv installs as pip (resolved the interpreter symlink out of the tool venv before matching). - `superton add <url>` counted deduped chunks as new drawers. - ConfigError hint pointed at a config path that never existed. - Removed shadowing duplicate answer-context constants in shell.py. 262 tests passing (21 new) · ruff clean · mypy clean · docs updated. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0145446GXbqRfpA4NF5Tn89E
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (11)
📝 WalkthroughWalkthroughThis PR adds grouped CLI help panels with a ChangesSuperton CLI, shell, and theming updates
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant REPL
participant SuggestCommand
participant Answer
User->>REPL: types /lst (typo)
REPL->>REPL: check KNOWN_COMMANDS
REPL->>SuggestCommand: _suggest_command(head)
SuggestCommand-->>REPL: closest match "/list"
REPL-->>User: warn and suggest "/list"
User->>REPL: types plain question
REPL->>Answer: _answer(..., show_why=show_why)
Answer-->>User: search hit cards + streamed answer
sequenceDiagram
participant User
participant CLI
participant Palace
participant JSONLFile
User->>CLI: superton export -o palace.jsonl
CLI->>Palace: fetch drawers
Palace-->>CLI: drawer records
CLI->>JSONLFile: write JSON lines
User->>CLI: superton import-palace palace.jsonl
CLI->>JSONLFile: read lines
CLI->>CLI: parse and skip malformed lines
CLI->>Palace: add drawer (dedup by content)
Palace-->>CLI: added/deduped counts
CLI-->>User: import summary
Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What this changes
A full polish pass over the CLI design plus two roadmap features, with matching tests and docs.
CLI design
superton --help— commands are organized into guided panels (Start here / Ingest & capture / Ask & explore / Palace management / Model & system) with an examples footer, instead of one alphabetical dump. Added-Vas a short version flag.auroratheme — teal on black, northern-lights palette; fifth hand-tuned theme with its own❖prompt glyph, spinner, and rule character.NO_COLOR/SUPERTON_NO_COLOR— honors the no-color.org convention plus a scoped override for colorless-but-interactive terminals.Interactive shell
/serach,/them) were silently forwarded to the model as chat; they now get a "did you mean/search?" nudge. Bare commands that need an argument (/add) print their usage line./helpcheatsheet — a themed four-group command map replacing the old one-line dump, mirroring the grouped--helppanels./list(recent drawers),/recent(recently added sources),/note <text>(quick capture),/why(toggle a retrieval trace under answers)./addand/refresharguments (directories chain with a trailing slash; dotfiles hidden unless asked for).Features (from the project roadmap)
superton export [-o file]/superton import-palace <file>— every drawer round-trips as JSON Lines for backup, sync, or migration. Content-addressed ids make re-import idempotent (imported 0 drawers · 4 already present).--jsonoutput onlist,search,sources,stats,recent, andtoday— the Phase-3 "JSON output mode", landed early.Fixes
superton doctormisreported uv installs aspip: it resolved the interpreter symlink out of uv's tool venv before path-matching — the exact bugsuperton uninstallhad already fixed. Doctor now checkssys.prefix+ the raw executable.superton add <url>counted deduped chunks as newly ingested drawers.ConfigErrorrecovery hint pointed at~/.superton/config.toml, which was never the config location.ANSWER_CONTEXT_DRAWERS/ANSWER_DRAWER_CHARSconstants inshell.py.uv.lock(project version + prompt-toolkit pin).Validation
uv run pytest— 262 passed, 1 skipped (21 new tests: export/import round trips incl. cross-home migration, malformed-line handling, every--jsonflag, typo suggestions, path completion,SUPERTON_NO_COLORsubprocess check, aurora registration)uv run ruff check .— cleanuv run mypy superton— clean (strict core intact)uv build— wheel + sdist buildREADME and CHANGELOG updated to match.
🤖 Generated with Claude Code
https://claude.ai/code/session_0145446GXbqRfpA4NF5Tn89E
Generated by Claude Code
Summary by CodeRabbit
New Features
auroratheme and improved theme selection in the app and shell./why,/note,/recent,/list, and path completion.Bug Fixes