Download api/tool_groups/websites.py from fsanyoto/loopable: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/spaces/fsanyoto/loopable/resolve/9291c0100f4e7b8da2efcbbf1ebdea72ee1663e7/api/tool_groups/websites.py
- Command line
-
hf download hf://spaces/fsanyoto/loopable@9291c0100f4e7b8da2efcbbf1ebdea72ee1663e7/api/tool_groups/websites.py
-
curl -L -o websites.py https://huggingface.co/spaces/fsanyoto/loopable/resolve/9291c0100f4e7b8da2efcbbf1ebdea72ee1663e7/api/tool_groups/websites.py
1.28 kB
| """Expose the genuine website read and a preview-only internal-note handler.""" | |
| import website_tools | |
| GROUP = { | |
| "name": "websites", "title": "Websites", | |
| "guide": "Read today's confirmed Royal Imports sales orders with action list_confirmed_orders_today. " | |
| "This read requires a Royal Imports administrator with unrestricted sales-order access. " | |
| "It includes Fisch and Royal orders and excludes GIFTWARE DEALS. " | |
| "Action add_internal_note previews one exact plain note on an order from today's read. " | |
| "Only a person's signed MCP confirmation can start its deferred write mint. " | |
| "Unknown note outcomes must not be retried.", | |
| "actions": { | |
| "list_confirmed_orders_today": { | |
| "read": True, "destructive": False, "confirm": False, | |
| "schema": {"type": "object", "properties": {}, "additionalProperties": False}, | |
| "handler": website_tools.list_confirmed_orders_today, | |
| }, | |
| "add_internal_note": { | |
| "read": False, "destructive": False, "confirm": True, | |
| "schema": website_tools.NOTE_SCHEMA, | |
| "handler": website_tools.plan_internal_note, | |
| "receipt_access": website_tools.note_receipt_access, | |
| }, | |
| }, | |
| } | |