Files
magicseek__nblm/scripts/source_manager.py
Deheng Huang 2d5d47673e feat(upload): replace interactive prompt with CLI flags
Problem: AI agents run scripts non-interactively, so input() gets EOF.

Solution: Add explicit CLI flags for notebook selection:
- --use-active: Upload to currently active notebook
- --create-new: Create new notebook named after the file
- --notebook-id: Upload to specific notebook (existing)

The AI agent should ask the user BEFORE running the script, then
pass the appropriate flag. Script now exits with clear error
message if no target is specified.

Updated SKILL.md to instruct agents to ask user first.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-26 18:51:22 +08:00

12 KiB