13 Commits

Author SHA1 Message Date
Nicholas Ferguson 5844932692 chore(manpages): regenerate and register cortex-hooks.1 in pyproject
Output of `cortex dev manpages`. Surfaces two changes:

  1. cortex-tmux.1 picks up the new subcommands shipped in this
     branch (say, sessions, snapshot, rename) plus the --cwd flag
     on `tmux new` and pane-syntax targeting.
  2. cortex-hooks.1 was generated for the first time — the `hooks`
     subparser had been live in the CLI for a while but the manpage
     wasn't registered as a setuptools data-file, so users who
     installed via pip never got `man cortex-hooks`.

The other 17 manpages show date-stamp-only diffs; no content change.

`cortex dev validate-manpages` passes after the pyproject update.
2026-05-02 19:34:19 -04:00
Nicholas Ferguson 94bd04a31a refactor(cli): delete deprecated cortex review (use cortex suggest --review)
cortex review printed a deprecation notice on every invocation pointing
to cortex suggest --review, which has been the functional replacement.
Matches today's pattern (worktree, ai, file, dev validate).

Retained:
- claude_ctx_py/cmd_review.py — still imported by cmd_suggest.py:439
  for the cortex suggest --review code path
- cortex suggest --review with the same flags (--dry-run, --context)

Removed: parser block, handler, dispatch entry, orphaned cortex-review.1
manpage. Regenerated cortex.1 to reflect the shrunk surface.

Top-level surface: 19 -> 18.
2026-04-23 17:56:43 -04:00
Nicholas Ferguson fbd9e97f86 chore(docs): regenerate manpages for CLI changes
All 16 .1 files re-synced to match the new CLI shape:
- New subcommands: cortex notes, cortex docs --memories/--plans,
  cortex install aliases, cortex suggest --record-success,
  --ingest-review
- Removed subcommands: cortex worktree, ai, memory, plan, file,
  dev validate
- New manpage: cortex-completions.1 (previously missing)

Regenerated via: cortex dev manpages
Verified via: cortex dev validate-manpages
2026-04-23 17:56:43 -04:00
Nicholas Ferguson 806fffde6f chore(manpages): update generated date stamps 2026-03-27 05:44:41 -04:00
Nicholas Ferguson 8b9319375a docs(site): cut over GitHub Pages to targeted user docs 2026-03-23 23:31:44 -04:00
Nicholas Ferguson def8a73af3 feat(dev): add pre-release manpage validation command
Add 'cortex dev validate-manpages' command to validate that installed
manpages are current with CLI definitions. This ensures manpages don't
fall out of sync during development.

- Implements validate_manpages() function in dev_validate_manpages.py
- Compares generated manpages against stored files
- Returns exit code 0 if all current, 1 if any stale
- Integrates into CLI dev subcommands with --verbose and --docs-dir options
- Fixes path resolution in dev_manpages.py to use project root
- Regenerates manpages to match current CLI definitions

This addresses the need for pre-release validation before packaging
or deployment to ensure documentation stays synchronized with code.
2026-02-24 20:58:43 -05:00
Nicholas Ferguson b99aa76b42 chore: add code 2026-02-13 12:20:02 -05:00
Nicholas Ferguson 4938ac799f feat(cli): add first-run wizard for interactive setup
Adds a Rich-based wizard that auto-triggers when ~/.cortex doesn't
exist, guiding users through initial configuration including target
directory, shell completions, aliases, and rule symlinking.

- New wizard.py module with WizardConfig dataclass and 7-step flow
- --skip-wizard/--no-init flags and CORTEX_SKIP_WIZARD env var
- Auto-skips in non-interactive environments (CI, pipes)
- 16 unit tests covering detection, config, and error handling
2026-01-17 02:17:24 -05:00
Nicholas Ferguson 1a8aab044e feat(install): add bootstrap command to initialize ~/.cortex
- Add `cortex install bootstrap` command to copy bundled assets to ~/.cortex
- Creates rules/, flags/, modes/, templates/ directories
- Generates default cortex-config.json and FLAGS.md
- Copy plugins/ directory to bundled assets for packaging
- Update README with bootstrap instructions in installation flow

This fixes the issue where fresh package installs couldn't find assets
or generate configuration files.
2026-01-16 11:23:02 -05:00
Nicholas Ferguson fdd1490df2 feat(core): enhance CLI, TUI, and watch mode functionality
- Add documentation viewer command (cmd_docs.py)
- Enhance CLI with improved completions and subcommands
- Add messages module for user communication
- Improve hooks system in core with better event handling
- Enhance launcher with additional configuration options
- Add TUI screens for improved navigation
- Enhance hooks manager dialog
- Improve watch mode with better file monitoring
- Bundle documentation site for offline viewing
2026-01-15 17:02:54 -05:00
Nicholas Ferguson 0abe56e04a chore: bump version to 2.0.0 2026-01-07 19:21:37 -05:00
Nicholas Ferguson 6f07bb5b6b chore: rename claude-ctx to cortex 2026-01-07 19:21:19 -05:00
Nicholas Ferguson 82d7d0191e feat(install): add CLI post-install helpers 2026-01-07 19:20:22 -05:00