@topy-ai/maggie 0.7.47 → 0.7.49

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 (91) hide show
  1. package/README-zh-TW.md +2 -2
  2. package/README.md +76 -15
  3. package/bin/maggie.js +23 -6
  4. package/bundled-contracts/google-integrations/capability-report-v2.schema.json +2 -1
  5. package/bundled-contracts/maggie-content/email-localization-v1.schema.json +89 -0
  6. package/bundled-contracts/maggie-content/lifecycle-email-v1.schema.json +76 -0
  7. package/bundled-contracts/maggie-deployment/readiness-v1.schema.json +6 -1
  8. package/bundled-contracts/maggie-design/palette-roles-v1.schema.json +47 -0
  9. package/bundled-contracts/maggie-marketplace/template-content-v1.schema.json +103 -0
  10. package/bundled-contracts/maggie-ops/marketing-run-v1.schema.json +89 -0
  11. package/bundled-contracts/maggie-ops/notification-catalogue-example-v1.json +941 -0
  12. package/bundled-contracts/maggie-ops/notification-catalogue-v1.schema.json +273 -0
  13. package/bundled-contracts/maggie-service-booking/fact-provenance-v1.schema.json +128 -0
  14. package/bundled-contracts/maggie-service-booking/import-stages-v1.schema.json +191 -0
  15. package/bundled-contracts/maggiedash/booking-browser-evidence-v1.json +21 -0
  16. package/bundled-contracts/maggiedash/booking-browser-evidence-v2.json +191 -0
  17. package/bundled-contracts/maggiedash/booking-email-templates-v1.json +3 -1
  18. package/bundled-contracts/maggiedash/booking-voucher-lifecycle-v1.json +85 -0
  19. package/bundled-contracts/maggiedash/execution-board.json +4629 -1553
  20. package/bundled-contracts/maggiedash/stripe-booking-capabilities-v1.json +1 -0
  21. package/bundled-marketplace/README.md +17 -0
  22. package/bundled-marketplace/catalog.json +56 -7
  23. package/bundled-references/browser-inspection.md +25 -0
  24. package/bundled-references/google-integrations-runbook.md +54 -0
  25. package/bundled-references/maggiedash-booking/CURRENT-STATE.md +128 -10
  26. package/bundled-references/maggiedash-booking/EXECUTION-BOARD.json +4629 -1553
  27. package/bundled-references/maggiedash-booking/HOST-ADAPTER.md +5 -0
  28. package/bundled-references/maggiedash-booking/ORAWELLNESS-INTEGRATION-AUDIT.md +64 -21
  29. package/bundled-references/maggiedash-booking/PRD.md +9 -1
  30. package/bundled-references/maggiedash-booking/PROGRESS.md +244 -2399
  31. package/bundled-references/maggiedash-booking/QA-TEST-PLAN.md +37 -6
  32. package/bundled-references/maggiedash-booking/README.md +23 -6
  33. package/bundled-references/maggiedash-booking/RUNTIME-OPERATIONS.md +64 -8
  34. package/bundled-references/maggiedash-booking/SKILLS-AND-CLI.md +11 -2
  35. package/bundled-references/maggiedash-booking/STRIPE-INTEGRATION.md +66 -2
  36. package/bundled-references/maggiedash-booking/TASK-RUNBOOK.md +1 -1
  37. package/bundled-references/maggiedash-booking/TASKS.md +44 -3
  38. package/bundled-references/maggiedash-booking/VOUCHERS.md +47 -0
  39. package/bundled-references/provider-adapter-contract.md +33 -0
  40. package/bundled-skills/maggie-booking/SKILL.md +8 -0
  41. package/bundled-skills/maggie-clone-to-template/SKILL.md +26 -0
  42. package/bundled-skills/maggie-content-localization/SKILL.md +17 -1
  43. package/bundled-skills/maggie-content-localization/references/email-and-lifecycle.md +83 -0
  44. package/bundled-skills/maggie-deployment/SKILL.md +141 -7
  45. package/bundled-skills/maggie-deployment/references/vps.md +74 -1
  46. package/bundled-skills/maggie-design/SKILL.md +154 -0
  47. package/bundled-skills/maggie-feedback/SKILL.md +67 -1
  48. package/bundled-skills/maggie-marketplace/SKILL.md +91 -0
  49. package/bundled-skills/maggie-ops/SKILL.md +37 -0
  50. package/bundled-skills/maggie-ops/references/notifications-operations.md +154 -0
  51. package/bundled-skills/maggie-qa-workflow/SKILL.md +41 -1
  52. package/bundled-skills/maggie-service-booking/SKILL.md +82 -0
  53. package/bundled-skills/maggie-social-share/SKILL.md +56 -7
  54. package/bundled-skills/maggie-social-share/references/marketing-run.md +57 -0
  55. package/bundled-skills/maggie-social-share/references/queue-and-connections.md +152 -0
  56. package/bundled-skills/maggie-template/SKILL.md +57 -3
  57. package/bundled-skills/maggie-template/references/template-content-v1.example.json +34 -0
  58. package/bundled-tools/clis/maggie_booking.py +199 -26
  59. package/bundled-tools/clis/maggie_booking_vouchers.py +185 -0
  60. package/bundled-tools/clis/maggie_clone_to_template.py +14 -0
  61. package/bundled-tools/clis/maggie_deployment.py +307 -18
  62. package/bundled-tools/clis/maggie_deployment_auth_canary.py +216 -0
  63. package/bundled-tools/clis/maggie_deployment_collect.py +225 -0
  64. package/bundled-tools/clis/maggie_deployment_readiness.py +53 -3
  65. package/bundled-tools/clis/maggie_design.py +17 -0
  66. package/bundled-tools/clis/maggie_design_lint.py +277 -0
  67. package/bundled-tools/clis/maggie_design_verify.py +359 -0
  68. package/bundled-tools/clis/maggie_docs.py +82 -4
  69. package/bundled-tools/clis/maggie_email_localization.py +382 -0
  70. package/bundled-tools/clis/maggie_feedback.py +115 -5
  71. package/bundled-tools/clis/maggie_icon_glyph_check.py +382 -0
  72. package/bundled-tools/clis/maggie_icon_release_gate.py +28 -1
  73. package/bundled-tools/clis/maggie_localization.py +5 -0
  74. package/bundled-tools/clis/maggie_marketing_run.py +272 -0
  75. package/bundled-tools/clis/maggie_marketplace.py +199 -5
  76. package/bundled-tools/clis/maggie_notifications.py +528 -0
  77. package/bundled-tools/clis/maggie_ops.py +87 -0
  78. package/bundled-tools/clis/maggie_palette.py +280 -0
  79. package/bundled-tools/clis/maggie_qa_workflow.py +156 -1
  80. package/bundled-tools/clis/maggie_schedule.py +12 -2
  81. package/bundled-tools/clis/maggie_service_import.py +520 -0
  82. package/bundled-tools/clis/maggie_social_queue.py +442 -0
  83. package/bundled-tools/clis/maggie_social_share.py +46 -9
  84. package/bundled-tools/clis/maggie_template_package.py +1141 -0
  85. package/bundled-tools/runtime/google_ads.py +306 -0
  86. package/bundled-tools/runtime/google_capabilities.py +18 -2
  87. package/bundled-tools/runtime/google_remediation.py +152 -0
  88. package/package.json +1 -1
  89. package/references/browser-inspection.md +25 -0
  90. package/references/google-integrations-runbook.md +54 -0
  91. package/references/provider-adapter-contract.md +33 -0
@@ -0,0 +1,89 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://maggie.topy.ai/contracts/maggie-ops/marketing-run-v1.schema.json",
4
+ "title": "Maggie marketing run",
5
+ "description": "One project-scoped run joining content, Social Share, Ads, and measurement. References evidence, approvals, mutations and readbacks by ID; never contains secrets or provider payloads. Validated by tools/clis/maggie_marketing_run.py, which also enforces cross-field rules (approval before external mutation, readback for succeeded mutations, regulated-content review gating only external publication, no secret fields).",
6
+ "type": "object",
7
+ "required": ["schemaVersion", "runId", "projectRef", "objective", "conversion", "channels", "timezone", "mode", "approval", "scheduleLayers"],
8
+ "not": {"anyOf": [{"required": ["scheduled_at"]}, {"required": ["scheduledAt"]}]},
9
+ "properties": {
10
+ "schemaVersion": {"const": "maggie-marketing-run-v1"},
11
+ "runId": {"type": "string", "pattern": "^[a-z0-9][a-z0-9._-]{2,127}$"},
12
+ "projectRef": {"type": "string", "minLength": 1},
13
+ "objective": {"type": "string", "minLength": 1},
14
+ "conversion": {
15
+ "type": "object",
16
+ "required": ["event", "source"],
17
+ "properties": {"event": {"type": "string"}, "source": {"type": "string"}}
18
+ },
19
+ "channels": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}},
20
+ "timezone": {"type": "string", "description": "IANA time zone for the run."},
21
+ "mode": {"enum": ["draft", "scheduled", "executing", "completed", "cancelled"]},
22
+ "sourceRevisions": {
23
+ "type": "array",
24
+ "items": {"type": "object", "required": ["sourceId", "revision"], "properties": {"sourceId": {"type": "string"}, "revision": {"type": "string"}}}
25
+ },
26
+ "capabilityEvidence": {"type": "array", "items": {"type": "string", "minLength": 1}},
27
+ "approval": {
28
+ "type": "object",
29
+ "required": ["state"],
30
+ "properties": {
31
+ "state": {"enum": ["pending", "approved", "rejected", "not_required"]},
32
+ "actor": {"type": ["string", "null"]},
33
+ "approvalId": {"type": ["string", "null"]}
34
+ }
35
+ },
36
+ "scheduleLayers": {"type": "array", "minItems": 1, "items": {"$ref": "#/$defs/scheduleLayer"}},
37
+ "mutations": {"type": "array", "items": {"$ref": "#/$defs/mutation"}},
38
+ "readbacks": {
39
+ "type": "array",
40
+ "items": {"type": "object", "required": ["readbackId"], "properties": {"readbackId": {"type": "string"}, "mutationRef": {"type": "string"}, "evidenceRef": {"type": "string"}}}
41
+ },
42
+ "policy": {
43
+ "type": "object",
44
+ "description": "Regulated-content review. Default off. When on, only external publication waits for an approved review; delivery, drafts, SEO/GEO and measurement continue.",
45
+ "properties": {
46
+ "regulatedContent": {"type": "boolean", "default": false},
47
+ "reviewRequired": {"type": "boolean", "default": true},
48
+ "reviewState": {"enum": ["not_required", "pending", "approved", "rejected"]},
49
+ "reviewerRef": {"type": "string"}
50
+ }
51
+ },
52
+ "stages": {
53
+ "type": "object",
54
+ "propertyNames": {"enum": ["delivery", "draft", "seo_geo", "measurement", "external_publication"]},
55
+ "additionalProperties": {"type": "object", "properties": {"status": {"type": "string"}, "reason": {"type": "string"}}}
56
+ },
57
+ "measurement": {"type": "object"}
58
+ },
59
+ "$defs": {
60
+ "scheduleLayer": {
61
+ "type": "object",
62
+ "required": ["layer", "timezone", "owner", "status", "reconciliation"],
63
+ "properties": {
64
+ "layer": {"enum": ["infrastructure", "content_calendar", "campaign_flight", "measurement_window"]},
65
+ "id": {"type": "string"},
66
+ "timezone": {"type": "string"},
67
+ "owner": {"type": "string", "minLength": 1},
68
+ "status": {"enum": ["planned", "active", "paused", "completed", "cancelled"]},
69
+ "start": {"type": "string"},
70
+ "end": {"type": "string"},
71
+ "lagDays": {"type": "integer", "minimum": 0},
72
+ "scheduleRef": {"type": "string", "description": "infrastructure only: the maggie-schedule job name."},
73
+ "reconciliation": {"type": "string", "minLength": 1, "description": "How this layer's actual state is read back and reconciled."}
74
+ }
75
+ },
76
+ "mutation": {
77
+ "type": "object",
78
+ "required": ["mutationId", "kind", "status"],
79
+ "properties": {
80
+ "mutationId": {"type": "string"},
81
+ "kind": {"enum": ["external_publication", "ads_change", "content_delivery", "draft_creation", "configuration"]},
82
+ "channel": {"type": "string"},
83
+ "status": {"enum": ["planned", "pending", "succeeded", "failed", "cancelled"]},
84
+ "idempotencyKey": {"type": "string"},
85
+ "approvalRef": {"type": "string"}
86
+ }
87
+ }
88
+ }
89
+ }