@gradial/aci 0.1.52-rc.25 → 0.1.52-rc.26

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.52-rc.26 - 2026-09-30
4
+
5
+ ### Fixed
6
+
7
+ - Configure Astro's `build.assetsPrefix` for external CDN builds. Astro
8
+ overrides a nested Vite `base`, which caused real production builds to keep
9
+ emitting root-relative `/assets/` URLs even when a CDN base was configured.
10
+
3
11
  ## 0.1.52-rc.25 - 2026-09-30
4
12
 
5
13
  ### Added
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Agentic Content Infrastructure SDK
2
2
 
3
- `@gradial/aci` `0.1.52-rc.25` is a pre-1.0 public-surface reset for the ACI
3
+ `@gradial/aci` `0.1.52-rc.26` 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.25 zod@^4
11
+ npm install @gradial/aci@0.1.52-rc.26 zod@^4
12
12
  ```
13
13
 
14
14
  ## Root Import
@@ -130,13 +130,13 @@ host bundles select and serve immutable release artifacts.
130
130
  The first RC scaffold path is Next:
131
131
 
132
132
  ```bash
133
- npx @gradial/aci@0.1.52-rc.25 init my-site --template next-starter
133
+ npx @gradial/aci@0.1.52-rc.26 init my-site --template next-starter
134
134
  ```
135
135
 
136
136
  List available templates:
137
137
 
138
138
  ```bash
139
- npx @gradial/aci@0.1.52-rc.25 init --list
139
+ npx @gradial/aci@0.1.52-rc.26 init --list
140
140
  ```
141
141
 
142
142
  ## Personalization: The One-Tag Install
@@ -6,10 +6,10 @@ interface AstroConfigSetupParams {
6
6
  updateConfig(config: {
7
7
  build?: {
8
8
  assets?: string;
9
+ assetsPrefix?: string;
9
10
  };
10
11
  vite?: {
11
12
  plugins?: unknown[];
12
- base?: string;
13
13
  };
14
14
  }): void;
15
15
  }
@@ -91,9 +91,10 @@ export function withAci(options = {}) {
91
91
  updateConfig({ build: { assets: 'assets' } });
92
92
  }
93
93
  // Asset URL prefix for production builds. When
94
- // ACI_ASSET_BASE_TPL is an absolute CDN URL, use it as Vite's `base`
95
- // so the SSG build writes asset URLs (CSS, JS, images) pointing at
96
- // the CDN directly — no post-processing needed.
94
+ // ACI_ASSET_BASE_TPL is an absolute CDN URL, use Astro's
95
+ // build.assetsPrefix so the SSG build writes generated asset URLs
96
+ // (CSS and JS) pointing at the CDN directly. Astro owns Vite's final
97
+ // base value, so setting vite.base here does not survive a real build.
97
98
  //
98
99
  // Build assets are content-addressed (hashed filenames) and stored
99
100
  // globally, so the URL is release-independent: strip __RELEASE_ID__.
@@ -112,7 +113,7 @@ export function withAci(options = {}) {
112
113
  if (isAbsoluteUrl
113
114
  && assetBase !== '/'
114
115
  && process.env.NODE_ENV === 'production') {
115
- updateConfig({ vite: { base: assetBase } });
116
+ updateConfig({ build: { assetsPrefix: assetBase } });
116
117
  }
117
118
  if (process.env.NODE_ENV === 'production') {
118
119
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradial/aci",
3
- "version": "0.1.52-rc.25",
3
+ "version": "0.1.52-rc.26",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/gradial/bare-metal-go.git",
@@ -159,11 +159,11 @@
159
159
  "zod": "^4.0.0"
160
160
  },
161
161
  "optionalDependencies": {
162
- "@gradial/aci-cli-darwin-arm64": "0.1.52-rc.25",
163
- "@gradial/aci-cli-darwin-x64": "0.1.52-rc.25",
164
- "@gradial/aci-cli-linux-arm64": "0.1.52-rc.25",
165
- "@gradial/aci-cli-linux-x64": "0.1.52-rc.25",
166
- "@gradial/aci-cli-win32-arm64": "0.1.52-rc.25",
167
- "@gradial/aci-cli-win32-x64": "0.1.52-rc.25"
162
+ "@gradial/aci-cli-darwin-arm64": "0.1.52-rc.26",
163
+ "@gradial/aci-cli-darwin-x64": "0.1.52-rc.26",
164
+ "@gradial/aci-cli-linux-arm64": "0.1.52-rc.26",
165
+ "@gradial/aci-cli-linux-x64": "0.1.52-rc.26",
166
+ "@gradial/aci-cli-win32-arm64": "0.1.52-rc.26",
167
+ "@gradial/aci-cli-win32-x64": "0.1.52-rc.26"
168
168
  }
169
169
  }