@gradial/aci 0.1.48 → 0.1.51-ssr.2
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 +13 -20
- package/dist/astro/assets.d.ts +6 -6
- package/dist/astro/assets.js +6 -6
- package/dist/astro/index.d.ts +0 -2
- package/dist/astro/index.js +0 -4
- package/dist/cli/emit-error-pages.mjs +0 -1
- package/dist/cli/verify-next-cdn-routes.mjs +3 -4
- package/dist/collect/aci.js +1 -1
- package/dist/collect/aci.js.sha256 +1 -1
- package/dist/collect/webvitals.d.ts +0 -3
- package/dist/collect/webvitals.js +11 -21
- package/dist/content/cache.d.ts +1 -9
- package/dist/content/cache.js +2 -37
- package/dist/content/error-pages.d.ts +1 -2
- package/dist/content/index.d.ts +0 -1
- package/dist/content/index.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/internal/domain/edge/identity.d.ts +14 -0
- package/dist/internal/domain/edge/identity.js +214 -0
- package/dist/internal/domain/edge/index.d.ts +4 -0
- package/dist/internal/domain/edge/index.js +6 -0
- package/dist/internal/domain/edge/personalization-core.d.ts +24 -0
- package/dist/{edge → internal/domain/edge}/personalization-core.js +165 -64
- package/dist/internal/domain/edge/record/codec.d.ts +71 -0
- package/dist/internal/domain/edge/record/codec.js +401 -0
- package/dist/internal/domain/edge/resolve.d.ts +2 -0
- package/dist/internal/domain/edge/resolve.js +76 -0
- package/dist/{next/personalization-host.d.ts → internal/domain/edge/types.d.ts} +110 -61
- package/dist/internal/domain/edge/types.js +7 -0
- package/dist/internal/platform/collectionstore/errors.d.ts +5 -0
- package/dist/internal/platform/collectionstore/errors.js +7 -0
- package/dist/next/config.d.ts +0 -8
- package/dist/next/config.js +3 -78
- package/dist/next/error-pages.d.ts +2 -3
- package/dist/next/error-pages.js +5 -5
- package/dist/next/error-seat.d.ts +2 -3
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -2
- package/dist/next/page.d.ts +3 -13
- package/dist/next/page.js +39 -51
- package/dist/next/server.d.ts +12 -32
- package/dist/next/server.js +66 -295
- package/dist/providers/object.d.ts +24 -0
- package/dist/providers/object.js +105 -0
- package/dist/providers/vercel-object-reader.d.ts +20 -0
- package/dist/providers/vercel-object-reader.js +45 -0
- package/dist/testing/conformance/checks.d.ts +1 -1
- package/dist/testing/conformance/checks.js +14 -144
- package/dist/testing/conformance/index.d.ts +1 -1
- package/dist/testing/conformance/index.js +1 -1
- package/dist/testing/conformance/preset.js +1 -1
- package/dist/testing/conformance/types.d.ts +1 -1
- package/dist/types/config.d.ts +0 -4
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.js +0 -2
- package/dist/types/page.d.ts +0 -10
- package/package.json +11 -35
- package/src/cli/emit-error-pages.mjs +0 -1
- package/src/cli/verify-next-cdn-routes.mjs +8 -11
- package/src/types/config.ts +0 -5
- package/src/types/index.ts +0 -2
- package/src/types/page.ts +0 -11
- package/templates/astro/template/.aci.yaml.tmpl +0 -11
- package/templates/common/.agents/skills/aci/SKILL.md +8 -9
- package/templates/common/.agents/skills/authoring/SKILL.md +3 -4
- package/templates/common/.agents/skills/authoring/references/block-registry.md +13 -36
- package/templates/common/.agents/skills/authoring/references/contracts.md +10 -17
- package/templates/common/.agents/skills/authoring/references/repo-structure.md +2 -2
- package/templates/common/.agents/skills/authoring/references/sdk-server-functions.md +45 -95
- package/templates/common/.agents/skills/migration/references/canon-migration.md +17 -37
- package/templates/nextjs/template/.aci.yaml.tmpl +0 -11
- package/templates/nextjs/template/README.md.tmpl +0 -1
- package/templates/nextjs/template/src/app/[[...slug]]/page.tsx +1 -1
- package/dist/content/assets.d.ts +0 -18
- package/dist/content/assets.js +0 -66
- package/dist/edge/personalization-core.d.ts +0 -11
- package/dist/internal/render-proof.d.ts +0 -1
- package/dist/internal/render-proof.js +0 -197
- package/dist/next/asset-route.d.ts +0 -10
- package/dist/next/asset-route.js +0 -45
- package/dist/next/collect-route.d.ts +0 -19
- package/dist/next/collect-route.js +0 -422
- package/dist/next/edge-config.d.ts +0 -1
- package/dist/next/edge-config.js +0 -92
- package/dist/next/envelope-digest.d.ts +0 -21
- package/dist/next/envelope-digest.js +0 -58
- package/dist/next/middleware.d.ts +0 -40
- package/dist/next/middleware.js +0 -462
- package/dist/next/personalization-host.js +0 -257
- package/dist/next/vercel-collect-sdk-route.d.ts +0 -27
- package/dist/next/vercel-collect-sdk-route.js +0 -181
- package/dist/next/vercel-edge-projection-v1.d.ts +0 -24
- package/dist/next/vercel-edge-projection-v1.js +0 -880
- package/dist/next/vercel-personalization.d.ts +0 -4
- package/dist/next/vercel-personalization.js +0 -4
- package/dist/next/vercel-s3-personalization.d.ts +0 -79
- package/dist/next/vercel-s3-personalization.js +0 -570
- package/dist/providers/s3.d.ts +0 -47
- package/dist/providers/s3.js +0 -434
- package/dist/types/render-mode.d.ts +0 -2
- package/dist/types/render-mode.js +0 -1
- package/dist/types/renderer.d.ts +0 -71
- package/dist/types/renderer.js +0 -1
- package/src/types/render-mode.ts +0 -10
- package/src/types/renderer.ts +0 -83
- package/templates/nextjs/starter-content/src/middleware.ts +0 -41
- package/templates/nextjs/template/src/app/gradial/assets/[...path]/route.ts +0 -1
- package/templates/nextjs/template/src/middleware.ts +0 -41
- package/templates/nextjs/template/src/middleware.ts.tmpl +0 -40
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { GET, runtime, dynamic } from '@gradial/aci/next/asset-route';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { createGradialMiddleware } from '@gradial/aci/next/middleware';
|
|
2
|
-
import { createVercelPersonalizationFromEnv } from '@gradial/aci/next/vercel-personalization';
|
|
3
|
-
|
|
4
|
-
export default createGradialMiddleware({
|
|
5
|
-
personalization: createVercelPersonalizationFromEnv(),
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export const config = {
|
|
9
|
-
runtime: 'nodejs',
|
|
10
|
-
matcher: [
|
|
11
|
-
'/((?!_next(?:/|$)|api(?:/|$)|collect(?:/|$)|gradial/assets(?:/|$)|favicon\\.ico$).*)',
|
|
12
|
-
{
|
|
13
|
-
source: '/:path*',
|
|
14
|
-
has: [{ type: 'header', key: 'x-gradial-framework-origin-auth' }],
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
source: '/:path*',
|
|
18
|
-
has: [{ type: 'header', key: 'x-baremetal-site-id' }],
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
source: '/:path*',
|
|
22
|
-
has: [{ type: 'header', key: 'x-baremetal-release-id' }],
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
source: '/:path*',
|
|
26
|
-
has: [{ type: 'header', key: 'x-aci-content-ref' }],
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
source: '/:path*',
|
|
30
|
-
has: [{ type: 'header', key: 'x-baremetal-content-base-url' }],
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
source: '/:path*',
|
|
34
|
-
has: [{ type: 'header', key: 'x-aci-content-path' }],
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
source: '/:path*',
|
|
38
|
-
has: [{ type: 'query', key: '__aci_content_path' }],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { createGradialMiddleware } from '@gradial/aci/next/middleware';
|
|
2
|
-
|
|
3
|
-
export default createGradialMiddleware();
|
|
4
|
-
|
|
5
|
-
// The matcher value below is inlined for Next.js static analysis compatibility.
|
|
6
|
-
// Source of truth: aciMiddlewareMatcher from '@gradial/aci/next/middleware'.
|
|
7
|
-
// The conformance check verifies this stays in sync with the SDK export.
|
|
8
|
-
export const config = {
|
|
9
|
-
matcher: [
|
|
10
|
-
'/((?!_next(?:/|$)|api(?:/|$)|collect(?:/|$)|gradial/assets(?:/|$)|favicon\\.ico$).*)',
|
|
11
|
-
{
|
|
12
|
-
source: '/:path*',
|
|
13
|
-
has: [{ type: 'header', key: 'x-gradial-framework-origin-auth' }],
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
source: '/:path*',
|
|
17
|
-
has: [{ type: 'header', key: 'x-baremetal-site-id' }],
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
source: '/:path*',
|
|
21
|
-
has: [{ type: 'header', key: 'x-baremetal-release-id' }],
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
source: '/:path*',
|
|
25
|
-
has: [{ type: 'header', key: 'x-aci-content-ref' }],
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
source: '/:path*',
|
|
29
|
-
has: [{ type: 'header', key: 'x-baremetal-content-base-url' }],
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
source: '/:path*',
|
|
33
|
-
has: [{ type: 'header', key: 'x-aci-content-path' }],
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
source: '/:path*',
|
|
37
|
-
has: [{ type: 'query', key: '__aci_content_path' }],
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
};
|