@nextcommerce/campaigns-os 1.33.0
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/AGENTS.md +204 -0
- package/CHANGELOG.md +5002 -0
- package/CONTEXT.md +685 -0
- package/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +368 -0
- package/agents/claude/CLAUDE.md +32 -0
- package/agents/codex/AGENTS.md +27 -0
- package/agents/copilot/copilot-instructions.md +14 -0
- package/agents/cursor/campaigns-os.mdc +13 -0
- package/bin/campaigns-os.mjs +38 -0
- package/campaign-spec/README.md +138 -0
- package/campaign-spec/dist/analytics-vocabulary.d.ts +47 -0
- package/campaign-spec/dist/analytics-vocabulary.js +74 -0
- package/campaign-spec/dist/index.d.ts +40 -0
- package/campaign-spec/dist/index.js +77 -0
- package/campaign-spec/dist/normalize.d.ts +22 -0
- package/campaign-spec/dist/normalize.js +41 -0
- package/campaign-spec/dist/routing.d.ts +190 -0
- package/campaign-spec/dist/routing.js +263 -0
- package/campaign-spec/dist/rules/analytics-contract-shape.d.ts +42 -0
- package/campaign-spec/dist/rules/analytics-contract-shape.js +303 -0
- package/campaign-spec/dist/rules/assembly-hints-shape.d.ts +42 -0
- package/campaign-spec/dist/rules/assembly-hints-shape.js +191 -0
- package/campaign-spec/dist/rules/campaign-metadata.d.ts +14 -0
- package/campaign-spec/dist/rules/campaign-metadata.js +40 -0
- package/campaign-spec/dist/rules/checkout-has-success-url.d.ts +31 -0
- package/campaign-spec/dist/rules/checkout-has-success-url.js +66 -0
- package/campaign-spec/dist/rules/cycle-detection.d.ts +12 -0
- package/campaign-spec/dist/rules/cycle-detection.js +141 -0
- package/campaign-spec/dist/rules/design-source-shape.d.ts +29 -0
- package/campaign-spec/dist/rules/design-source-shape.js +142 -0
- package/campaign-spec/dist/rules/downsell-without-upsell.d.ts +11 -0
- package/campaign-spec/dist/rules/downsell-without-upsell.js +40 -0
- package/campaign-spec/dist/rules/exit-intent-validation.d.ts +23 -0
- package/campaign-spec/dist/rules/exit-intent-validation.js +147 -0
- package/campaign-spec/dist/rules/funnel-count.d.ts +9 -0
- package/campaign-spec/dist/rules/funnel-count.js +37 -0
- package/campaign-spec/dist/rules/funnel-hypothesis-length.d.ts +22 -0
- package/campaign-spec/dist/rules/funnel-hypothesis-length.js +60 -0
- package/campaign-spec/dist/rules/funnel-identity.d.ts +15 -0
- package/campaign-spec/dist/rules/funnel-identity.js +57 -0
- package/campaign-spec/dist/rules/funnel-weight-sum.d.ts +20 -0
- package/campaign-spec/dist/rules/funnel-weight-sum.js +66 -0
- package/campaign-spec/dist/rules/index.d.ts +69 -0
- package/campaign-spec/dist/rules/index.js +131 -0
- package/campaign-spec/dist/rules/offer-ref-integrity.d.ts +13 -0
- package/campaign-spec/dist/rules/offer-ref-integrity.js +59 -0
- package/campaign-spec/dist/rules/package-pricing-sanity.d.ts +12 -0
- package/campaign-spec/dist/rules/package-pricing-sanity.js +42 -0
- package/campaign-spec/dist/rules/page-count.d.ts +11 -0
- package/campaign-spec/dist/rules/page-count.js +31 -0
- package/campaign-spec/dist/rules/page-id-uniqueness.d.ts +14 -0
- package/campaign-spec/dist/rules/page-id-uniqueness.js +47 -0
- package/campaign-spec/dist/rules/promo-code-input-validation.d.ts +8 -0
- package/campaign-spec/dist/rules/promo-code-input-validation.js +126 -0
- package/campaign-spec/dist/rules/promo-codes-shape.d.ts +30 -0
- package/campaign-spec/dist/rules/promo-codes-shape.js +187 -0
- package/campaign-spec/dist/rules/route-field-ignored-for-page-type.d.ts +33 -0
- package/campaign-spec/dist/rules/route-field-ignored-for-page-type.js +81 -0
- package/campaign-spec/dist/rules/route-target-resolves.d.ts +32 -0
- package/campaign-spec/dist/rules/route-target-resolves.js +112 -0
- package/campaign-spec/dist/rules/schema-version.d.ts +21 -0
- package/campaign-spec/dist/rules/schema-version.js +53 -0
- package/campaign-spec/dist/rules/sdk-version.d.ts +26 -0
- package/campaign-spec/dist/rules/sdk-version.js +96 -0
- package/campaign-spec/dist/rules/shipping-countries-shape.d.ts +10 -0
- package/campaign-spec/dist/rules/shipping-countries-shape.js +30 -0
- package/campaign-spec/dist/rules/shipping-methods-present.d.ts +10 -0
- package/campaign-spec/dist/rules/shipping-methods-present.js +26 -0
- package/campaign-spec/dist/rules/store-profile-shape.d.ts +30 -0
- package/campaign-spec/dist/rules/store-profile-shape.js +127 -0
- package/campaign-spec/dist/rules/thank-you-requirement.d.ts +16 -0
- package/campaign-spec/dist/rules/thank-you-requirement.js +50 -0
- package/campaign-spec/dist/rules/unknown-top-level-fields.d.ts +28 -0
- package/campaign-spec/dist/rules/unknown-top-level-fields.js +114 -0
- package/campaign-spec/dist/rules/upsell-has-packages.d.ts +9 -0
- package/campaign-spec/dist/rules/upsell-has-packages.js +35 -0
- package/campaign-spec/dist/rules/upsell-routing-complete.d.ts +10 -0
- package/campaign-spec/dist/rules/upsell-routing-complete.js +45 -0
- package/campaign-spec/dist/rules/upsell-without-checkout.d.ts +11 -0
- package/campaign-spec/dist/rules/upsell-without-checkout.js +44 -0
- package/campaign-spec/dist/rules/variant-labels-shape.d.ts +28 -0
- package/campaign-spec/dist/rules/variant-labels-shape.js +86 -0
- package/campaign-spec/dist/sdk-version-parse.d.ts +43 -0
- package/campaign-spec/dist/sdk-version-parse.js +62 -0
- package/campaign-spec/dist/types.d.ts +674 -0
- package/campaign-spec/dist/types.js +40 -0
- package/campaign-spec/package.json +12 -0
- package/compatibility.json +25 -0
- package/contracts/agent-relevant-change-policy.v1.json +111 -0
- package/contracts/brand-theme-source-defaults.figma-sections-export.v0.json +32 -0
- package/contracts/brand-theme-target-tokens.next-core.v0.json +65 -0
- package/contracts/campaign-cart-checkout-field-contract.v0.json +45 -0
- package/contracts/campaign-cart-sdk-support-policy.v0.json +11 -0
- package/contracts/commerce-surface-catalog.json +2452 -0
- package/contracts/fixtures/orientation/canonicalization/v1.json +34 -0
- package/contracts/fixtures/orientation/envelope/current.json +95 -0
- package/contracts/fixtures/orientation/envelope/freshness_unknown.json +97 -0
- package/contracts/fixtures/orientation/envelope/legacy_baseline.json +95 -0
- package/contracts/fixtures/orientation/envelope/orientation_available.json +136 -0
- package/contracts/fixtures/orientation/envelope/recovered_interrupted_update.json +136 -0
- package/contracts/fixtures/orientation/envelope/refused.json +100 -0
- package/contracts/fixtures/orientation/envelope/restart_required.json +137 -0
- package/contracts/fixtures/orientation/envelope/updated.json +135 -0
- package/contracts/fixtures/orientation/hostile-target/README.md +61 -0
- package/contracts/fixtures/orientation/hostile-target/manifest.json +82 -0
- package/contracts/fixtures/orientation/hostile-target/repo/CHANGELOG.md +18 -0
- package/contracts/fixtures/orientation/hostile-target/repo/bin/intended.mjs +12 -0
- package/contracts/fixtures/orientation/hostile-target/repo/bin/tripwire.mjs +15 -0
- package/contracts/fixtures/orientation/hostile-target/repo/contracts/release-ledger.json +48 -0
- package/contracts/fixtures/orientation/hostile-target/repo/contracts/supported-surface.json +17 -0
- package/contracts/fixtures/orientation/hostile-target/repo/docs/example-contract.md +13 -0
- package/contracts/fixtures/orientation/hostile-target/repo/hooks/post-checkout +5 -0
- package/contracts/fixtures/orientation/hostile-target/repo/hooks/post-merge +5 -0
- package/contracts/fixtures/orientation/hostile-target/repo/hooks/pre-commit +5 -0
- package/contracts/fixtures/orientation/hostile-target/repo/hostile-dependency-tripwire/package.json +15 -0
- package/contracts/fixtures/orientation/hostile-target/repo/hostile-dependency-tripwire/tripwire.mjs +9 -0
- package/contracts/fixtures/orientation/hostile-target/repo/package.json +20 -0
- package/contracts/fixtures/orientation/hostile-target/repo/schemas/example.v0.schema.json +15 -0
- package/contracts/fixtures/orientation/release-gate/cases.json +1073 -0
- package/contracts/fixtures/runtime-recipe/accept/current.json +299 -0
- package/contracts/fixtures/runtime-recipe/accept/minimal.json +294 -0
- package/contracts/fixtures/runtime-recipe/dist-states.json +51 -0
- package/contracts/fixtures/runtime-recipe/manifest.json +85 -0
- package/contracts/fixtures/runtime-recipe/reject/advisory-enforcement.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/allowlist-without-hosts.json +297 -0
- package/contracts/fixtures/runtime-recipe/reject/committed-output-claim.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/engines-disagreement-warns.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/lifecycle-scripts-enabled.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/missing-required-field.json +251 -0
- package/contracts/fixtures/runtime-recipe/reject/unknown-kind.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/unknown-network-policy.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/unknown-output-check.json +310 -0
- package/contracts/fixtures/runtime-recipe/reject/unknown-revision.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/unknown-step-id.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/unperformable-check-skipped.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/unpinned-lockfile.json +299 -0
- package/contracts/fixtures/sidecar-bundle/production-shaped/.campaign-runtime/assembly-report.json +180 -0
- package/contracts/fixtures/sidecar-bundle/production-shaped/.campaign-runtime/build-context.json +115 -0
- package/contracts/fixtures/sidecar-bundle/production-shaped/.campaign-runtime/doctor-output.json +29 -0
- package/contracts/fixtures/sidecar-bundle/production-shaped/.campaign-runtime/qa-verdict.json +27 -0
- package/contracts/fixtures/sidecar-bundle/production-shaped/campaign-runtime.build.json +141 -0
- package/contracts/migration-sidecar-bundle.v0.json +149 -0
- package/contracts/orientation-limits.v1.json +41 -0
- package/contracts/orientation-reason-codes.v1.json +196 -0
- package/contracts/private-template-sources.json +8 -0
- package/contracts/release-ledger.json +4598 -0
- package/contracts/reserved-skill-names.json +13 -0
- package/contracts/runtime-recipe.campaigns-os-node-v1.json +299 -0
- package/contracts/supported-surface.json +180 -0
- package/contracts/template-brand-contract.apollo-mv-single-step.v0.json +27 -0
- package/contracts/template-brand-contract.apollo.v0.json +27 -0
- package/contracts/template-brand-contract.demeter.v0.json +27 -0
- package/contracts/template-brand-contract.olympus-mv-single-step.v0.json +27 -0
- package/contracts/template-brand-contract.olympus-mv-two-step.v0.json +28 -0
- package/contracts/template-brand-contract.olympus.v0.json +27 -0
- package/contracts/template-brand-contract.shared-commerce.v0.json +190 -0
- package/contracts/template-brand-contract.shop-single-step.v0.json +27 -0
- package/contracts/template-brand-contract.shop-three-step.v0.json +29 -0
- package/contracts/template-slot-manifest.apollo-mv-single-step.v0.json +14 -0
- package/contracts/template-slot-manifest.apollo.v0.json +12 -0
- package/contracts/template-slot-manifest.demeter.v0.json +30 -0
- package/contracts/template-slot-manifest.olympus-mv-single-step.v0.json +14 -0
- package/contracts/template-slot-manifest.olympus-mv-two-step.v0.json +15 -0
- package/contracts/template-slot-manifest.olympus.v0.json +12 -0
- package/contracts/template-slot-manifest.shared-content-core.v0.json +4254 -0
- package/contracts/template-slot-manifest.shop-single-step.v0.json +47 -0
- package/contracts/template-slot-manifest.shop-three-step.v0.json +33 -0
- package/docs/brand-theme-bridge.md +159 -0
- package/docs/build-packet.md +1300 -0
- package/docs/campaign-build-brief.md +145 -0
- package/docs/campaign-standardization-report.md +329 -0
- package/docs/campaigns-os-build-flow.md +117 -0
- package/docs/design-source-package.md +784 -0
- package/docs/legacy-migration.md +58 -0
- package/docs/migration-sidecar-bundle.md +139 -0
- package/docs/orientation-contract-reference.md +1220 -0
- package/docs/polish-evidence.md +502 -0
- package/docs/qa-and-test-orders.md +1691 -0
- package/docs/release-ledger-authoring-guide.md +274 -0
- package/docs/runtime-readiness.md +211 -0
- package/docs/supported-surface.md +83 -0
- package/docs/versioning.md +55 -0
- package/docs/workflow-findings-sidecar.md +588 -0
- package/package.json +135 -0
- package/prompts/first-build.md +27 -0
- package/prompts/friction-log.md +30 -0
- package/schemas/campaign-build-brief.v1.schema.json +149 -0
- package/schemas/campaign-design-source-package.v0.schema.json +697 -0
- package/schemas/campaign-runtime-assembly-report.v0.schema.json +390 -0
- package/schemas/campaign-runtime-build-context.v0.schema.json +339 -0
- package/schemas/campaign-runtime-build-packet.v0.schema.json +452 -0
- package/schemas/campaign-spec.v4.schema.json +582 -0
- package/schemas/campaigns-os-doctor-output.v0.schema.json +43 -0
- package/schemas/campaigns-os-legacy-migration-inventory.v0.schema.json +112 -0
- package/schemas/campaigns-os-legacy-provisioning-plan.v0.schema.json +38 -0
- package/schemas/campaigns-os-legacy-provisioning-receipt.v0.schema.json +57 -0
- package/schemas/campaigns-os-qa-verdict-sidecar.v0.schema.json +150 -0
- package/schemas/campaigns-os-qa-verdict.v0.schema.json +438 -0
- package/schemas/campaigns-os-release-ledger.v1.schema.json +162 -0
- package/schemas/campaigns-os-run-record.v0.schema.json +343 -0
- package/schemas/campaigns-os-runtime-recipe.v1.schema.json +313 -0
- package/schemas/campaigns-os-sidecar-bundle-conformance.v0.schema.json +78 -0
- package/schemas/campaigns-os-tooling-orientation.v1.schema.json +381 -0
- package/schemas/campaigns-os-workflow-finding.v0.schema.json +134 -0
- package/schemas/source-html-manifest.v0.schema.json +252 -0
- package/skills/next-campaigns-build/SKILL.md +73 -0
- package/skills/next-campaigns-os/SKILL.md +101 -0
- package/skills/next-campaigns-os/references/session-intake.md +160 -0
- package/skills/next-campaigns-os-setup/SKILL.md +22 -0
- package/skills/next-campaigns-polish/SKILL.md +145 -0
- package/skills/next-campaigns-qa/SKILL.md +92 -0
- package/skills.json +56 -0
- package/skills.sh +64 -0
- package/src/adapter-decision-contract.mjs +333 -0
- package/src/brand-theme.mjs +1151 -0
- package/src/browser-launch.mjs +79 -0
- package/src/build-brief.mjs +781 -0
- package/src/built-site-scope.mjs +312 -0
- package/src/campaign-ecosystem.mjs +734 -0
- package/src/campaign-identity.mjs +405 -0
- package/src/campaign-workspace.mjs +127 -0
- package/src/checkpoint-waiver.mjs +302 -0
- package/src/cli.mjs +13442 -0
- package/src/commercial-journey.mjs +1119 -0
- package/src/commercial-parity.mjs +965 -0
- package/src/consent.mjs +347 -0
- package/src/content-residue.mjs +322 -0
- package/src/deadline.mjs +81 -0
- package/src/design-source-package.mjs +2604 -0
- package/src/deviation.mjs +107 -0
- package/src/doctor-check-registry.mjs +49 -0
- package/src/doctor-sidecar.mjs +106 -0
- package/src/finding-cause.mjs +557 -0
- package/src/findings.mjs +326 -0
- package/src/fs-identity.mjs +68 -0
- package/src/gate-actions.mjs +105 -0
- package/src/html-scan.mjs +53 -0
- package/src/install-mode.mjs +272 -0
- package/src/legacy-migration.d.ts +128 -0
- package/src/legacy-migration.mjs +510 -0
- package/src/lifecycle.mjs +338 -0
- package/src/local-proof.mjs +401 -0
- package/src/map-pin-writeback.mjs +210 -0
- package/src/orchestration-stage-contract.mjs +81 -0
- package/src/package-install-fixture.mjs +33 -0
- package/src/page-kit-build-summary.mjs +175 -0
- package/src/page-kit-campaign-config.mjs +57 -0
- package/src/page-kit-sdk-version.mjs +392 -0
- package/src/page-kit-store-profile.mjs +369 -0
- package/src/page-kit-sync.mjs +162 -0
- package/src/polish-browser.mjs +867 -0
- package/src/polish-capture.mjs +1094 -0
- package/src/polish-deadline.mjs +51 -0
- package/src/polish-gate.mjs +739 -0
- package/src/polish-node.mjs +639 -0
- package/src/polish-page-load.mjs +1100 -0
- package/src/private-template-source.mjs +237 -0
- package/src/proof-policy.mjs +82 -0
- package/src/qa-analytics-correctness.mjs +307 -0
- package/src/qa-analytics-errors.mjs +38 -0
- package/src/qa-analytics-parity.mjs +699 -0
- package/src/qa-binding-evidence.mjs +140 -0
- package/src/qa-browser.mjs +6608 -0
- package/src/qa-cart-entry.mjs +406 -0
- package/src/qa-commercial-parity.mjs +641 -0
- package/src/qa-node.mjs +3620 -0
- package/src/qa-order-bump.mjs +381 -0
- package/src/qa-parity-capture.mjs +428 -0
- package/src/qa-parity-fixture.mjs +359 -0
- package/src/qa-publish.mjs +362 -0
- package/src/qa-purchase-data-layer.mjs +263 -0
- package/src/qa-route-probe.mjs +272 -0
- package/src/qa-sidecar.mjs +188 -0
- package/src/qa-test-order-topology.mjs +207 -0
- package/src/qa-url-privacy.mjs +13 -0
- package/src/qa-verdict-discovery.mjs +192 -0
- package/src/qa-verdict-publish.mjs +105 -0
- package/src/qa-verdict.mjs +287 -0
- package/src/remit.mjs +388 -0
- package/src/repo-scan.mjs +83 -0
- package/src/route-identity.mjs +133 -0
- package/src/run-record-closeout.mjs +229 -0
- package/src/run-record.mjs +839 -0
- package/src/run-session.mjs +226 -0
- package/src/runtime-state-ignore.mjs +113 -0
- package/src/sdk-attribute-index.mjs +212 -0
- package/src/sdk-markup.mjs +358 -0
- package/src/sdk-meta-tags.mjs +52 -0
- package/src/shell-token.mjs +7 -0
- package/src/sidecar-bundle.mjs +399 -0
- package/src/source-asset-crawl.mjs +469 -0
- package/src/source-html-intake.mjs +627 -0
- package/src/source-html-manifest.mjs +276 -0
- package/src/source-prep.mjs +284 -0
- package/src/spec-derive-store.mjs +431 -0
- package/src/spec-derive.mjs +514 -0
- package/src/spec-fetch.mjs +66 -0
- package/src/spec-hash.mjs +48 -0
- package/src/spec-identity.mjs +27 -0
- package/src/stage-ledger.mjs +509 -0
- package/src/standardization-report.mjs +1297 -0
- package/src/template-brand-contract.mjs +473 -0
- package/src/template-freshness.mjs +196 -0
- package/src/template-reference.mjs +81 -0
- package/src/template-slot-manifest.mjs +150 -0
- package/src/text-safety.mjs +62 -0
- package/src/theme-gate.mjs +185 -0
- package/src/upsell-selector-scope.mjs +299 -0
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://nextcommerce.com/schemas/campaign-runtime-build-packet.v0.schema.json",
|
|
4
|
+
"title": "Campaigns OS Build Packet v0",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "campaign", "spec", "source_html", "assembly", "deploy", "qa"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {
|
|
10
|
+
"const": "campaign-runtime-build-packet/v0"
|
|
11
|
+
},
|
|
12
|
+
"generated_at": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "date-time",
|
|
15
|
+
"description": "UTC instant this packet was generated by prepare-build, ISO-8601 with a Z suffix. Optional for packets generated before it existed; always stamped on new packets. Downstream freshness (campaigns-agent readback staleness and multi-packet selection) reads this field, never file mtime."
|
|
16
|
+
},
|
|
17
|
+
"campaign": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": ["public_route_slug", "allowed_domains_confirmed"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"public_route_slug": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"description": "Shopper-facing route slug, e.g. theduo-v3. It is often the same as the campaign directory, but the packet keeps them explicit. Always required as campaign identity, even for root-served campaigns (see route_root)."
|
|
26
|
+
},
|
|
27
|
+
"route_root": {
|
|
28
|
+
"type": ["string", "null"],
|
|
29
|
+
"pattern": "^/(?:[A-Za-z0-9._-]+/)?$",
|
|
30
|
+
"description": "Public route root the campaign is served under. \"/\" declares a root-served campaign: pages live at site-root paths (/checkout-v2, /receipt) with no slug prefix, so routing metas and public routes are validated against the site root. Defaults to \"/<public_route_slug>/\" when absent; when present and not \"/\", it must equal \"/<public_route_slug>/\". Built output still lives at _site/<public_route_slug>/ either way — route_root describes the SERVED path shape, not the build directory."
|
|
31
|
+
},
|
|
32
|
+
"campaign_directory": {
|
|
33
|
+
"type": ["string", "null"],
|
|
34
|
+
"description": "Directory name inside the target repo for assembled campaign files, e.g. theduo-v3."
|
|
35
|
+
},
|
|
36
|
+
"live_url_path": {
|
|
37
|
+
"type": ["string", "null"],
|
|
38
|
+
"description": "Expected deployed path for this campaign, e.g. /theduo-v3/."
|
|
39
|
+
},
|
|
40
|
+
"campaigns_app_url": {
|
|
41
|
+
"type": ["string", "null"]
|
|
42
|
+
},
|
|
43
|
+
"api_key_source": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Optional fallback source, usually env:<VAR>, when the local CampaignSpec does not carry campaign.campaigns_api_key."
|
|
46
|
+
},
|
|
47
|
+
"api_key": {
|
|
48
|
+
"type": ["string", "null"],
|
|
49
|
+
"description": "Legacy direct/local value. Prefer campaigns_api_key or the local CampaignSpec campaign.campaigns_api_key."
|
|
50
|
+
},
|
|
51
|
+
"campaigns_api_key": {
|
|
52
|
+
"type": ["string", "null"],
|
|
53
|
+
"description": "Direct/local Campaigns API key. Campaigns API keys are public-facing and domain-allowlisted; shared examples may still prefer spec or env sourcing."
|
|
54
|
+
},
|
|
55
|
+
"allowed_domains_confirmed": {
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"spec": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"required": ["map_id"],
|
|
64
|
+
"properties": {
|
|
65
|
+
"map_id": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"minLength": 1,
|
|
68
|
+
"description": "Saved Map Builder identity used for reopen, /api/spec/<map-id>, QA verdicts, and provenance."
|
|
69
|
+
},
|
|
70
|
+
"spec_url": {
|
|
71
|
+
"type": ["string", "null"]
|
|
72
|
+
},
|
|
73
|
+
"local_path": {
|
|
74
|
+
"type": ["string", "null"]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"anyOf": [
|
|
78
|
+
{ "required": ["spec_url"] },
|
|
79
|
+
{ "required": ["local_path"] }
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"design_source_package": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"required": ["path", "schema_version", "sha256", "material_fingerprint"],
|
|
86
|
+
"properties": {
|
|
87
|
+
"path": { "type": "string", "minLength": 1 },
|
|
88
|
+
"schema_version": { "const": "campaign-design-source-package/v0" },
|
|
89
|
+
"sha256": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
90
|
+
"material_fingerprint": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
|
|
91
|
+
},
|
|
92
|
+
"description": "Packet-relative reference to the normalized Design Source Package. sha256 hashes the exact artifact bytes; material_fingerprint drives freshness gates."
|
|
93
|
+
},
|
|
94
|
+
"source_html": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"required": ["root", "pages"],
|
|
98
|
+
"properties": {
|
|
99
|
+
"root": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"minLength": 1
|
|
102
|
+
},
|
|
103
|
+
"pages": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"minItems": 1,
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"required": ["page_id"],
|
|
110
|
+
"properties": {
|
|
111
|
+
"page_id": { "type": "string", "minLength": 1 },
|
|
112
|
+
"path": { "type": "string", "minLength": 1 },
|
|
113
|
+
"page_type": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 1,
|
|
116
|
+
"description": "Producer or CampaignSpec page type. This may use richer authoring vocabulary than the Page Kit runtime projection in page_kit.page_type."
|
|
117
|
+
},
|
|
118
|
+
"upsell_template_pattern": { "type": "string", "minLength": 1 },
|
|
119
|
+
"upsell_mv_tiers": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"additionalProperties": false,
|
|
122
|
+
"required": ["min", "max"],
|
|
123
|
+
"properties": {
|
|
124
|
+
"min": { "type": "integer", "minimum": 1 },
|
|
125
|
+
"max": { "type": "integer", "minimum": 1 }
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"variant_labels": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"additionalProperties": false,
|
|
131
|
+
"required": ["primary"],
|
|
132
|
+
"properties": {
|
|
133
|
+
"primary": { "type": "string", "minLength": 1 },
|
|
134
|
+
"secondary": { "type": "string", "minLength": 1 }
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"source_hash": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
140
|
+
"description": "Optional sha256 of the source HTML file at the time the manifest was written. Doctor compares this to the on-disk file's actual hash and warns on mismatch (Slice 6 drift detection)."
|
|
141
|
+
},
|
|
142
|
+
"page_kit": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"required": ["target_path", "output_path", "public_route", "spec_route", "page_type", "permalink_required", "frontmatter"],
|
|
146
|
+
"properties": {
|
|
147
|
+
"target_path": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"minLength": 1,
|
|
150
|
+
"description": "Target page file relative to assembly.output_dir. This is the Page Kit target shape; it is distinct from source_html.pages[].path, which remains producer/source provenance."
|
|
151
|
+
},
|
|
152
|
+
"output_path": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"minLength": 1,
|
|
155
|
+
"description": "Target page file relative to assembly.target_repo."
|
|
156
|
+
},
|
|
157
|
+
"public_route": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"minLength": 1,
|
|
160
|
+
"description": "Rendered campaign-rooted public route Page Kit should produce for this page."
|
|
161
|
+
},
|
|
162
|
+
"spec_route": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"description": "CampaignSpec route after removing the public campaign slug, when present."
|
|
165
|
+
},
|
|
166
|
+
"page_type": {
|
|
167
|
+
"enum": ["product", "checkout", "upsell", "receipt"],
|
|
168
|
+
"description": "Page Kit runtime/analytics page_type. Preserve richer CampaignSpec or producer page types in source metadata instead."
|
|
169
|
+
},
|
|
170
|
+
"permalink_required": {
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"default": false,
|
|
173
|
+
"description": "True when Page Kit's default filename route would not match public_route and frontmatter.permalink should be written."
|
|
174
|
+
},
|
|
175
|
+
"frontmatter": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"additionalProperties": false,
|
|
178
|
+
"required": ["page_type"],
|
|
179
|
+
"properties": {
|
|
180
|
+
"page_type": {
|
|
181
|
+
"enum": ["product", "checkout", "upsell", "receipt"],
|
|
182
|
+
"description": "Page Kit runtime/analytics page_type. This is authoritative for generated frontmatter and may differ from source_html.pages[].page_type."
|
|
183
|
+
},
|
|
184
|
+
"permalink": { "type": "string", "minLength": 1 },
|
|
185
|
+
"next_url": { "type": "string", "minLength": 1 },
|
|
186
|
+
"decline_url": { "type": "string", "minLength": 1 }
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"allOf": [
|
|
191
|
+
{
|
|
192
|
+
"if": {
|
|
193
|
+
"properties": { "permalink_required": { "const": true } },
|
|
194
|
+
"required": ["permalink_required"]
|
|
195
|
+
},
|
|
196
|
+
"then": {
|
|
197
|
+
"properties": {
|
|
198
|
+
"frontmatter": {
|
|
199
|
+
"required": ["permalink"]
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
"skip_reason": { "type": "string", "minLength": 1 },
|
|
207
|
+
"notes": { "type": ["string", "null"] }
|
|
208
|
+
},
|
|
209
|
+
"anyOf": [
|
|
210
|
+
{ "required": ["path"] },
|
|
211
|
+
{ "required": ["skip_reason"] }
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"adapter_contract": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": true,
|
|
218
|
+
"required": [
|
|
219
|
+
"raw_html_conversion_status",
|
|
220
|
+
"source_asset_strategy",
|
|
221
|
+
"commerce_shell_adoption",
|
|
222
|
+
"route_rewrite_policy",
|
|
223
|
+
"template_files_copied",
|
|
224
|
+
"config_script_strategy",
|
|
225
|
+
"wrapper_policy",
|
|
226
|
+
"frontmatter_policy",
|
|
227
|
+
"script_style_reference_policy",
|
|
228
|
+
"cta_rewrite_policy",
|
|
229
|
+
"layout_choice"
|
|
230
|
+
],
|
|
231
|
+
"properties": {
|
|
232
|
+
"raw_html_conversion_status": { "enum": ["pending", "in_progress", "completed", "not_required", "blocked"] },
|
|
233
|
+
"source_asset_strategy": { "enum": ["pagekit_campaign_asset_root", "external_cdn", "raw_passthrough", "not_applicable", "unknown"] },
|
|
234
|
+
"commerce_shell_adoption": { "enum": ["not_required", "template_clone_first_required", "template_clone_first_verified", "sdk_surfaces_preserved", "custom_html_experimental"] },
|
|
235
|
+
"route_rewrite_policy": { "enum": ["campaignspec_routes_via_campaign_link", "pagekit_public_routes", "raw_passthrough", "not_applicable", "unknown"] },
|
|
236
|
+
"config_script_strategy": { "enum": ["campaign_asset", "frontmatter_script", "inline", "not_required", "unknown"] },
|
|
237
|
+
"wrapper_policy": { "enum": ["strip_document_wrappers", "preserve_document_wrappers", "not_required", "unknown"] },
|
|
238
|
+
"frontmatter_policy": { "enum": ["pagekit_yaml_frontmatter", "raw_passthrough", "not_required", "unknown"] },
|
|
239
|
+
"script_style_reference_policy": { "enum": ["frontmatter_or_campaign_asset", "frontmatter", "campaign_asset", "inline", "raw_passthrough", "not_required", "unknown"] },
|
|
240
|
+
"cta_rewrite_policy": { "enum": ["campaignspec_routes_via_campaign_link", "pagekit_public_routes", "raw_passthrough", "not_applicable", "unknown"] },
|
|
241
|
+
"layout_choice": { "enum": ["campaign_layout", "page_layout", "raw_passthrough", "not_applicable", "unknown"] },
|
|
242
|
+
"template_files_copied": {
|
|
243
|
+
"type": "object",
|
|
244
|
+
"additionalProperties": true,
|
|
245
|
+
"required": ["status", "required_groups", "groups", "paths"],
|
|
246
|
+
"properties": {
|
|
247
|
+
"status": { "enum": ["pending", "complete", "verified_existing_slice", "partial", "not_applicable"] },
|
|
248
|
+
"required_groups": {
|
|
249
|
+
"type": "array",
|
|
250
|
+
"items": { "type": "string" }
|
|
251
|
+
},
|
|
252
|
+
"groups": {
|
|
253
|
+
"type": "array",
|
|
254
|
+
"items": { "type": "string" }
|
|
255
|
+
},
|
|
256
|
+
"paths": {
|
|
257
|
+
"type": "array",
|
|
258
|
+
"items": { "type": "string" }
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"description": "Prepared HTML -> page-kit conversion contract scoped to source_html because it describes how producer/source HTML must be converted. Build Context and Assembly Report mirror this as adapter_decisions and should move pending values to completed/verified once wrapper stripping, frontmatter, asset moves, CTA/routes, commerce shell, and template dependency copying are settled."
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"build_brief": {
|
|
268
|
+
"type": "object",
|
|
269
|
+
"additionalProperties": true,
|
|
270
|
+
"required": ["schema_version", "mode", "status", "normalized_path", "question_count", "gate_count"],
|
|
271
|
+
"properties": {
|
|
272
|
+
"schema_version": { "const": "campaigns-os-build-brief/v1" },
|
|
273
|
+
"mode": { "enum": ["prepared", "guided_draft"] },
|
|
274
|
+
"status": { "enum": ["complete", "needs_answers", "invalid"] },
|
|
275
|
+
"input_path": { "type": ["string", "null"] },
|
|
276
|
+
"normalized_path": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"minLength": 1,
|
|
279
|
+
"description": "Packet-relative path to .campaign-runtime/input/campaign-build-brief.normalized.json."
|
|
280
|
+
},
|
|
281
|
+
"question_count": { "type": "integer", "minimum": 0 },
|
|
282
|
+
"gate_count": { "type": "integer", "minimum": 0 }
|
|
283
|
+
},
|
|
284
|
+
"allOf": [
|
|
285
|
+
{
|
|
286
|
+
"if": {
|
|
287
|
+
"properties": { "status": { "const": "needs_answers" } },
|
|
288
|
+
"required": ["status"]
|
|
289
|
+
},
|
|
290
|
+
"then": {
|
|
291
|
+
"anyOf": [
|
|
292
|
+
{
|
|
293
|
+
"properties": {
|
|
294
|
+
"question_count": { "type": "integer", "minimum": 1 }
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"properties": {
|
|
299
|
+
"gate_count": { "type": "integer", "minimum": 1 }
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"description": "Durable Campaign Build Brief reference. CampaignSpec remains operational truth; this brief is merchandising/design presentation truth."
|
|
307
|
+
},
|
|
308
|
+
"assembly": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"additionalProperties": false,
|
|
311
|
+
"required": ["implementation", "target_repo", "output_dir", "template_family"],
|
|
312
|
+
"properties": {
|
|
313
|
+
"implementation": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"minLength": 1,
|
|
316
|
+
"default": "next-campaigns-build"
|
|
317
|
+
},
|
|
318
|
+
"target_repo": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"minLength": 1
|
|
321
|
+
},
|
|
322
|
+
"output_dir": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"minLength": 1
|
|
325
|
+
},
|
|
326
|
+
"template_family": {
|
|
327
|
+
"enum": [
|
|
328
|
+
"undecided",
|
|
329
|
+
"olympus",
|
|
330
|
+
"limos",
|
|
331
|
+
"demeter",
|
|
332
|
+
"olympus-mv-single-step",
|
|
333
|
+
"olympus-mv-two-step",
|
|
334
|
+
"shop-single-step",
|
|
335
|
+
"shop-three-step",
|
|
336
|
+
"custom"
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
"template_decision_notes": {
|
|
340
|
+
"type": ["string", "null"]
|
|
341
|
+
},
|
|
342
|
+
"template_lock": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"additionalProperties": false,
|
|
345
|
+
"required": ["locked"],
|
|
346
|
+
"properties": {
|
|
347
|
+
"locked": {
|
|
348
|
+
"type": "boolean",
|
|
349
|
+
"description": "True only after an explicit operator/spec-confirmed template-family decision. A confidence score alone is not enough to lock commerce surfaces."
|
|
350
|
+
},
|
|
351
|
+
"locked_by": {
|
|
352
|
+
"type": ["string", "null"],
|
|
353
|
+
"description": "Who or what locked the family, e.g. operator_flag, operator_ack, spec_hint_ack."
|
|
354
|
+
},
|
|
355
|
+
"confidence": {
|
|
356
|
+
"enum": ["none", "low", "medium", "high"]
|
|
357
|
+
},
|
|
358
|
+
"evidence": {
|
|
359
|
+
"type": "array",
|
|
360
|
+
"items": { "type": "string" }
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"template_certification": {
|
|
365
|
+
"oneOf": [
|
|
366
|
+
{ "type": "null" },
|
|
367
|
+
{
|
|
368
|
+
"type": "object",
|
|
369
|
+
"additionalProperties": false,
|
|
370
|
+
"required": ["certified"],
|
|
371
|
+
"properties": {
|
|
372
|
+
"certified": { "type": "boolean" },
|
|
373
|
+
"waiver": {
|
|
374
|
+
"type": "object",
|
|
375
|
+
"additionalProperties": false,
|
|
376
|
+
"required": ["reason", "waived_by", "waived_at"],
|
|
377
|
+
"properties": {
|
|
378
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
379
|
+
"waived_by": { "type": "string", "minLength": 1 },
|
|
380
|
+
"waived_at": { "type": "string", "minLength": 1 }
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
"commerce_catalog": {
|
|
388
|
+
"type": "object",
|
|
389
|
+
"additionalProperties": false,
|
|
390
|
+
"required": ["required"],
|
|
391
|
+
"properties": {
|
|
392
|
+
"required": { "type": "boolean" },
|
|
393
|
+
"family": { "type": ["string", "null"] },
|
|
394
|
+
"version": { "type": ["string", "null"] },
|
|
395
|
+
"path": { "type": ["string", "null"] }
|
|
396
|
+
},
|
|
397
|
+
"description": "Catalog gate for template-family checkout/payment/bundle/upsell/receipt surfaces."
|
|
398
|
+
},
|
|
399
|
+
"compatible_outputs": {
|
|
400
|
+
"type": "array",
|
|
401
|
+
"items": { "type": "string" }
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"deploy": {
|
|
406
|
+
"type": "object",
|
|
407
|
+
"additionalProperties": false,
|
|
408
|
+
"required": ["target"],
|
|
409
|
+
"properties": {
|
|
410
|
+
"target": {
|
|
411
|
+
"enum": ["netlify", "cloudflare-pages", "vercel", "shopify-proxy", "agency-ci", "local-serve", "unknown"],
|
|
412
|
+
"description": "Where the built _site/ output is served for QA. local-serve is the localhost QA path: the built output is served locally (a Development domain on any port, SDK allowed, analytics suppressed) and deploy.preview_url records that localhost origin."
|
|
413
|
+
},
|
|
414
|
+
"preview_url": {
|
|
415
|
+
"type": ["string", "null"]
|
|
416
|
+
},
|
|
417
|
+
"production_url": {
|
|
418
|
+
"type": ["string", "null"]
|
|
419
|
+
},
|
|
420
|
+
"live_url_path": {
|
|
421
|
+
"type": ["string", "null"]
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"qa": {
|
|
426
|
+
"type": "object",
|
|
427
|
+
"additionalProperties": false,
|
|
428
|
+
"properties": {
|
|
429
|
+
"proof_policy": {
|
|
430
|
+
"type": "object",
|
|
431
|
+
"additionalProperties": true,
|
|
432
|
+
"required": ["browser_qa_required", "typed_card_depth", "localhost_development_domain_allowed", "non_localhost_origin_allowlist_required", "order_path_depth", "operator_approval_state"],
|
|
433
|
+
"properties": {
|
|
434
|
+
"browser_qa_required": { "type": "boolean" },
|
|
435
|
+
"typed_card_depth": { "type": "string", "minLength": 1 },
|
|
436
|
+
"localhost_development_domain_allowed": { "type": "boolean" },
|
|
437
|
+
"non_localhost_origin_allowlist_required": { "type": "boolean" },
|
|
438
|
+
"order_path_depth": { "type": "string", "minLength": 1 },
|
|
439
|
+
"operator_approval_state": { "type": "string", "minLength": 1 },
|
|
440
|
+
"qa_portal_publish_default": { "type": "boolean" }
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
"test_order_policy_notes": {
|
|
444
|
+
"type": ["string", "null"]
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"notes": {
|
|
449
|
+
"type": ["string", "null"]
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|