@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.
- package/README-zh-TW.md +2 -2
- package/README.md +76 -15
- package/bin/maggie.js +23 -6
- package/bundled-contracts/google-integrations/capability-report-v2.schema.json +2 -1
- package/bundled-contracts/maggie-content/email-localization-v1.schema.json +89 -0
- package/bundled-contracts/maggie-content/lifecycle-email-v1.schema.json +76 -0
- package/bundled-contracts/maggie-deployment/readiness-v1.schema.json +6 -1
- package/bundled-contracts/maggie-design/palette-roles-v1.schema.json +47 -0
- package/bundled-contracts/maggie-marketplace/template-content-v1.schema.json +103 -0
- package/bundled-contracts/maggie-ops/marketing-run-v1.schema.json +89 -0
- package/bundled-contracts/maggie-ops/notification-catalogue-example-v1.json +941 -0
- package/bundled-contracts/maggie-ops/notification-catalogue-v1.schema.json +273 -0
- package/bundled-contracts/maggie-service-booking/fact-provenance-v1.schema.json +128 -0
- package/bundled-contracts/maggie-service-booking/import-stages-v1.schema.json +191 -0
- package/bundled-contracts/maggiedash/booking-browser-evidence-v1.json +21 -0
- package/bundled-contracts/maggiedash/booking-browser-evidence-v2.json +191 -0
- package/bundled-contracts/maggiedash/booking-email-templates-v1.json +3 -1
- package/bundled-contracts/maggiedash/booking-voucher-lifecycle-v1.json +85 -0
- package/bundled-contracts/maggiedash/execution-board.json +4629 -1553
- package/bundled-contracts/maggiedash/stripe-booking-capabilities-v1.json +1 -0
- package/bundled-marketplace/README.md +17 -0
- package/bundled-marketplace/catalog.json +56 -7
- package/bundled-references/browser-inspection.md +25 -0
- package/bundled-references/google-integrations-runbook.md +54 -0
- package/bundled-references/maggiedash-booking/CURRENT-STATE.md +128 -10
- package/bundled-references/maggiedash-booking/EXECUTION-BOARD.json +4629 -1553
- package/bundled-references/maggiedash-booking/HOST-ADAPTER.md +5 -0
- package/bundled-references/maggiedash-booking/ORAWELLNESS-INTEGRATION-AUDIT.md +64 -21
- package/bundled-references/maggiedash-booking/PRD.md +9 -1
- package/bundled-references/maggiedash-booking/PROGRESS.md +244 -2399
- package/bundled-references/maggiedash-booking/QA-TEST-PLAN.md +37 -6
- package/bundled-references/maggiedash-booking/README.md +23 -6
- package/bundled-references/maggiedash-booking/RUNTIME-OPERATIONS.md +64 -8
- package/bundled-references/maggiedash-booking/SKILLS-AND-CLI.md +11 -2
- package/bundled-references/maggiedash-booking/STRIPE-INTEGRATION.md +66 -2
- package/bundled-references/maggiedash-booking/TASK-RUNBOOK.md +1 -1
- package/bundled-references/maggiedash-booking/TASKS.md +44 -3
- package/bundled-references/maggiedash-booking/VOUCHERS.md +47 -0
- package/bundled-references/provider-adapter-contract.md +33 -0
- package/bundled-skills/maggie-booking/SKILL.md +8 -0
- package/bundled-skills/maggie-clone-to-template/SKILL.md +26 -0
- package/bundled-skills/maggie-content-localization/SKILL.md +17 -1
- package/bundled-skills/maggie-content-localization/references/email-and-lifecycle.md +83 -0
- package/bundled-skills/maggie-deployment/SKILL.md +141 -7
- package/bundled-skills/maggie-deployment/references/vps.md +74 -1
- package/bundled-skills/maggie-design/SKILL.md +154 -0
- package/bundled-skills/maggie-feedback/SKILL.md +67 -1
- package/bundled-skills/maggie-marketplace/SKILL.md +91 -0
- package/bundled-skills/maggie-ops/SKILL.md +37 -0
- package/bundled-skills/maggie-ops/references/notifications-operations.md +154 -0
- package/bundled-skills/maggie-qa-workflow/SKILL.md +41 -1
- package/bundled-skills/maggie-service-booking/SKILL.md +82 -0
- package/bundled-skills/maggie-social-share/SKILL.md +56 -7
- package/bundled-skills/maggie-social-share/references/marketing-run.md +57 -0
- package/bundled-skills/maggie-social-share/references/queue-and-connections.md +152 -0
- package/bundled-skills/maggie-template/SKILL.md +57 -3
- package/bundled-skills/maggie-template/references/template-content-v1.example.json +34 -0
- package/bundled-tools/clis/maggie_booking.py +199 -26
- package/bundled-tools/clis/maggie_booking_vouchers.py +185 -0
- package/bundled-tools/clis/maggie_clone_to_template.py +14 -0
- package/bundled-tools/clis/maggie_deployment.py +307 -18
- package/bundled-tools/clis/maggie_deployment_auth_canary.py +216 -0
- package/bundled-tools/clis/maggie_deployment_collect.py +225 -0
- package/bundled-tools/clis/maggie_deployment_readiness.py +53 -3
- package/bundled-tools/clis/maggie_design.py +17 -0
- package/bundled-tools/clis/maggie_design_lint.py +277 -0
- package/bundled-tools/clis/maggie_design_verify.py +359 -0
- package/bundled-tools/clis/maggie_docs.py +82 -4
- package/bundled-tools/clis/maggie_email_localization.py +382 -0
- package/bundled-tools/clis/maggie_feedback.py +115 -5
- package/bundled-tools/clis/maggie_icon_glyph_check.py +382 -0
- package/bundled-tools/clis/maggie_icon_release_gate.py +28 -1
- package/bundled-tools/clis/maggie_localization.py +5 -0
- package/bundled-tools/clis/maggie_marketing_run.py +272 -0
- package/bundled-tools/clis/maggie_marketplace.py +199 -5
- package/bundled-tools/clis/maggie_notifications.py +528 -0
- package/bundled-tools/clis/maggie_ops.py +87 -0
- package/bundled-tools/clis/maggie_palette.py +280 -0
- package/bundled-tools/clis/maggie_qa_workflow.py +156 -1
- package/bundled-tools/clis/maggie_schedule.py +12 -2
- package/bundled-tools/clis/maggie_service_import.py +520 -0
- package/bundled-tools/clis/maggie_social_queue.py +442 -0
- package/bundled-tools/clis/maggie_social_share.py +46 -9
- package/bundled-tools/clis/maggie_template_package.py +1141 -0
- package/bundled-tools/runtime/google_ads.py +306 -0
- package/bundled-tools/runtime/google_capabilities.py +18 -2
- package/bundled-tools/runtime/google_remediation.py +152 -0
- package/package.json +1 -1
- package/references/browser-inspection.md +25 -0
- package/references/google-integrations-runbook.md +54 -0
- 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
|
+
}
|