@gradial/aci 0.1.52-rc.1 → 0.1.52-rc.3
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.md +4 -4
- package/dist/content/provider.d.ts +1 -0
- package/dist/providers/s3.js +11 -4
- package/package.json +7 -7
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.3` 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.3 zod@^4
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Root Import
|
|
@@ -78,13 +78,13 @@ host bundles select and serve immutable release artifacts.
|
|
|
78
78
|
The first RC scaffold path is Next:
|
|
79
79
|
|
|
80
80
|
```bash
|
|
81
|
-
npx @gradial/aci@0.1.52-rc.
|
|
81
|
+
npx @gradial/aci@0.1.52-rc.3 init my-site --template next-starter
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
List available templates:
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
npx @gradial/aci@0.1.52-rc.
|
|
87
|
+
npx @gradial/aci@0.1.52-rc.3 init --list
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
## Personalization: The One-Tag Install
|
package/dist/providers/s3.js
CHANGED
|
@@ -78,12 +78,13 @@ export class S3ContentProvider {
|
|
|
78
78
|
}
|
|
79
79
|
async getLayout(name) {
|
|
80
80
|
const manifest = await this.manifest();
|
|
81
|
-
const
|
|
82
|
-
if (!
|
|
81
|
+
const entry = manifest.layouts?.[name];
|
|
82
|
+
if (!entry) {
|
|
83
83
|
throw new LayoutNotFoundError(name);
|
|
84
84
|
}
|
|
85
|
+
const ref = entry.payloadRef;
|
|
85
86
|
try {
|
|
86
|
-
return await this.getJSON(
|
|
87
|
+
return await this.getJSON(ref);
|
|
87
88
|
}
|
|
88
89
|
catch (error) {
|
|
89
90
|
throw new LayoutNotFoundError(name, error);
|
|
@@ -199,7 +200,13 @@ export class S3ContentProvider {
|
|
|
199
200
|
}
|
|
200
201
|
let page;
|
|
201
202
|
try {
|
|
202
|
-
|
|
203
|
+
const parsed = JSON.parse(source);
|
|
204
|
+
if (parsed?.schemaVersion === 'gradial.ssr-page.v1' && parsed.page !== undefined) {
|
|
205
|
+
page = parsed.page;
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
page = parsed;
|
|
209
|
+
}
|
|
203
210
|
}
|
|
204
211
|
catch (cause) {
|
|
205
212
|
throw pageIntegrityError(`invalid JSON for ${tuple.contentRef}`, cause);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradial/aci",
|
|
3
|
-
"version": "0.1.52-rc.
|
|
3
|
+
"version": "0.1.52-rc.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/gradial/bare-metal-go.git",
|
|
@@ -146,11 +146,11 @@
|
|
|
146
146
|
"zod": "^4.0.0"
|
|
147
147
|
},
|
|
148
148
|
"optionalDependencies": {
|
|
149
|
-
"@gradial/aci-cli-darwin-arm64": "0.1.52-rc.
|
|
150
|
-
"@gradial/aci-cli-darwin-x64": "0.1.52-rc.
|
|
151
|
-
"@gradial/aci-cli-linux-arm64": "0.1.52-rc.
|
|
152
|
-
"@gradial/aci-cli-linux-x64": "0.1.52-rc.
|
|
153
|
-
"@gradial/aci-cli-win32-arm64": "0.1.52-rc.
|
|
154
|
-
"@gradial/aci-cli-win32-x64": "0.1.52-rc.
|
|
149
|
+
"@gradial/aci-cli-darwin-arm64": "0.1.52-rc.3",
|
|
150
|
+
"@gradial/aci-cli-darwin-x64": "0.1.52-rc.3",
|
|
151
|
+
"@gradial/aci-cli-linux-arm64": "0.1.52-rc.3",
|
|
152
|
+
"@gradial/aci-cli-linux-x64": "0.1.52-rc.3",
|
|
153
|
+
"@gradial/aci-cli-win32-arm64": "0.1.52-rc.3",
|
|
154
|
+
"@gradial/aci-cli-win32-x64": "0.1.52-rc.3"
|
|
155
155
|
}
|
|
156
156
|
}
|