Add new bit.ly links to the tracking database. Use when user asks to add a bit.ly link, register a bitly shortlink, or save a new short URL to the database.
Add new bit.ly links to the database file.
$ARGUMENTS
Parse the input in any format - extract the essential information:
#anchor, split it outRead current database from _resources/bitly_links.json
IMPORTANT: Analyze existing entries in the database to understand the format patterns for all fields (URL format, description style, etc.). New entries MUST follow the same format as similar existing entries.
Parse user input intelligently - it may be in any format (list, free text, etc.)
For each link found:
https://bit.ly/... format#anchor, split into expected_url + expected_anchorAdd new links to the end of the links array (keep 2-space indentation)
Save updated JSON
Show summary table of added links
Remind user to run /tests-prod-test-bitly-links to verify