@gradial/aci 0.1.52-rc.29 → 0.1.52-rc.34-e2e.1
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/CHANGELOG.md +73 -0
- package/README.md +4 -4
- package/dist/audience-data-models.d.ts +201 -372
- package/dist/audience-data-models.js +283 -120
- package/dist/cli/compile-registry.mjs +0 -2
- package/dist/collect/aci.js +1 -1
- package/dist/collect/aci.js.sha256 +1 -1
- package/dist/collect/gapbuffer.js +11 -6
- package/dist/internal/platform/collectionstore/errors.d.ts +11 -0
- package/dist/internal/platform/collectionstore/errors.js +20 -0
- package/dist/next/error-pages.d.ts +4 -0
- package/dist/next/error-pages.js +4 -0
- package/dist/next/release-context.d.ts +29 -0
- package/dist/next/release-context.js +55 -0
- package/dist/next/server.d.ts +8 -0
- package/dist/next/server.js +14 -1
- package/dist/react/VideoPlayer.d.ts +1 -1
- package/dist/react/VideoPlayer.js +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -3
- package/dist/testing/conformance/preset.js +3 -0
- package/dist/testing/conformance/root-identity.js +7 -26
- package/dist/testing/conformance/types.d.ts +3 -0
- package/dist/types/image.d.ts +54 -17
- package/dist/types/image.js +102 -18
- package/dist/types/media.d.ts +14 -6
- package/dist/types/video.d.ts +7 -3
- package/migrations/conformance-registry.md +22 -0
- package/package.json +8 -7
- package/src/cli/compile-registry.mjs +0 -2
- package/src/types/image.ts +133 -29
- package/src/types/video.ts +1 -1
- package/templates/astro/starter-content/src/fixtures/sections.ts +0 -1
- package/templates/common/.agents/skills/aci/SKILL.md +4 -3
- package/templates/common/.agents/skills/dam-delivery/SKILL.md +182 -193
- package/templates/common/.agents/skills/dam-delivery/references/permalink-grammar.md +137 -101
- package/templates/common/starter-content/.content/dam/README.md +74 -0
- package/templates/common/starter-content/.content/dam/folders/seed/000000000000000000000000101/governance.json +2 -1
- package/templates/common/starter-content/.content/dam/folders/seed/000000000000000000000000102/governance.json +2 -1
- package/templates/common/starter-content/.content/patterns/components/button.json +2 -2
- package/templates/common/starter-content/.content/patterns/components/container.json +2 -2
- package/templates/common/starter-content/.content/patterns/components/feature_card.json +2 -2
- package/templates/common/starter-content/.content/patterns/components/feature_grid.json +2 -2
- package/templates/common/starter-content/.content/patterns/components/home_hero.json +16 -7
- package/templates/common/starter-content/.content/patterns/components/personalization_choice.json +2 -2
- package/templates/common/starter-content/.content/patterns/components/site-footer.json +2 -2
- package/templates/common/starter-content/.content/patterns/components/site-navigation.json +2 -2
- package/templates/common/starter-content/.content/patterns/components/stats_bar.json +2 -2
- package/templates/nextjs/template/src/app/fonts/inter/OFL.txt +93 -0
- package/templates/nextjs/template/src/app/fonts/inter/inter-latin.woff2 +0 -0
- package/templates/nextjs/template/src/app/fonts/space-grotesk/OFL.txt +93 -0
- package/templates/nextjs/template/src/app/fonts/space-grotesk/space-grotesk-latin.woff2 +0 -0
- package/templates/nextjs/template/src/app/layout.tsx +10 -7
- package/templates/nextjs/template/tests/conformance.test.ts.tmpl +1 -0
- package/templates/common/.agents/skills/dam-delivery/references/parameter-contract.md +0 -107
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.52-rc.34-e2e.1
|
|
4
|
+
|
|
5
|
+
Experimental staging build (ADR 0062 assetId-only contract). Not for
|
|
6
|
+
customer use; dist-tagged `rc-e2e`.
|
|
7
|
+
|
|
8
|
+
### Migration required
|
|
9
|
+
|
|
10
|
+
- Compiled DAM images no longer carry `src`/`srcset` on their sources: they
|
|
11
|
+
carry the asset id plus the slot's declared presentation (`widths`, `fit`,
|
|
12
|
+
format). Sites must render images through the SDK helpers (`imageAttrs()`,
|
|
13
|
+
`<Picture>`, `<Image>`), which construct the `/dam/{assetId}` permalink and
|
|
14
|
+
srcset at render time. Reading `image.sources[0].src` directly no longer
|
|
15
|
+
works for DAM images; static (`static:`) assets are unchanged.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- `imageAttrs()` constructs `src`/`srcset` from the closed
|
|
20
|
+
`{w,h,fit,fm,q}` set (quality default 82, per-width `h` for `fit=crop`).
|
|
21
|
+
- New `configureDamAssets({ baseUrl })` sets an absolute permalink origin
|
|
22
|
+
for off-origin consumers; default is relative same-origin.
|
|
23
|
+
- `DAMDeliveryEnabled`/`DAM_DELIVERY_ENABLED` handling removed everywhere.
|
|
24
|
+
|
|
25
|
+
## 0.1.52-rc.33
|
|
26
|
+
|
|
27
|
+
### Migration required
|
|
28
|
+
|
|
29
|
+
- Next sites must set `registry` in `conformancePreset` (or
|
|
30
|
+
`runConformanceChecks`) to the render registry module used by their app, for
|
|
31
|
+
example `registry: 'src/cms/registry.ts'`. The default `rootIdentity` check
|
|
32
|
+
fails with configuration guidance when this option is absent. See
|
|
33
|
+
[the registry-selection migration](./migrations/conformance-registry.md).
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- Next `rootIdentity` imports only the site's explicitly named registry. It no
|
|
38
|
+
longer executes arbitrary source files containing `createRegistry(` or
|
|
39
|
+
silently checks a secondary registry.
|
|
40
|
+
|
|
41
|
+
## Unreleased
|
|
42
|
+
|
|
43
|
+
**Public API removal:** `visitorProfileDataModel` is gone (see Removed
|
|
44
|
+
below) — delete it from any imports.
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
47
|
+
|
|
48
|
+
- The audience/experimentation author data models
|
|
49
|
+
(`packages/sdk/src/audience-data-models.ts`) are now generated from the Go
|
|
50
|
+
document readers' contracts (`scripts/generate-data-models.go`, verified in
|
|
51
|
+
CI by `make data-models-verify`) instead of hand-written. This fixes drift
|
|
52
|
+
toward the server contract: `experimentDataModel` gains `horizon` (with the
|
|
53
|
+
ADR 0042/0049 constraints), `promotedArmId`/`promotedAt`, and the
|
|
54
|
+
`eligibility.audienceRef` `$ref:audiences/{id}` grammar; rule and goal
|
|
55
|
+
expressions support nested all/any groups with the kernel's depth and
|
|
56
|
+
condition budgets; goal `eventRule` validates in event scope; segment
|
|
57
|
+
criteria accept the `geo` filter; providers require
|
|
58
|
+
`identity.absencePolicy` and enforce the format↔mapping matrix; ids use the
|
|
59
|
+
shared identifier grammar.
|
|
60
|
+
|
|
61
|
+
### Fixed
|
|
62
|
+
|
|
63
|
+
- The `dam-delivery` agent skill shipped in the site templates described two
|
|
64
|
+
delivery lanes that no longer exist (signed `/dam/i/…` URLs and `/dam/a/…`
|
|
65
|
+
permalinks). It now describes the one public link, `/dam/{assetId}`, and
|
|
66
|
+
its `w`, `h`, `fit`, `fm`, `q` query. A site scaffolded earlier keeps its
|
|
67
|
+
old copy: replace its `.agents/skills/dam-delivery/` with
|
|
68
|
+
`templates/common/.agents/skills/dam-delivery/` from this package.
|
|
69
|
+
|
|
70
|
+
### Removed
|
|
71
|
+
|
|
72
|
+
- `visitorProfileDataModel`: the schema had no server-side document contract
|
|
73
|
+
and no consumers. Drop it from imports; `audienceDataModels` no longer
|
|
74
|
+
includes it.
|
|
75
|
+
|
|
3
76
|
## 0.1.52-rc.7 - 2026-08-19
|
|
4
77
|
|
|
5
78
|
### Fixed
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Agentic Content Infrastructure SDK
|
|
2
2
|
|
|
3
|
-
`@gradial/aci` `0.1.52-rc.
|
|
3
|
+
`@gradial/aci` `0.1.52-rc.34-e2e.1` is a pre-1.0 public-surface reset for the ACI
|
|
4
4
|
client SDK. Breaking changes from the old `0.1.x` accidental surface are
|
|
5
5
|
intentional: the root import is framework-neutral, framework runtime behavior is
|
|
6
6
|
behind explicit subpaths, and the first required customer path is React/Next.
|
|
@@ -8,7 +8,7 @@ behind explicit subpaths, and the first required customer path is React/Next.
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
npm install @gradial/aci@0.1.52-rc.
|
|
11
|
+
npm install @gradial/aci@0.1.52-rc.34-e2e.1 zod@^4
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Root Import
|
|
@@ -137,13 +137,13 @@ host bundles select and serve immutable release artifacts.
|
|
|
137
137
|
The first RC scaffold path is Next:
|
|
138
138
|
|
|
139
139
|
```bash
|
|
140
|
-
npx @gradial/aci@0.1.52-rc.
|
|
140
|
+
npx @gradial/aci@0.1.52-rc.34-e2e.1 init my-site --template next-starter
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
List available templates:
|
|
144
144
|
|
|
145
145
|
```bash
|
|
146
|
-
npx @gradial/aci@0.1.52-rc.
|
|
146
|
+
npx @gradial/aci@0.1.52-rc.34-e2e.1 init --list
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
## Personalization: The One-Tag Install
|