Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 1,281 Bytes
8cbc29f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | """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,
},
},
}
|