@gradial/aci 0.1.52-rc.2 → 0.1.52-rc.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Agentic Content Infrastructure SDK
2
2
 
3
- `@gradial/aci` `0.1.52-rc.2` is a pre-1.0 public-surface reset for the ACI
3
+ `@gradial/aci` `0.1.52-rc.4` 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.2 zod@^4
11
+ npm install @gradial/aci@0.1.52-rc.4 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.2 init my-site --template next-starter
81
+ npx @gradial/aci@0.1.52-rc.4 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.2 init --list
87
+ npx @gradial/aci@0.1.52-rc.4 init --list
88
88
  ```
89
89
 
90
90
  ## Personalization: The One-Tag Install
@@ -21,6 +21,7 @@ export interface FragmentEntry {
21
21
  }
22
22
  export interface LayoutEntry {
23
23
  name: string;
24
+ payloadRef: string;
24
25
  slots: LayoutSlot[];
25
26
  defaults?: Record<string, FragmentRef[]>;
26
27
  }
@@ -78,12 +78,13 @@ export class S3ContentProvider {
78
78
  }
79
79
  async getLayout(name) {
80
80
  const manifest = await this.manifest();
81
- const layouts = manifest.layouts;
82
- if (!layouts || !layouts[name]) {
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(`layouts/${name}.json`);
87
+ return await this.getJSON(ref);
87
88
  }
88
89
  catch (error) {
89
90
  throw new LayoutNotFoundError(name, error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradial/aci",
3
- "version": "0.1.52-rc.2",
3
+ "version": "0.1.52-rc.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/gradial/bare-metal-go.git",
@@ -76,6 +76,16 @@
76
76
  "import": "./dist/next/error-seat.js",
77
77
  "default": "./dist/next/error-seat.js"
78
78
  },
79
+ "./next/middleware": {
80
+ "types": "./dist/next/middleware.d.ts",
81
+ "import": "./dist/next/middleware.js",
82
+ "default": "./dist/next/middleware.js"
83
+ },
84
+ "./next/asset-route": {
85
+ "types": "./dist/next/asset-route.d.ts",
86
+ "import": "./dist/next/asset-route.js",
87
+ "default": "./dist/next/asset-route.js"
88
+ },
79
89
  "./next/server": {
80
90
  "types": "./dist/next/server.d.ts",
81
91
  "import": "./dist/next/server.js",
@@ -146,11 +156,11 @@
146
156
  "zod": "^4.0.0"
147
157
  },
148
158
  "optionalDependencies": {
149
- "@gradial/aci-cli-darwin-arm64": "0.1.52-rc.2",
150
- "@gradial/aci-cli-darwin-x64": "0.1.52-rc.2",
151
- "@gradial/aci-cli-linux-arm64": "0.1.52-rc.2",
152
- "@gradial/aci-cli-linux-x64": "0.1.52-rc.2",
153
- "@gradial/aci-cli-win32-arm64": "0.1.52-rc.2",
154
- "@gradial/aci-cli-win32-x64": "0.1.52-rc.2"
159
+ "@gradial/aci-cli-darwin-arm64": "0.1.52-rc.4",
160
+ "@gradial/aci-cli-darwin-x64": "0.1.52-rc.4",
161
+ "@gradial/aci-cli-linux-arm64": "0.1.52-rc.4",
162
+ "@gradial/aci-cli-linux-x64": "0.1.52-rc.4",
163
+ "@gradial/aci-cli-win32-arm64": "0.1.52-rc.4",
164
+ "@gradial/aci-cli-win32-x64": "0.1.52-rc.4"
155
165
  }
156
166
  }