Skip to content

v0.6.1: Label Reorganize Support

Choose a tag to compare

@jacob-bd jacob-bd released this 28 Apr 04:46

What's New

Label Reorganize (nlm label reorganize)

When labels already exist in a notebook, you can now force AI re-categorization instead of being stuck with the original labels.

Two modes:

  • All sources — replaces all existing labels from scratch (requires --confirm / confirm=True)
  • Unlabeled sources only — labels sources not yet in any category, preserves existing labels

CLI:

nlm label reorganize <notebook-id>            # all sources, prompts for confirmation
nlm label reorganize <notebook-id> --unlabeled  # unlabeled sources only, no prompt
nlm label reorganize <notebook-id> --confirm    # all sources, skip prompt

MCP tool (label):

label(notebook_id="...", action="reorganize", confirm=True)          # all sources
label(notebook_id="...", action="reorganize", unlabeled_only=True)   # unlabeled only

Other Changes

  • Extract _require_notebook_id() helper to deduplicate service validation
  • Document both reorganize API modes in API_REFERENCE.md