mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
5f72770eff
Closes #1192. Two changes: 1. New `instagram collection-create <name>` adapter wraps `POST /api/v1/collections/create/` (multipart `name` + `module_name=collection_create`, X-IG-App-ID + X-CSRFToken). 2. `instagram saved` gains an optional `--collection <name>` flag. When set, the adapter resolves the name to a collection id via `/api/v1/collections/list/` (case-insensitive trim match) and then fetches `/api/v1/feed/collection/{id}/posts/`. Unknown names throw with the available list so callers can self-correct. Both verified end-to-end against a live IG account. Verify fixtures under ~/.opencli/sites/instagram/verify/ ship the patterns/notEmpty/mustBeTruthy guards from the latest adapter-author skill (success-rate-pitfalls §1, §4, §8).