@gradial/aci 0.1.22 → 0.1.23

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.21` is a pre-1.0 public-surface reset for the ACI
3
+ `@gradial/aci` `0.1.23` 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.21 zod@^4
11
+ npm install @gradial/aci@0.1.23 zod@^4
12
12
  ```
13
13
 
14
14
  ## Root Import
@@ -68,13 +68,13 @@ go through an app-owned HTTP endpoint backed server-side by a `ContentProvider`.
68
68
  The first RC scaffold path is Next:
69
69
 
70
70
  ```bash
71
- npx @gradial/aci@0.1.21 init my-site --template next-starter
71
+ npx @gradial/aci@0.1.23 init my-site --template next-starter
72
72
  ```
73
73
 
74
74
  List available templates:
75
75
 
76
76
  ```bash
77
- npx @gradial/aci@0.1.21 init --list
77
+ npx @gradial/aci@0.1.23 init --list
78
78
  ```
79
79
 
80
80
  ## Verify Locally
Binary file
@@ -23,7 +23,7 @@ function recompileContent(options, reason) {
23
23
  const out = path.resolve(options.compiledRoot || process.env.ACI_CONTENT_ROOT || '.aci/compiled');
24
24
  const bin = resolveBin(options);
25
25
  console.log(`[aci] compiling content (${reason})`);
26
- const result = spawnSync(bin, ['-s', siteDir, 'build', '--content', src, '--out', out, '--skip-code'], {
26
+ const result = spawnSync(bin, ['-s', siteDir, 'content', 'compile', '--content', src, '--out', out], {
27
27
  cwd: siteDir,
28
28
  stdio: 'inherit',
29
29
  env: process.env,
@@ -21,10 +21,9 @@ function recompileContent(reason) {
21
21
  console.log(`[aci] compiling content (${reason})`);
22
22
  const result = spawnSync(bin, [
23
23
  '-s', siteDir,
24
- 'build',
24
+ 'content', 'compile',
25
25
  '--content', src,
26
26
  '--out', out,
27
- '--skip-code',
28
27
  ], {
29
28
  cwd: siteDir,
30
29
  stdio: 'inherit',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradial/aci",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -8,16 +8,15 @@
8
8
  "build": "astro build",
9
9
  "preview": "ACI_CONTENT_ROOT=./.aci/compiled astro preview --host 0.0.0.0",
10
10
  "typecheck": "ACI_CONTENT_ROOT=./.aci/compiled astro check --tsconfig ./tsconfig.json",
11
- "aci:compile": "node ./node_modules/@gradial/aci/bin/aci.js build --compile-only",
12
- "content:compile": "node ./node_modules/@gradial/aci/bin/aci.js build --skip-code --content ./.content --out ./.aci/compiled",
13
- "aci:build": "node ./node_modules/@gradial/aci/bin/aci.js build --content ./.content",
11
+ "aci:compile": "node ./node_modules/@gradial/aci/bin/aci.js content compile --content ./.content --out ./.aci",
12
+ "content:compile": "node ./node_modules/@gradial/aci/bin/aci.js content compile --content ./.content --out ./.aci/compiled",
14
13
  "aci:doctor": "node ./node_modules/@gradial/aci/bin/aci.js doctor",
15
- "aci:validate": "node ./node_modules/@gradial/aci/bin/aci.js build --validate-only",
14
+ "aci:validate": "node ./node_modules/@gradial/aci/bin/aci.js doctor",
16
15
  "storybook": "storybook dev -p 6006",
17
16
  "build:storybook": "storybook build"
18
17
  },
19
18
  "dependencies": {
20
- "@gradial/aci": "^0.1.20",
19
+ "@gradial/aci": "0.1.22",
21
20
  "js-yaml": "^4.1.0",
22
21
  "marked": "^18.0.3",
23
22
  "zod": "^4.0.0"
@@ -8,17 +8,16 @@
8
8
  "build": "next build",
9
9
  "preview": "next start -H 0.0.0.0",
10
10
  "typecheck": "tsc --noEmit",
11
- "aci:compile": "node ./node_modules/@gradial/aci/bin/aci.js build --compile-only",
12
- "content:compile": "node ./node_modules/@gradial/aci/bin/aci.js build --skip-code --content ./.content --out ./.aci/compiled",
13
- "aci:build": "node ./node_modules/@gradial/aci/bin/aci.js build --content ./.content",
11
+ "aci:compile": "node ./node_modules/@gradial/aci/bin/aci.js content compile --content ./.content --out ./.aci",
12
+ "content:compile": "node ./node_modules/@gradial/aci/bin/aci.js content compile --content ./.content --out ./.aci/compiled",
14
13
  "aci:doctor": "node ./node_modules/@gradial/aci/bin/aci.js doctor",
15
- "aci:validate": "node ./node_modules/@gradial/aci/bin/aci.js build --validate-only",
14
+ "aci:validate": "node ./node_modules/@gradial/aci/bin/aci.js doctor",
16
15
  "lint": "eslint .",
17
16
  "storybook": "storybook dev -p 6006",
18
17
  "build:storybook": "storybook build"
19
18
  },
20
19
  "dependencies": {
21
- "@gradial/aci": "0.2.0-rc.0",
20
+ "@gradial/aci": "0.1.22",
22
21
  "js-yaml": "^4.1.1",
23
22
  "next": "^15.1.6",
24
23
  "react": "^19.0.0",
@@ -1,31 +1 @@
1
- import { getReleaseAssetResponse } from '@gradial/aci/content';
2
- import { FileContentProvider } from '@gradial/aci/providers/file';
3
-
4
- const LOCAL_RELEASE_ID = 'local';
5
-
6
- type AssetRouteContext = {
7
- params: Promise<{
8
- releaseId?: string;
9
- path?: string[];
10
- }>;
11
- };
12
-
13
- export const runtime = 'nodejs';
14
- export const dynamic = 'force-dynamic';
15
-
16
- export async function GET(_request: Request, { params }: AssetRouteContext): Promise<Response> {
17
- const resolvedParams = await params;
18
- const releaseId = resolvedParams.releaseId || '';
19
- const assetPath = '/' + (resolvedParams.path || []).join('/');
20
- if (!releaseId || assetPath === '/') {
21
- return new Response('asset not found', { status: 404 });
22
- }
23
- if (releaseId === LOCAL_RELEASE_ID) {
24
- return new FileContentProvider().fetchRaw(assetPath);
25
- }
26
- try {
27
- return await getReleaseAssetResponse({ releaseId, assetPath });
28
- } catch {
29
- return new Response('asset not found', { status: 404 });
30
- }
31
- }
1
+ export { GET, runtime, dynamic } from '@gradial/aci/next/asset-route';