|
| 1 | +--- |
| 2 | +name: annotation-data |
| 3 | +description: "Dataset annotation management — COCO labels, sequences, export, and Kaggle upload" |
| 4 | +version: 1.0.0 |
| 5 | +entry: scripts/annotation_manager.py |
| 6 | +deploy: deploy.sh |
| 7 | + |
| 8 | +parameters: |
| 9 | + - name: datasets_dir |
| 10 | + label: "Datasets Directory" |
| 11 | + type: string |
| 12 | + default: "" |
| 13 | + description: "Root directory for annotation datasets (auto-detected if empty)" |
| 14 | + group: Storage |
| 15 | + |
| 16 | +capabilities: |
| 17 | + live_transform: |
| 18 | + script: scripts/annotation_manager.py |
| 19 | + description: "Dataset CRUD, annotation save/load, COCO export" |
| 20 | + |
| 21 | +ui_unlocks: |
| 22 | + - annotation_studio |
| 23 | +--- |
| 24 | + |
| 25 | +# Annotation Data Management |
| 26 | + |
| 27 | +Manages annotation datasets for Aegis Annotation Studio. Handles dataset CRUD, label management, COCO-format export, and Kaggle upload. |
| 28 | + |
| 29 | +## Protocol (stdin/stdout JSONL) |
| 30 | + |
| 31 | +### Aegis → Skill |
| 32 | +```jsonl |
| 33 | +{"command": "list_datasets", "request_id": "req_001"} |
| 34 | +{"command": "get_dataset", "name": "my_dataset", "request_id": "req_002"} |
| 35 | +{"command": "save_dataset", "name": "my_dataset", "labels": [...], "request_id": "req_003"} |
| 36 | +{"command": "delete_dataset", "name": "my_dataset", "request_id": "req_004"} |
| 37 | +{"command": "save_annotation", "dataset": "my_dataset", "frame_id": "f1", "annotations": [...], "request_id": "req_005"} |
| 38 | +{"command": "list_labels", "dataset": "my_dataset", "request_id": "req_006"} |
| 39 | +{"command": "export_coco", "dataset": "my_dataset", "request_id": "req_007"} |
| 40 | +{"command": "get_stats", "dataset": "my_dataset", "request_id": "req_008"} |
| 41 | +{"command": "stop"} |
| 42 | +``` |
| 43 | + |
| 44 | +### Skill → Aegis |
| 45 | +```jsonl |
| 46 | +{"event": "annotation", "type": "ready", "request_id": "", "data": {"version": "1.0.0"}} |
| 47 | +{"event": "annotation", "type": "datasets", "request_id": "req_001", "data": [...]} |
| 48 | +{"event": "annotation", "type": "dataset", "request_id": "req_002", "data": {...}} |
| 49 | +{"event": "annotation", "type": "saved", "request_id": "req_005", "data": {"frame_id": "f1", "count": 3}} |
| 50 | +{"event": "annotation", "type": "exported", "request_id": "req_007", "data": {"path": "/path/to/coco.json"}} |
| 51 | +``` |
0 commit comments