@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
package/package.json
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nextcommerce/campaigns-os",
|
|
3
|
+
"version": "1.33.0",
|
|
4
|
+
"description": "Toolkit for agent-assisted NEXT campaign builds.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/NextCommerceCo/campaigns-os.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/NextCommerceCo/campaigns-os#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/NextCommerceCo/campaigns-os/issues"
|
|
13
|
+
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public",
|
|
16
|
+
"provenance": true
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"bin": {
|
|
21
|
+
"campaigns-os": "./bin/campaigns-os.mjs"
|
|
22
|
+
},
|
|
23
|
+
"exports": {
|
|
24
|
+
"./commercial-journey": {
|
|
25
|
+
"import": "./src/commercial-journey.mjs",
|
|
26
|
+
"default": "./src/commercial-journey.mjs"
|
|
27
|
+
},
|
|
28
|
+
"./commercial-parity": {
|
|
29
|
+
"import": "./src/commercial-parity.mjs",
|
|
30
|
+
"default": "./src/commercial-parity.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./campaign-spec": {
|
|
33
|
+
"types": "./campaign-spec/dist/index.d.ts",
|
|
34
|
+
"import": "./campaign-spec/dist/index.js",
|
|
35
|
+
"default": "./campaign-spec/dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./text-safety": {
|
|
38
|
+
"import": "./src/text-safety.mjs",
|
|
39
|
+
"default": "./src/text-safety.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./legacy-migration": {
|
|
42
|
+
"types": "./src/legacy-migration.d.ts",
|
|
43
|
+
"import": "./src/legacy-migration.mjs",
|
|
44
|
+
"default": "./src/legacy-migration.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./schemas/campaign-spec.v4.schema.json": "./schemas/campaign-spec.v4.schema.json",
|
|
47
|
+
"./schemas/campaigns-os-legacy-migration-inventory.v0.schema.json": "./schemas/campaigns-os-legacy-migration-inventory.v0.schema.json",
|
|
48
|
+
"./schemas/campaigns-os-legacy-provisioning-plan.v0.schema.json": "./schemas/campaigns-os-legacy-provisioning-plan.v0.schema.json",
|
|
49
|
+
"./schemas/campaigns-os-legacy-provisioning-receipt.v0.schema.json": "./schemas/campaigns-os-legacy-provisioning-receipt.v0.schema.json",
|
|
50
|
+
"./package.json": "./package.json"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"campaigns-os": "node ./bin/campaigns-os.mjs",
|
|
54
|
+
"skills": "bash ./skills.sh",
|
|
55
|
+
"qa": "node ./bin/campaigns-os.mjs qa",
|
|
56
|
+
"qa:install-browser": "npx playwright install chromium",
|
|
57
|
+
"smoke:polish-capture": "node ./scripts/smoke-polish-capture.mjs --run",
|
|
58
|
+
"refresh:starter-catalog": "node ./scripts/refresh-starter-template-catalog.mjs",
|
|
59
|
+
"build:spec": "tsc -p campaign-spec/tsconfig.build.json",
|
|
60
|
+
"prepare": "npm run build:spec",
|
|
61
|
+
"check:spec": "node --test \"campaign-spec/test/**/*.test.ts\"",
|
|
62
|
+
"check": "npm run check:provenance && npm run check:workflows && npm run check:changelog-structure && npm run build:spec && npm run check:tests && npm run check:spec && npm run check:fixtures && npm run check:legacy-migration && npm run check:spec-conformance && npm run check:private-strings && npm run check:template-doctrine && npm run check:slot-manifest && npm run check:skill-versions && npm run check:cart-readiness && npm run check:sidecar-bundle && npm run check:supported-surface && npm run check:release-ledger && npm run check:runtime-recipe && npm run check:orientation-docs && npm run check:runtime-docs && npm run check:pack -- --skip-prepare",
|
|
63
|
+
"check:tests": "node --test ./src/*.test.mjs ./scripts/refresh-starter-template-catalog.test.mjs ./scripts/check-catalog-provenance.test.mjs ./scripts/check-workflow-contracts.test.mjs ./scripts/check-changelog-structure.test.mjs ./scripts/check-slot-manifest.test.mjs ./scripts/check-skill-versions.test.mjs ./scripts/check-supported-surface.test.mjs ./scripts/check-campaign-spec-conformance.test.mjs ./scripts/check-release-ledger.test.mjs ./scripts/generate-orientation-reference.test.mjs ./scripts/check-runtime-recipe.test.mjs ./scripts/check-fixtures.test.mjs ./scripts/starter-templates-path.test.mjs ./scripts/check-template-doctrine.test.mjs",
|
|
64
|
+
"check:legacy-migration": "node ./scripts/check-legacy-migration.mjs",
|
|
65
|
+
"check:fixtures": "node ./scripts/check-fixtures.mjs",
|
|
66
|
+
"check:spec-conformance": "node ./scripts/check-campaign-spec-conformance.mjs",
|
|
67
|
+
"check:pack": "node ./scripts/check-pack.mjs",
|
|
68
|
+
"check:private-strings": "node ./scripts/check-private-strings.mjs",
|
|
69
|
+
"check:template-doctrine": "node ./scripts/check-template-doctrine.mjs",
|
|
70
|
+
"check:slot-manifest": "node ./scripts/check-slot-manifest.mjs",
|
|
71
|
+
"check:cart-readiness": "node ./scripts/check-cart-readiness-contract.mjs",
|
|
72
|
+
"check:provenance": "node ./scripts/check-catalog-provenance.mjs",
|
|
73
|
+
"check:workflows": "node ./scripts/check-workflow-contracts.mjs",
|
|
74
|
+
"check:skill-versions": "node ./scripts/check-skill-versions.mjs",
|
|
75
|
+
"check:supported-surface": "node ./scripts/check-supported-surface.mjs",
|
|
76
|
+
"check:release-ledger": "node ./scripts/check-release-ledger.mjs",
|
|
77
|
+
"check:changelog-structure": "node ./scripts/check-changelog-structure.mjs",
|
|
78
|
+
"check:orientation-docs": "node ./scripts/generate-orientation-reference.mjs --check",
|
|
79
|
+
"generate:orientation-docs": "node ./scripts/generate-orientation-reference.mjs --write",
|
|
80
|
+
"check:runtime-recipe": "node ./scripts/check-runtime-recipe.mjs",
|
|
81
|
+
"check:runtime-docs": "node ./scripts/generate-runtime-readiness.mjs --check",
|
|
82
|
+
"generate:runtime-docs": "node ./scripts/generate-runtime-readiness.mjs --write",
|
|
83
|
+
"check:sidecar-bundle": "node ./bin/campaigns-os.mjs bundle check --packet contracts/fixtures/sidecar-bundle/production-shaped/campaign-runtime.build.json --require-qa --json"
|
|
84
|
+
},
|
|
85
|
+
"engines": {
|
|
86
|
+
"node": ">=20.19.0"
|
|
87
|
+
},
|
|
88
|
+
"dependencies": {
|
|
89
|
+
"acorn": "^8.18.0",
|
|
90
|
+
"ajv": "^8.20.0",
|
|
91
|
+
"parse5": "^7.3.0",
|
|
92
|
+
"yaml": "^2.9.0"
|
|
93
|
+
},
|
|
94
|
+
"optionalDependencies": {
|
|
95
|
+
"playwright": "^1.62.1"
|
|
96
|
+
},
|
|
97
|
+
"devDependencies": {
|
|
98
|
+
"typescript": "^5.9.3"
|
|
99
|
+
},
|
|
100
|
+
"files": [
|
|
101
|
+
"agents",
|
|
102
|
+
"bin",
|
|
103
|
+
"campaign-spec",
|
|
104
|
+
"contracts",
|
|
105
|
+
"docs/brand-theme-bridge.md",
|
|
106
|
+
"docs/build-packet.md",
|
|
107
|
+
"docs/campaign-build-brief.md",
|
|
108
|
+
"docs/campaign-standardization-report.md",
|
|
109
|
+
"docs/campaigns-os-build-flow.md",
|
|
110
|
+
"docs/design-source-package.md",
|
|
111
|
+
"docs/legacy-migration.md",
|
|
112
|
+
"docs/migration-sidecar-bundle.md",
|
|
113
|
+
"docs/orientation-contract-reference.md",
|
|
114
|
+
"docs/polish-evidence.md",
|
|
115
|
+
"docs/qa-and-test-orders.md",
|
|
116
|
+
"docs/release-ledger-authoring-guide.md",
|
|
117
|
+
"docs/runtime-readiness.md",
|
|
118
|
+
"docs/supported-surface.md",
|
|
119
|
+
"docs/versioning.md",
|
|
120
|
+
"docs/workflow-findings-sidecar.md",
|
|
121
|
+
"prompts",
|
|
122
|
+
"schemas",
|
|
123
|
+
"skills.sh",
|
|
124
|
+
"skills",
|
|
125
|
+
"skills.json",
|
|
126
|
+
"src",
|
|
127
|
+
"LICENSE",
|
|
128
|
+
"NOTICE",
|
|
129
|
+
"README.md",
|
|
130
|
+
"CONTEXT.md",
|
|
131
|
+
"compatibility.json",
|
|
132
|
+
"AGENTS.md",
|
|
133
|
+
"CHANGELOG.md"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# First Build Prompt
|
|
2
|
+
|
|
3
|
+
Please help me build or evaluate a NEXT Campaign from the CampaignSpec, prepared HTML/assets, starter-template contract catalog, and Campaigns OS Build Packet in this repo.
|
|
4
|
+
|
|
5
|
+
Start by reading:
|
|
6
|
+
|
|
7
|
+
- `campaign-runtime.build.json`
|
|
8
|
+
- `.campaign-runtime/build-context.json`
|
|
9
|
+
- `.campaign-runtime/assembly-report.json`
|
|
10
|
+
- `contracts/commerce-surface-catalog.json`
|
|
11
|
+
|
|
12
|
+
Then:
|
|
13
|
+
|
|
14
|
+
1. Confirm the public route slug and Map ID.
|
|
15
|
+
2. Confirm or challenge the selected template family.
|
|
16
|
+
3. Read `families[family].agentContract`.
|
|
17
|
+
4. Use `sharedFrontmatterVocabulary`.
|
|
18
|
+
5. Replace demo package, shipping, voucher, payment, tracking, footer, and SEO values from CampaignSpec/API.
|
|
19
|
+
6. If source HTML is AI-generated/exported standalone HTML, convert it to page-kit-ready markup first: keep page-owned body markup, strip document wrappers, add YAML frontmatter, move shared CSS/assets into the campaign structure, and use Liquid helpers only for page-kit links/assets/includes.
|
|
20
|
+
7. If intake blocked with `DESIGN_SOURCE_PACKAGE_NOT_READY`, supply desktop and mobile source screenshot proof through `pages[].screenshots[]` in `<source-root>/.campaigns-os/source-html-manifest.json`, then follow the recovery in [Clearing `DESIGN_SOURCE_PACKAGE_NOT_READY`](../docs/design-source-package.md#clearing-design_source_package_not_ready).
|
|
21
|
+
8. Preserve landing/presell source design when it is real source intent.
|
|
22
|
+
9. For checkout/upsell/downsell/receipt, use starter-template commerce surfaces as SDK contract references while preserving required runtime controls.
|
|
23
|
+
10. Copy starter-template families atomically with dependent pages, `_includes/`, `_layouts/`, `assets/css/`, and `assets/js/`; do not copy only checkout/receipt pages.
|
|
24
|
+
11. Run build and SDK/template lint checks.
|
|
25
|
+
12. Record evidence and hand off to polish.
|
|
26
|
+
|
|
27
|
+
Do not say this is full automated readiness. Build is only one gate before polish, deploy, and QA.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Friction Log
|
|
2
|
+
|
|
3
|
+
Use this when filing a developer feedback issue.
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
- CampaignSpec path or Map ID:
|
|
8
|
+
- Template family:
|
|
9
|
+
- Source adapter:
|
|
10
|
+
- AI tool:
|
|
11
|
+
- Command run:
|
|
12
|
+
|
|
13
|
+
## What Happened
|
|
14
|
+
|
|
15
|
+
Describe the step that was confusing, blocked, or wrong.
|
|
16
|
+
|
|
17
|
+
## Expected
|
|
18
|
+
|
|
19
|
+
Describe what the toolkit or prompt should have made obvious.
|
|
20
|
+
|
|
21
|
+
## Evidence
|
|
22
|
+
|
|
23
|
+
Paste command output, file paths, screenshots, or assembly-report snippets.
|
|
24
|
+
|
|
25
|
+
## Severity
|
|
26
|
+
|
|
27
|
+
- blocker
|
|
28
|
+
- confusing
|
|
29
|
+
- polish
|
|
30
|
+
- idea
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://nextcommerce.com/schemas/campaign-build-brief.v1.schema.json",
|
|
4
|
+
"title": "Campaigns OS Campaign Build Brief v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": ["schema_version"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": { "const": "campaigns-os-build-brief/v1" },
|
|
10
|
+
"status": { "enum": ["complete", "needs_answers", "invalid"] },
|
|
11
|
+
"campaign_intent": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": true,
|
|
14
|
+
"properties": {
|
|
15
|
+
"audience": { "type": ["string", "null"] },
|
|
16
|
+
"conversion_goal": { "type": ["string", "null"] },
|
|
17
|
+
"tone": { "type": ["string", "null"] },
|
|
18
|
+
"compliance": { "type": ["object", "null"], "additionalProperties": true }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"design_authority": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"description": "Page-id keyed map describing whether each page follows the provided design, selected template, or an adapted source."
|
|
24
|
+
},
|
|
25
|
+
"brand": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": true,
|
|
28
|
+
"properties": {
|
|
29
|
+
"commerce_palette_source": { "type": ["string", "null"] },
|
|
30
|
+
"primary_accent": { "type": ["string", "null"] },
|
|
31
|
+
"cta_style": { "type": ["string", "null"] },
|
|
32
|
+
"avoid": { "type": "array", "items": { "type": "string" } }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"media": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": true,
|
|
38
|
+
"properties": {
|
|
39
|
+
"sold_variants": { "type": "array", "items": { "type": "string" } },
|
|
40
|
+
"allow_other_variant_colors": { "type": ["boolean", "null"] },
|
|
41
|
+
"prefer": { "type": "array", "items": { "type": "string" } },
|
|
42
|
+
"avoid": { "type": "array", "items": { "type": "string" } }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"offer_presentation": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": true,
|
|
48
|
+
"properties": {
|
|
49
|
+
"bundle_cards": { "type": "object", "additionalProperties": true },
|
|
50
|
+
"post_purchase": { "type": "object", "additionalProperties": true }
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"promo_urgency": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": true,
|
|
56
|
+
"properties": {
|
|
57
|
+
"header_claim_source": { "type": ["string", "null"] },
|
|
58
|
+
"timer_label": { "type": ["string", "null"] },
|
|
59
|
+
"show_promo_code_in_timer": { "type": ["boolean", "null"] },
|
|
60
|
+
"exit_pop": { "type": "object", "additionalProperties": true },
|
|
61
|
+
"forbid_placeholders": { "type": "boolean" }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"commerce_surfaces": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": true,
|
|
67
|
+
"properties": {
|
|
68
|
+
"payment_methods_allowed": { "type": "array", "items": { "enum": ["card", "paypal", "apple_pay", "google_pay", "klarna", "afterpay", "sezzle", "shop_pay", "amazon_pay", "venmo", "cash_app"] } },
|
|
69
|
+
"hidden_payment_methods": { "type": "array", "items": { "enum": ["card", "paypal", "apple_pay", "google_pay", "klarna", "afterpay", "sezzle", "shop_pay", "amazon_pay", "venmo", "cash_app"] } },
|
|
70
|
+
"order_bump": { "type": "object", "additionalProperties": true },
|
|
71
|
+
"guarantees": { "type": "object", "additionalProperties": true }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"canonical_display": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": true,
|
|
77
|
+
"properties": {
|
|
78
|
+
"product_name_source": { "type": ["string", "null"] },
|
|
79
|
+
"allow_runtime_name_override": { "type": "boolean" },
|
|
80
|
+
"manual_overrides": { "type": "object", "additionalProperties": true }
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"template_residue_policy": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": true,
|
|
86
|
+
"properties": {
|
|
87
|
+
"block_placeholders": { "type": "boolean" },
|
|
88
|
+
"block_template_favicon": { "type": "boolean" },
|
|
89
|
+
"block_demo_payment_methods": { "type": "boolean" },
|
|
90
|
+
"block_lorem_ipsum": { "type": "boolean" },
|
|
91
|
+
"block_unapproved_tracking_claims": { "type": "boolean" }
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"qa_policy": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"additionalProperties": true,
|
|
97
|
+
"properties": {
|
|
98
|
+
"enforcement": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": true,
|
|
101
|
+
"properties": {
|
|
102
|
+
"status": {
|
|
103
|
+
"const": "documented_expectation",
|
|
104
|
+
"description": "Only valid v1 value. Build Brief qa_policy preserves business QA expectations; doctor and QA enforce qa.proof_policy and report.proof_policy."
|
|
105
|
+
},
|
|
106
|
+
"enforced_by": { "type": "string" },
|
|
107
|
+
"note": { "type": "string" }
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"require_desktop_mobile_screenshots": { "type": "boolean" },
|
|
111
|
+
"require_checkout_flow": { "type": "boolean" },
|
|
112
|
+
"require_post_purchase_flow": { "type": "boolean" },
|
|
113
|
+
"fail_on_visible_placeholders": { "type": "boolean" },
|
|
114
|
+
"compare_live_runtime_data_to_spec": { "type": "boolean" }
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"questions": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"additionalProperties": true,
|
|
122
|
+
"required": ["id", "priority", "field", "question"],
|
|
123
|
+
"properties": {
|
|
124
|
+
"id": { "type": "string" },
|
|
125
|
+
"priority": { "type": "integer" },
|
|
126
|
+
"field": { "type": "string" },
|
|
127
|
+
"question": { "type": "string" },
|
|
128
|
+
"reason": { "type": "string" },
|
|
129
|
+
"options": { "type": "array", "items": { "type": "string" } },
|
|
130
|
+
"blocking": { "type": "boolean" }
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"gates": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"additionalProperties": true,
|
|
139
|
+
"required": ["code", "severity", "message"],
|
|
140
|
+
"properties": {
|
|
141
|
+
"code": { "type": "string" },
|
|
142
|
+
"severity": { "enum": ["blocker", "warning"] },
|
|
143
|
+
"field": { "type": ["string", "null"] },
|
|
144
|
+
"message": { "type": "string" }
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|