@topy-ai/maggie 0.7.35 → 0.7.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README-zh-TW.md +45 -2
  2. package/README.md +108 -4
  3. package/bin/maggie.js +76 -19
  4. package/bundled-contracts/maggie-seo/model-policy-v2.schema.json +29 -0
  5. package/bundled-contracts/maggie-service-booking/notification-lifecycle-v1.schema.json +29 -0
  6. package/bundled-contracts/maggiedash/README.md +3 -0
  7. package/bundled-contracts/maggiedash/booking-access-v1.json +29 -0
  8. package/bundled-contracts/maggiedash/booking-customer-surface-v1.json +46 -0
  9. package/bundled-contracts/maggiedash/booking-email-templates-v1.json +38 -0
  10. package/bundled-contracts/maggiedash/booking-host-adapter-v1.json +76 -0
  11. package/bundled-contracts/maggiedash/booking-ops-evidence-v1.json +19 -0
  12. package/bundled-contracts/maggiedash/execution-board.json +1886 -0
  13. package/bundled-contracts/maggiedash/stripe-booking-capabilities-v1.json +68 -0
  14. package/bundled-skills/README.md +1 -0
  15. package/bundled-skills/catalog.json +4 -0
  16. package/bundled-skills/maggie-blog-bootstrap/SKILL.md +6 -0
  17. package/bundled-skills/maggie-booking/SKILL.md +462 -0
  18. package/bundled-skills/maggie-design/SKILL.md +15 -0
  19. package/bundled-skills/maggie-seo-geo/SKILL.md +24 -2
  20. package/bundled-skills/maggie-service-booking/SKILL.md +19 -0
  21. package/bundled-templates/astro-blog/starter/README.md +4 -0
  22. package/bundled-templates/astro-blog/starter/src/styles/global.css +6 -0
  23. package/bundled-tools/clis/maggie.py +36 -2
  24. package/bundled-tools/clis/maggie_booking.py +1080 -0
  25. package/bundled-tools/clis/maggie_dash.py +181 -5
  26. package/bundled-tools/clis/maggie_release.py +24 -0
  27. package/bundled-tools/clis/maggie_service_booking.py +38 -2
  28. package/bundled-tools/clis/site_audit.py +114 -15
  29. package/bundled-tools/runtime/site_baseline.py +11 -1
  30. package/package.json +1 -1
@@ -0,0 +1,76 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://maggiedash.topy.ai/contracts/booking-host-adapter-v1.json",
4
+ "title": "MaggieDash Booking host adapter v1",
5
+ "schemaVersion": "maggiedash-booking-host-adapter.v1",
6
+ "apiPrefix": "/api/maggie/booking",
7
+ "auth": { "managerSession": "host-session-cookie", "emailPassword": true, "passkeys": false },
8
+ "requiredCapabilities": ["bookingOverview", "bookingCalendar", "bookingLifecycle", "customerLookup", "bookingWaitlist", "serviceCatalog", "locationSetup", "staffSetup", "resourceSetup", "paymentReconciliation", "bookingReports", "bookingSettings", "bookingAudit", "notificationOperations", "bookingAccess"],
9
+ "endpointIds": [
10
+ "booking.overview.read", "booking.reports.read", "booking.calendar.read", "booking.bookings.read", "booking.booking.read", "booking.booking.create", "booking.booking.transition", "booking.booking.reschedule", "booking.availability.read", "booking.holds.create", "booking.holds.release", "booking.customers.read", "booking.customer.read", "booking.waitlist.read", "booking.waitlist.update", "booking.catalog.read", "booking.catalog.write", "booking.locations.read", "booking.location.write", "booking.staff.read", "booking.staff.write", "booking.resources.read", "booking.resources.write", "booking.schedule.read", "booking.schedule.write", "booking.payments.read", "booking.payment.start", "booking.payment.reconcile", "booking.refund.start", "booking.notifications.read", "booking.notification.replay", "booking.health.read", "booking.payment-health.read", "booking.settings.read", "booking.settings.update", "booking.audit.read", "booking.events.read", "booking.runtime.read", "booking.provider.webhook"
11
+ ],
12
+ "canonicalRoutes": {
13
+ "booking.payment.start": "POST /payments/start.json",
14
+ "booking.refund.start": "POST /refunds.json",
15
+ "booking.notifications.read": "GET /notifications.json?status={status}",
16
+ "booking.notification.replay": "POST /notifications/{id}/replay.json",
17
+ "booking.payment-health.read": "GET /payment-health.json",
18
+ "booking.provider.webhook": "POST /webhooks/{provider}"
19
+ },
20
+ "serviceMethods": {
21
+ "booking.overview.read": "readOverview",
22
+ "booking.reports.read": "readReports",
23
+ "booking.calendar.read": "readCalendar",
24
+ "booking.bookings.read": "listBookings",
25
+ "booking.booking.read": "readBooking",
26
+ "booking.booking.create": "createBooking",
27
+ "booking.booking.transition": "transitionBooking",
28
+ "booking.booking.reschedule": "rescheduleBooking",
29
+ "booking.availability.read": "readAvailability",
30
+ "booking.holds.create": "createHold",
31
+ "booking.holds.release": "releaseHold",
32
+ "booking.customers.read": "listCustomers",
33
+ "booking.customer.read": "readCustomer",
34
+ "booking.waitlist.read": "listWaitlist",
35
+ "booking.waitlist.update": "updateWaitlist",
36
+ "booking.catalog.read": "readCatalog",
37
+ "booking.catalog.write": "updateCatalog",
38
+ "booking.locations.read": "listLocations",
39
+ "booking.location.write": "updateLocation",
40
+ "booking.staff.read": "listStaff",
41
+ "booking.staff.write": "updateStaff",
42
+ "booking.resources.read": "listResources",
43
+ "booking.resources.write": "updateResource",
44
+ "booking.schedule.read": "readSchedule",
45
+ "booking.schedule.write": "updateSchedule",
46
+ "booking.payments.read": "listPayments",
47
+ "booking.payment.start": "startPayment",
48
+ "booking.payment.reconcile": "reconcilePayment",
49
+ "booking.refund.start": "startRefund",
50
+ "booking.notifications.read": "listNotifications",
51
+ "booking.notification.replay": "replayNotification",
52
+ "booking.health.read": "readHealth",
53
+ "booking.payment-health.read": "readPaymentHealth",
54
+ "booking.settings.read": "readSettings",
55
+ "booking.settings.update": "updateSettings",
56
+ "booking.audit.read": "listAudit",
57
+ "booking.events.read": "listEvents",
58
+ "booking.runtime.read": "readRuntime",
59
+ "booking.provider.webhook": "handleWebhook"
60
+ },
61
+ "customerServiceMethods": [
62
+ "readPublicCatalog",
63
+ "readPublicAvailability",
64
+ "createCustomerHold",
65
+ "startCustomerCheckout",
66
+ "readCustomerPaymentReturn",
67
+ "readCustomerManage",
68
+ "cancelCustomerBooking",
69
+ "rescheduleCustomerBooking",
70
+ "joinCustomerWaitlist"
71
+ ],
72
+ "runtimeEvidence": {
73
+ "requiredFields": ["id", "method", "route", "status", "requiredFieldsPresent"],
74
+ "auth": ["session", "provider-webhook"]
75
+ }
76
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "schemaVersion": "maggiedash-booking-ops-evidence.v1",
3
+ "requiredChecks": ["backup_restore", "alert_routing", "recovery_rehearsal"],
4
+ "requiredAlertCodes": [
5
+ "worker.lock_contention",
6
+ "worker.job_failed",
7
+ "worker.stale",
8
+ "availability.stale",
9
+ "payments.reconciliation_lag",
10
+ "notifications.retrying",
11
+ "notifications.dead_letter"
12
+ ],
13
+ "requiredCheckFields": {
14
+ "backup_restore": ["status", "backupVerifiedAt", "restoreVerifiedAt", "rowCountVerified"],
15
+ "alert_routing": ["status", "alertCodes", "criticalDeliveryVerified"],
16
+ "recovery_rehearsal": ["status", "rollbackWriteGuardVerified", "workerRestartVerified", "outboxReplayVerified"]
17
+ },
18
+ "safeFields": ["schemaVersion", "generatedAt", "environment", "tenant", "checks", "backup_restore", "alert_routing", "recovery_rehearsal", "status", "backupVerifiedAt", "restoreVerifiedAt", "rowCountVerified", "alertCodes", "criticalDeliveryVerified", "rollbackWriteGuardVerified", "workerRestartVerified", "outboxReplayVerified"]
19
+ }