Skip to content

CLI + named-corpus registry; bump to 0.1.0 - #15

Merged
thorwhalen merged 2 commits into
masterfrom
feature/ir-cli-registry
Jun 5, 2026
Merged

thorwhalen merged 2 commits into
masterfrom
feature/ir-cli-registry

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Makes ir usable as standing tools and fixes publishing.

CLI + registry (#13)

  • ir.registry — persistent named-corpus definitions in ~/.config/ir/corpora.json; presets skills/packages/reports/files; preset names auto-register.
  • ir.cli + ir.__main__ — argh-dispatched ir command, with a console_scripts entry point:
    ir build skills                 # build/update a preset corpus (MiniLM, cached)
    ir search skills "deploy app"   # query it
    ir ls                           # list corpora + record counts
    ir info packages                # config + stats
    ir register notes files --root ~/notes --pattern '.*\.md$'
    ir rm notes
    
  • Facade — ir.register, ir.corpora, ir.build_corpus.

Version → 0.1.0

PyPI already has ir 0.0.2–0.0.6, so the inherited 0.0.1 would collide on publish. Bumped to 0.1.0 to leapfrog. argh added as a dependency.

Tests

29 pass (5 new registry/CLI tests — hermetic, files-based, light embedder). Ruff clean. Closes #13; refs #1.

- registry: persistent named-corpus definitions (~/.config/ir/corpora.json)
  with presets skills/packages/reports/files; auto-registers presets.
- cli + __main__: argh-dispatched `ir` command (ls/register/build/search/
  info/rm); console_scripts entry point `ir = ir.__main__:main`.
- facade: ir.register / ir.corpora / ir.build_corpus.
- version 0.0.1 -> 0.1.0 (PyPI already has ir 0.0.2-0.0.6; 0.0.x would
  collide on publish).
- argh added as a dependency.

29 tests pass (registry/CLI hermetic, files-based). Closes #13. Refs #1.
@thorwhalen
thorwhalen merged commit 68c00b6 into master Jun 5, 2026
12 checks passed
@thorwhalen
thorwhalen deleted the feature/ir-cli-registry branch June 5, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI + facade + named-corpus registry

1 participant