@prenta/plugin-ai 0.6.0
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 +326 -0
- package/LICENSE +21 -0
- package/README.md +29 -0
- package/dist/__tests__/alt-text-prompt.test.d.ts +2 -0
- package/dist/__tests__/alt-text-prompt.test.d.ts.map +1 -0
- package/dist/__tests__/alt-text-prompt.test.js +15 -0
- package/dist/__tests__/alt-text-prompt.test.js.map +1 -0
- package/dist/__tests__/audit.test.d.ts +2 -0
- package/dist/__tests__/audit.test.d.ts.map +1 -0
- package/dist/__tests__/audit.test.js +65 -0
- package/dist/__tests__/audit.test.js.map +1 -0
- package/dist/__tests__/content-generator.test.d.ts +2 -0
- package/dist/__tests__/content-generator.test.d.ts.map +1 -0
- package/dist/__tests__/content-generator.test.js +200 -0
- package/dist/__tests__/content-generator.test.js.map +1 -0
- package/dist/__tests__/hooks-embedding-noprovider.test.d.ts +2 -0
- package/dist/__tests__/hooks-embedding-noprovider.test.d.ts.map +1 -0
- package/dist/__tests__/hooks-embedding-noprovider.test.js +32 -0
- package/dist/__tests__/hooks-embedding-noprovider.test.js.map +1 -0
- package/dist/__tests__/hooks.test.d.ts +2 -0
- package/dist/__tests__/hooks.test.d.ts.map +1 -0
- package/dist/__tests__/hooks.test.js +124 -0
- package/dist/__tests__/hooks.test.js.map +1 -0
- package/dist/__tests__/http.test.d.ts +2 -0
- package/dist/__tests__/http.test.d.ts.map +1 -0
- package/dist/__tests__/http.test.js +44 -0
- package/dist/__tests__/http.test.js.map +1 -0
- package/dist/__tests__/index.test.d.ts +2 -0
- package/dist/__tests__/index.test.d.ts.map +1 -0
- package/dist/__tests__/index.test.js +35 -0
- package/dist/__tests__/index.test.js.map +1 -0
- package/dist/__tests__/media-vision.test.d.ts +2 -0
- package/dist/__tests__/media-vision.test.d.ts.map +1 -0
- package/dist/__tests__/media-vision.test.js +83 -0
- package/dist/__tests__/media-vision.test.js.map +1 -0
- package/dist/__tests__/meta-generator.test.d.ts +2 -0
- package/dist/__tests__/meta-generator.test.d.ts.map +1 -0
- package/dist/__tests__/meta-generator.test.js +28 -0
- package/dist/__tests__/meta-generator.test.js.map +1 -0
- package/dist/__tests__/plugin-config.test.d.ts +2 -0
- package/dist/__tests__/plugin-config.test.d.ts.map +1 -0
- package/dist/__tests__/plugin-config.test.js +104 -0
- package/dist/__tests__/plugin-config.test.js.map +1 -0
- package/dist/__tests__/prompt.test.d.ts +2 -0
- package/dist/__tests__/prompt.test.d.ts.map +1 -0
- package/dist/__tests__/prompt.test.js +28 -0
- package/dist/__tests__/prompt.test.js.map +1 -0
- package/dist/admin/AIScorePanel.d.ts +19 -0
- package/dist/admin/AIScorePanel.d.ts.map +1 -0
- package/dist/admin/AIScorePanel.js +52 -0
- package/dist/admin/AIScorePanel.js.map +1 -0
- package/dist/admin/BrandVoiceSettings.d.ts +11 -0
- package/dist/admin/BrandVoiceSettings.d.ts.map +1 -0
- package/dist/admin/BrandVoiceSettings.js +162 -0
- package/dist/admin/BrandVoiceSettings.js.map +1 -0
- package/dist/admin/ContentScoreDashboard.d.ts +15 -0
- package/dist/admin/ContentScoreDashboard.d.ts.map +1 -0
- package/dist/admin/ContentScoreDashboard.js +64 -0
- package/dist/admin/ContentScoreDashboard.js.map +1 -0
- package/dist/admin/WritingAssistantToolbar.d.ts +13 -0
- package/dist/admin/WritingAssistantToolbar.d.ts.map +1 -0
- package/dist/admin/WritingAssistantToolbar.js +49 -0
- package/dist/admin/WritingAssistantToolbar.js.map +1 -0
- package/dist/audit/document-auditor.d.ts +82 -0
- package/dist/audit/document-auditor.d.ts.map +1 -0
- package/dist/audit/document-auditor.js +184 -0
- package/dist/audit/document-auditor.js.map +1 -0
- package/dist/brand/consistency-checker.d.ts +17 -0
- package/dist/brand/consistency-checker.d.ts.map +1 -0
- package/dist/brand/consistency-checker.js +47 -0
- package/dist/brand/consistency-checker.js.map +1 -0
- package/dist/brand/profile-builder.d.ts +10 -0
- package/dist/brand/profile-builder.d.ts.map +1 -0
- package/dist/brand/profile-builder.js +94 -0
- package/dist/brand/profile-builder.js.map +1 -0
- package/dist/brand/voice-profile.d.ts +30 -0
- package/dist/brand/voice-profile.d.ts.map +1 -0
- package/dist/brand/voice-profile.js +2 -0
- package/dist/brand/voice-profile.js.map +1 -0
- package/dist/collections.d.ts +3 -0
- package/dist/collections.d.ts.map +1 -0
- package/dist/collections.js +2 -0
- package/dist/collections.js.map +1 -0
- package/dist/fields.d.ts +3 -0
- package/dist/fields.d.ts.map +1 -0
- package/dist/fields.js +2 -0
- package/dist/fields.js.map +1 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +84 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +76 -0
- package/dist/index.js.map +1 -0
- package/dist/links/smart-links.d.ts +18 -0
- package/dist/links/smart-links.d.ts.map +1 -0
- package/dist/links/smart-links.js +44 -0
- package/dist/links/smart-links.js.map +1 -0
- package/dist/media/alt-text-generator.d.ts +27 -0
- package/dist/media/alt-text-generator.d.ts.map +1 -0
- package/dist/media/alt-text-generator.js +68 -0
- package/dist/media/alt-text-generator.js.map +1 -0
- package/dist/media/alt-text-prompt.d.ts +6 -0
- package/dist/media/alt-text-prompt.d.ts.map +1 -0
- package/dist/media/alt-text-prompt.js +32 -0
- package/dist/media/alt-text-prompt.js.map +1 -0
- package/dist/media/auto-tagger.d.ts +30 -0
- package/dist/media/auto-tagger.d.ts.map +1 -0
- package/dist/media/auto-tagger.js +54 -0
- package/dist/media/auto-tagger.js.map +1 -0
- package/dist/media/json.d.ts +4 -0
- package/dist/media/json.d.ts.map +1 -0
- package/dist/media/json.js +8 -0
- package/dist/media/json.js.map +1 -0
- package/dist/page-builder/generate.d.ts +23 -0
- package/dist/page-builder/generate.d.ts.map +1 -0
- package/dist/page-builder/generate.js +422 -0
- package/dist/page-builder/generate.js.map +1 -0
- package/dist/page-builder/index.d.ts +3 -0
- package/dist/page-builder/index.d.ts.map +1 -0
- package/dist/page-builder/index.js +2 -0
- package/dist/page-builder/index.js.map +1 -0
- package/dist/prompt.d.ts +30 -0
- package/dist/prompt.d.ts.map +1 -0
- package/dist/prompt.js +46 -0
- package/dist/prompt.js.map +1 -0
- package/dist/providers/anthropic.d.ts +8 -0
- package/dist/providers/anthropic.d.ts.map +1 -0
- package/dist/providers/anthropic.js +156 -0
- package/dist/providers/anthropic.js.map +1 -0
- package/dist/providers/http.d.ts +25 -0
- package/dist/providers/http.d.ts.map +1 -0
- package/dist/providers/http.js +40 -0
- package/dist/providers/http.js.map +1 -0
- package/dist/providers/index.d.ts +49 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +35 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/openai.d.ts +7 -0
- package/dist/providers/openai.d.ts.map +1 -0
- package/dist/providers/openai.js +143 -0
- package/dist/providers/openai.js.map +1 -0
- package/dist/scoring/accessibility.d.ts +24 -0
- package/dist/scoring/accessibility.d.ts.map +1 -0
- package/dist/scoring/accessibility.js +87 -0
- package/dist/scoring/accessibility.js.map +1 -0
- package/dist/scoring/brand-alignment.d.ts +12 -0
- package/dist/scoring/brand-alignment.d.ts.map +1 -0
- package/dist/scoring/brand-alignment.js +48 -0
- package/dist/scoring/brand-alignment.js.map +1 -0
- package/dist/scoring/composite.d.ts +19 -0
- package/dist/scoring/composite.d.ts.map +1 -0
- package/dist/scoring/composite.js +38 -0
- package/dist/scoring/composite.js.map +1 -0
- package/dist/scoring/freshness.d.ts +15 -0
- package/dist/scoring/freshness.d.ts.map +1 -0
- package/dist/scoring/freshness.js +35 -0
- package/dist/scoring/freshness.js.map +1 -0
- package/dist/scoring/readability.d.ts +16 -0
- package/dist/scoring/readability.d.ts.map +1 -0
- package/dist/scoring/readability.js +77 -0
- package/dist/scoring/readability.js.map +1 -0
- package/dist/scoring/seo-score.d.ts +26 -0
- package/dist/scoring/seo-score.d.ts.map +1 -0
- package/dist/scoring/seo-score.js +119 -0
- package/dist/scoring/seo-score.js.map +1 -0
- package/dist/search/clustering.d.ts +20 -0
- package/dist/search/clustering.d.ts.map +1 -0
- package/dist/search/clustering.js +89 -0
- package/dist/search/clustering.js.map +1 -0
- package/dist/search/embeddings.d.ts +14 -0
- package/dist/search/embeddings.d.ts.map +1 -0
- package/dist/search/embeddings.js +42 -0
- package/dist/search/embeddings.js.map +1 -0
- package/dist/search/semantic-search.d.ts +31 -0
- package/dist/search/semantic-search.d.ts.map +1 -0
- package/dist/search/semantic-search.js +59 -0
- package/dist/search/semantic-search.js.map +1 -0
- package/dist/translation/translator.d.ts +24 -0
- package/dist/translation/translator.d.ts.map +1 -0
- package/dist/translation/translator.js +48 -0
- package/dist/translation/translator.js.map +1 -0
- package/dist/writing/assistant.d.ts +28 -0
- package/dist/writing/assistant.d.ts.map +1 -0
- package/dist/writing/assistant.js +126 -0
- package/dist/writing/assistant.js.map +1 -0
- package/dist/writing/content-generator.d.ts +107 -0
- package/dist/writing/content-generator.d.ts.map +1 -0
- package/dist/writing/content-generator.js +290 -0
- package/dist/writing/content-generator.js.map +1 -0
- package/dist/writing/inline-suggestions.d.ts +18 -0
- package/dist/writing/inline-suggestions.d.ts.map +1 -0
- package/dist/writing/inline-suggestions.js +41 -0
- package/dist/writing/inline-suggestions.js.map +1 -0
- package/dist/writing/meta-generator.d.ts +19 -0
- package/dist/writing/meta-generator.d.ts.map +1 -0
- package/dist/writing/meta-generator.js +68 -0
- package/dist/writing/meta-generator.js.map +1 -0
- package/package.json +43 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
# @actuate-media/plugin-ai
|
|
2
|
+
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5eea995: Product rename: ActuateCMS is now **Prenta**. Every package moves from the
|
|
8
|
+
`@actuate-media/*` scope to `@prenta/*` with simplified names (`@prenta/core`,
|
|
9
|
+
`@prenta/admin`, `create-prenta`), and version numbers continue from where the
|
|
10
|
+
old scope left off.
|
|
11
|
+
|
|
12
|
+
This is a clean break — no backwards-compat aliases:
|
|
13
|
+
- **npm packages**: `@actuate-media/cms-core` → `@prenta/core`,
|
|
14
|
+
`@actuate-media/cms-admin` → `@prenta/admin`, all other packages keep their
|
|
15
|
+
suffix under `@prenta/*`. `create-actuate-cms` → `create-prenta`
|
|
16
|
+
(`npm create prenta`), `create-actuate-astro` → `create-prenta-astro`.
|
|
17
|
+
CLI bins: `actuate`/`actuate-cms` → `prenta`/`prenta-cms`; `actuate-mcp` →
|
|
18
|
+
`prenta-mcp`.
|
|
19
|
+
- **Database**: migration `0012_rename_to_prenta` renames all 36 `actuate_*`
|
|
20
|
+
tables to `prenta_*` in place (plus prefixed constraints, indexes, and
|
|
21
|
+
sequences). Run `prisma migrate deploy` when upgrading.
|
|
22
|
+
- **Runtime identifiers**: `getActuateConfig` → `getPrentaConfig`,
|
|
23
|
+
`handleActuateAPI` → `handlePrentaAPI`, `ActuateClient` → `PrentaClient`,
|
|
24
|
+
`ActuateDB` → `PrentaDB`, config file `actuate.config.ts` →
|
|
25
|
+
`prenta.config.ts`, CSS scopes `.actuate-admin`/`.actuate-canvas` →
|
|
26
|
+
`.prenta-admin`/`.prenta-canvas`, preview protocol `actuate-preview:*` →
|
|
27
|
+
`prenta-preview:*`, webhook headers `X-Actuate-*` → `X-Prenta-*`, session
|
|
28
|
+
cookie `actuate_session` → `prenta_session`, env vars `ACTUATE_*` →
|
|
29
|
+
`PRENTA_*`, purge route `/api/actuate/purge` → `/api/prenta/purge`.
|
|
30
|
+
- **Sessions and webhooks**: all sessions reset on upgrade (cookie + JWT issuer
|
|
31
|
+
changed); webhook consumers must re-verify signatures against the new
|
|
32
|
+
`X-Prenta-*` headers.
|
|
33
|
+
|
|
34
|
+
The old `@actuate-media/*` packages are deprecated on npm and will receive no
|
|
35
|
+
further releases.
|
|
36
|
+
|
|
37
|
+
## 0.5.6
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- daf91b4: Fix accessibility scoring penalizing every image as missing alt text.
|
|
42
|
+
|
|
43
|
+
The afterUpdate content-scoring hook parsed images with a single regex whose
|
|
44
|
+
greedy `[^>]*` consumed the rest of the `<img>` tag before the optional
|
|
45
|
+
`alt="…"` group, so `alt` was never captured and every image — even ones with
|
|
46
|
+
valid alt text — was scored as missing-alt. Each tag's `src`/`alt` are now
|
|
47
|
+
extracted independently, so present alt text is credited correctly.
|
|
48
|
+
|
|
49
|
+
## 0.5.5
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- e25cd48: Standardize React peer ranges to `^18.0.0 || ^19.0.0`.
|
|
54
|
+
|
|
55
|
+
Plugin React peer ranges were inconsistent: `plugin-ai`, `plugin-commerce`, and
|
|
56
|
+
`plugin-seo` pinned `react: ^19.2.0` (excluding React 18, which `cms-core`
|
|
57
|
+
supports via `react >=18.0.0`), while the others used `^18.0.0 || ^19.2.0`
|
|
58
|
+
(excluding React 19.0/19.1). Either produced an `ERESOLVE` install failure for
|
|
59
|
+
consumers on the excluded versions. All bundled plugins now declare `react`
|
|
60
|
+
(and `react-dom` where already peered) as `^18.0.0 || ^19.0.0`.
|
|
61
|
+
|
|
62
|
+
## 0.5.4
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- cd8a061: Remove dead sidebar nav from bundled plugins and guard the whole class.
|
|
67
|
+
|
|
68
|
+
`plugin-ai`, `plugin-commerce`, and `plugin-blocks` each advertised
|
|
69
|
+
`adminNavItems` paths (`/ai/*`, `/commerce/*`, `/blocks`) that the admin router
|
|
70
|
+
has no view for — plugins cannot register views, and these plugins register no
|
|
71
|
+
collection backing those paths — so every one of those sidebar links landed on
|
|
72
|
+
the 404 page. The commerce items were also duplicates of the working collection
|
|
73
|
+
nav (its collections already appear under the "Commerce" group at their real
|
|
74
|
+
`/<slug>` routes).
|
|
75
|
+
- Dropped the dead `adminNavItems` from all three plugins. Commerce collections
|
|
76
|
+
remain reachable at `/products`, `/orders`, `/discounts`, …; plugin-ai and
|
|
77
|
+
plugin-blocks are backend/page-builder plugins with no standalone admin route.
|
|
78
|
+
- Added `cms-admin`'s `router/admin-routes` resolver (`adminPathResolves`) plus
|
|
79
|
+
a table-driven test asserting **every** bundled plugin's nav paths resolve to a
|
|
80
|
+
real view, and a drift test that keeps the known-route list in sync with
|
|
81
|
+
`AdminRoot`. This is the systemic guard for a bug class that has now shipped in
|
|
82
|
+
published packages three times.
|
|
83
|
+
|
|
84
|
+
## 0.5.3
|
|
85
|
+
|
|
86
|
+
### Patch Changes
|
|
87
|
+
|
|
88
|
+
- c231dd0: Add `definePlugin` and migrate all 10 plugins onto the canonical `PluginDefinition` contract.
|
|
89
|
+
|
|
90
|
+
cms-core already exported `PluginDefinition`, but every plugin hand-rolled a
|
|
91
|
+
local `ActuatePlugin` interface — a lossy subset that dropped `version`/`init`
|
|
92
|
+
and, in blocks/email/ai, widened hook payloads to `unknown[]`/`event: string`.
|
|
93
|
+
That's copy-paste drift with no shared source of truth.
|
|
94
|
+
|
|
95
|
+
`cms-core` now exports `definePlugin(plugin: PluginDefinition)` (an identity
|
|
96
|
+
helper like `defineConfig`), and each plugin imports the canonical type instead
|
|
97
|
+
of its own: the local `ActuatePlugin` interfaces are deleted, factory return
|
|
98
|
+
types are `PluginDefinition`, and the widened `hooks.ts` types are retyped as
|
|
99
|
+
`PluginHook[]`. Type-only change — no runtime behavior, plugin `name`, or config
|
|
100
|
+
options changed. Net −69 lines.
|
|
101
|
+
|
|
102
|
+
- 325694f: Import `definePlugin` from the lightweight `@actuate-media/cms-core/config`
|
|
103
|
+
entry instead of the barrel.
|
|
104
|
+
|
|
105
|
+
The plugin-definition migration imported the `definePlugin` **value** from
|
|
106
|
+
`@actuate-media/cms-core`, which pulls the entire cms-core barrel (graphql,
|
|
107
|
+
sharp, sentry, codegen) into every plugin's runtime — bundle bloat for
|
|
108
|
+
consumers and, under parallel test load, a timeout. The `/config` subpath exists
|
|
109
|
+
precisely to avoid the barrel. Types stay as erased `import type`, so nothing
|
|
110
|
+
heavy is loaded. No API or behavior change.
|
|
111
|
+
|
|
112
|
+
## 0.5.2
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- 041a228: Add the MIT `license` field to every published package (previously missing) and correct `repository.url` to `github.com/actuate-media/actuatecms` (13 packages carried the wrong org).
|
|
117
|
+
|
|
118
|
+
## 0.5.1
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- 4afb589: WCAG-aligned AI alt text: improved vision prompts, feature-gated `/ai/media-metadata` with `aiAltText` suggestions, post-upload auto-suggest in Media, MCP `generate_media_alt` tool, and validation warnings for static image paths outside the media library.
|
|
123
|
+
|
|
124
|
+
## 0.5.0
|
|
125
|
+
|
|
126
|
+
### Minor Changes
|
|
127
|
+
|
|
128
|
+
- bf00622: Add a GEO "key takeaway" field — a concise, citable 1-2 sentence page summary
|
|
129
|
+
for generative answer engines.
|
|
130
|
+
- Editable in the document SEO panel and the SEO Operations Center, each with an
|
|
131
|
+
AI Generate button.
|
|
132
|
+
- New `generateKeyTakeaway()` in plugin-ai and a `keyTakeaway` branch on
|
|
133
|
+
`POST /ai/seo/generate-field`.
|
|
134
|
+
- Rendered automatically as the Schema.org `abstract` on the page/article node,
|
|
135
|
+
as a meta-description fallback, and as the preferred `llms.txt` description.
|
|
136
|
+
- Stored as `data.keyTakeaway` (or `pageSettings.keyTakeaway`).
|
|
137
|
+
|
|
138
|
+
## 0.4.1
|
|
139
|
+
|
|
140
|
+
### Patch Changes
|
|
141
|
+
|
|
142
|
+
- 854152d: Developer experience improvements from external-consumer feedback:
|
|
143
|
+
- Every published package now ships its `CHANGELOG.md` in the npm tarball, and packages that were missing a `README.md` (cli, cms-admin, cms-core, import, platform-vercel, all plugins, sections-react) now have one — so release notes and usage docs are visible on npmjs.com and in `node_modules`.
|
|
144
|
+
- New client-safe form validation entry point: `@actuate-media/cms-core/forms/client` exports `validateFormFieldClient()`, `validateFormValuesClient()`, visibility/conditional helpers, and the exact `FORM_EMAIL_RE` / `FORM_PHONE_RE` regexes the server enforces — zero Node dependencies, so public-site forms can mirror server rules without reimplementing them. The server validator now imports the same primitives, so client and server can never drift.
|
|
145
|
+
|
|
146
|
+
## 0.4.0
|
|
147
|
+
|
|
148
|
+
### Minor Changes
|
|
149
|
+
|
|
150
|
+
- 01eef99: AI reliability & safety hardening from the production-readiness audit.
|
|
151
|
+
- **New optional `analyzeImage` provider capability (multimodal vision).** OpenAI and Anthropic providers implement it; callers feature-detect and fall back to a text-only heuristic. Previously "vision" features (alt-text, auto-tagging) only received a URL string and hallucinated their output.
|
|
152
|
+
- **Safe-search now fails closed.** `autoTagImage` returns `isSafe: false` when the model output can't be confidently parsed as safe, instead of defaulting to safe.
|
|
153
|
+
- **Hard timeouts on every provider request.** All `fetch` calls use `AbortSignal.timeout`, so a hung upstream connection can no longer hold a serverless function open indefinitely.
|
|
154
|
+
- **Prompt-injection isolation.** Untrusted free-text is wrapped in delimited fences across the writing assistant, translator, meta-generator, and content-generator paths.
|
|
155
|
+
- **Library-level input/token caps** clamp oversized input and output-token budgets even when a route-level cap is bypassed.
|
|
156
|
+
- **Provider error bodies are truncated** before being surfaced in thrown error messages.
|
|
157
|
+
- `proofread` output is validated against the allowed change-type enum.
|
|
158
|
+
|
|
159
|
+
## 0.3.0
|
|
160
|
+
|
|
161
|
+
### Minor Changes
|
|
162
|
+
|
|
163
|
+
- 313a23f: Add Slice F — AI quality pass.
|
|
164
|
+
|
|
165
|
+
`plugin-ai` exposes a new `auditDocument()` composer that combines SEO,
|
|
166
|
+
readability (Flesch-Kincaid / Gunning Fog / SMOG averaged + remapped to a
|
|
167
|
+
0-100 score), accessibility, and freshness scoring into a single
|
|
168
|
+
composite grade with prioritized actionable issues. The composer is
|
|
169
|
+
deterministic — it never calls an LLM — so it's cheap enough to invoke
|
|
170
|
+
on every save or debounced keystroke.
|
|
171
|
+
|
|
172
|
+
`cms-core` adds two HTTP endpoints:
|
|
173
|
+
- `POST /ai/audit-document` — runs the composite audit against a stored
|
|
174
|
+
document (`{ collection, id }`) or ad-hoc content. Honors field-level
|
|
175
|
+
access control when loading from the DB.
|
|
176
|
+
- `POST /ai/suggest-internal-links` — scans published documents for
|
|
177
|
+
phrases the supplied content could link to, returning ranked
|
|
178
|
+
anchor-text + target-URL suggestions. Optionally scopes to a single
|
|
179
|
+
collection.
|
|
180
|
+
|
|
181
|
+
`mcp-server` exposes both endpoints as MCP tools (`audit_document` and
|
|
182
|
+
`suggest_internal_links`) so AI agents can grade drafts and propose
|
|
183
|
+
internal links before publish.
|
|
184
|
+
|
|
185
|
+
Docs: `docs/ai-quality-audit.md`.
|
|
186
|
+
|
|
187
|
+
## 0.2.1
|
|
188
|
+
|
|
189
|
+
### Patch Changes
|
|
190
|
+
|
|
191
|
+
- 4433301: Phase 2 Slice D — Content Relations & References.
|
|
192
|
+
- **cms-core**: runtime support for the `relationship` field type — referential validation and opt-in depth-1 population.
|
|
193
|
+
- **Validation**: every create/update verifies that referenced IDs point at live (non-deleted) documents in the declared target collection(s). Broken references fail with a precise error (`Relation field "author" references document "team-x42" which does not exist in collection "team".`). Updates only re-validate fields the caller actually touched.
|
|
194
|
+
- **Population**: pass `?populate=author,relatedPosts` (or `*`) on `GET /collections/:slug/:id` and `GET /resolve` to expand stored IDs into `{ id, collection, title, slug, status, data }` summaries. Batches by target collection (≤ 1 query per collection per request); soft-deleted refs fall back to raw IDs.
|
|
195
|
+
- **Presets**: new `relationField()` and `relatedDocsField()` helpers. Built-in collection presets now wire `posts.relatedPosts → posts`, `case-studies.services → services` (the `locations.servicesOffered → services` relation continues unchanged).
|
|
196
|
+
- **Multi-target**: `relationTo: ['posts', 'case-studies']` continues to work — validator accepts a doc if it lives in any target.
|
|
197
|
+
- Public API: `validateRelations`, `populateRelations`, `collectRelationRefs`, `parsePopulateParam`, `buildRelationLookup`, plus types `RelationLookup`, `RelationSummary`, `PopulateOptions`.
|
|
198
|
+
- **plugin-ai**: the document content generator now skips `relationship` fields when building the LLM prompt (the model can't know your document IDs) and accepts ID strings only on output. Prevents the AI from inventing broken references that the validator would then reject.
|
|
199
|
+
- **23 new tests** in `cms-core/src/__tests__/fields/relations.test.ts` covering ref collection, validation, population, populate-param parsing, multi-target relations, and array-nested relations. Full suite: 620 cms-core tests passing.
|
|
200
|
+
- **Docs**: new `docs/relations.md` (declaration, validation, populate, admin UI, common patterns), `?populate=` documented in `docs/api-reference.md` for both `/collections/:slug/:id` and `/resolve`.
|
|
201
|
+
- **Admin UI**: the existing `RelationshipField` picker continues to work — search, multi-select, status badges, "Create new" shortcut. No changes required.
|
|
202
|
+
|
|
203
|
+
## 0.2.0
|
|
204
|
+
|
|
205
|
+
### Minor Changes
|
|
206
|
+
|
|
207
|
+
- e6a18b5: Phase 2 Slice C — AI Content Authoring for any collection.
|
|
208
|
+
- **plugin-ai**: new `generateDocumentContent()` helper that maps a prompt onto a collection's field schema and returns structured field data ready to persist. Supports tone, target audience, brand voice profile, and existing-content context. Coerces LLM output to declared field types (numbers, booleans, dates, select options, array items) and drops fields the schema doesn't declare.
|
|
209
|
+
- **cms-core**: new `POST /collections/:slug/ai-create` endpoint — the non-page counterpart to `/page-builder/create`. Generates a complete document for any collection, persists as draft, optionally publishes via a follow-up update when the caller has admin scope. Refuses page-builder collections (use `/page-builder/create` instead). Hard caps prompt at 4000 chars and shares the per-user 20/hour AI rate-limit bucket. Returns a `warning` field when create succeeds but publish is denied.
|
|
210
|
+
- **mcp-server**: six new tools — `create_in_collection` (generic) plus per-type sugar tools `create_blog_post`, `create_case_study` (with `clientName` / `industry` hints), `create_service` (`category` hint), `create_location` (`cityState` hint), and `create_team_member` (`name` / `role` hints). Each per-type tool targets the conventional collection slug shipped by the cms-core collection presets, with an explicit `collection` override for sites using custom slugs.
|
|
211
|
+
- 19 new tests (10 unit tests in plugin-ai for the content generator, 9 integration tests in cms-core for the API endpoint covering auth, validation, persistence, publish flow, and the page-builder refusal path).
|
|
212
|
+
- Docs: updated `docs/api-reference.md` with the new endpoint, `docs/mcp.md` and `packages/mcp-server/README.md` with the new tools and example agent prompts.
|
|
213
|
+
|
|
214
|
+
## 0.1.0
|
|
215
|
+
|
|
216
|
+
### Minor Changes
|
|
217
|
+
|
|
218
|
+
- c3c55c7: Add AI-powered page generation pipeline with prompt-to-page workflow.
|
|
219
|
+
|
|
220
|
+
**cms-core**: AI pipeline types (GenerationContext, GenerationStep, StepResult, GenerationResult), prompt template builders for structure/content/SEO/accessibility steps, deterministic accessibility auto-fix engine (auditAccessibility, fixAccessibility), and API endpoints for /page-builder/generate, /page-builder/generate-block, /page-builder/audit-a11y, and /page-builder/fix-a11y.
|
|
221
|
+
|
|
222
|
+
**plugin-ai**: Multi-step generatePage() pipeline that runs structure → content → SEO → accessibility steps sequentially via AIProvider, with validation retry, graceful fallback, progress callbacks, and token tracking. Single-block generateBlockContent() for context-aware content generation.
|
|
223
|
+
|
|
224
|
+
**cms-admin**: AI Generate Dialog with prompt input, tone selection, step toggles, business context fields, real-time generation progress, and step-by-step review with accept/regenerate flow. AI Block Assist button for one-click content generation per block. AI button integrated into the builder toolbar.
|
|
225
|
+
|
|
226
|
+
## 0.0.11
|
|
227
|
+
|
|
228
|
+
### Patch Changes
|
|
229
|
+
|
|
230
|
+
- b5de8dd: Fix ESM module resolution and dependency duplication issues reported during consumer integration.
|
|
231
|
+
- Add "default" export condition to all platform and plugin packages so they resolve correctly from require() contexts (fixes ERR_PACKAGE_PATH_NOT_EXPORTED in next.config.ts and serverless functions).
|
|
232
|
+
- Move @actuate-media/cms-core from direct dependencies to peerDependencies across all packages to prevent duplicate installations when consumer version ranges don't exactly match the pinned version.
|
|
233
|
+
- Add "prepack" lifecycle script to create-actuate-cms to guarantee dist/ is built before npm publishes the package (fixes empty dist/ in v0.4.0).
|
|
234
|
+
|
|
235
|
+
## 0.0.10
|
|
236
|
+
|
|
237
|
+
### Patch Changes
|
|
238
|
+
|
|
239
|
+
- Updated dependencies [54c7a3b]
|
|
240
|
+
- @actuate-media/cms-core@0.6.0
|
|
241
|
+
|
|
242
|
+
## 0.0.9
|
|
243
|
+
|
|
244
|
+
### Patch Changes
|
|
245
|
+
|
|
246
|
+
- Updated dependencies [c08cf8b]
|
|
247
|
+
- Updated dependencies [80aa939]
|
|
248
|
+
- @actuate-media/cms-core@0.5.0
|
|
249
|
+
|
|
250
|
+
## 0.0.8
|
|
251
|
+
|
|
252
|
+
### Patch Changes
|
|
253
|
+
|
|
254
|
+
- Updated dependencies [f2cf7d7]
|
|
255
|
+
- @actuate-media/cms-core@0.4.0
|
|
256
|
+
|
|
257
|
+
## 0.0.7
|
|
258
|
+
|
|
259
|
+
### Patch Changes
|
|
260
|
+
|
|
261
|
+
- Updated dependencies [0621037]
|
|
262
|
+
- @actuate-media/cms-core@0.3.1
|
|
263
|
+
|
|
264
|
+
## 0.0.6
|
|
265
|
+
|
|
266
|
+
### Patch Changes
|
|
267
|
+
|
|
268
|
+
- Updated dependencies [4e3a5eb]
|
|
269
|
+
- @actuate-media/cms-core@0.3.0
|
|
270
|
+
|
|
271
|
+
## 0.0.5
|
|
272
|
+
|
|
273
|
+
### Patch Changes
|
|
274
|
+
|
|
275
|
+
- Updated dependencies
|
|
276
|
+
- @actuate-media/cms-core@0.2.3
|
|
277
|
+
|
|
278
|
+
## 0.0.4
|
|
279
|
+
|
|
280
|
+
### Patch Changes
|
|
281
|
+
|
|
282
|
+
- Updated dependencies
|
|
283
|
+
- @actuate-media/cms-core@0.2.2
|
|
284
|
+
|
|
285
|
+
## 0.0.3
|
|
286
|
+
|
|
287
|
+
### Patch Changes
|
|
288
|
+
|
|
289
|
+
- Updated dependencies
|
|
290
|
+
- @actuate-media/cms-core@0.2.1
|
|
291
|
+
|
|
292
|
+
## 0.0.2
|
|
293
|
+
|
|
294
|
+
### Patch Changes
|
|
295
|
+
|
|
296
|
+
- 3fd38a2: Fix all 13 integration issues discovered during MaidPro.co deployment
|
|
297
|
+
|
|
298
|
+
**cms-core:**
|
|
299
|
+
- Add .js extensions to all ESM relative imports (58 files)
|
|
300
|
+
- Replace workspace:\* with versioned deps in all packages
|
|
301
|
+
- Add sideEffects:false for proper tree-shaking
|
|
302
|
+
- Subpath exports (/config, /api, /middleware, /next) avoid barrel side effects
|
|
303
|
+
- Stats/search routes use safeCount/safeFindMany for missing Prisma models
|
|
304
|
+
- Ship prisma/cms-schema.prisma with all required CMS models
|
|
305
|
+
- Accept both CMS_SECRET and CMS_SESSION_SECRET with clear error messages
|
|
306
|
+
- Fix hardcoded /admin paths in OAuth flow (now uses getAdminPath())
|
|
307
|
+
- Loosen withActuateCMS and createCMSMiddleware parameter types
|
|
308
|
+
- Auto-inject transpilePackages and serverExternalPackages in withActuateCMS
|
|
309
|
+
- Unify PluginDefinition with ActuatePlugin interface
|
|
310
|
+
|
|
311
|
+
**cms-admin:**
|
|
312
|
+
- Scope all 40+ CSS theme variables to .actuate-admin instead of :root
|
|
313
|
+
- ThemeProvider applies dark class to .actuate-admin, not document.documentElement
|
|
314
|
+
- Scaffold uses (admin)/(site) route groups for full CSS/script isolation
|
|
315
|
+
- Sidebar branding supports custom logo via config.admin.branding
|
|
316
|
+
|
|
317
|
+
**platform-vercel:**
|
|
318
|
+
- Email adapter accepts both `from` and `defaultFrom`
|
|
319
|
+
|
|
320
|
+
**All plugin/platform packages:**
|
|
321
|
+
- Fix ESM .js extensions in compiled output
|
|
322
|
+
- Replace workspace:\* with ^0.1.0 for publishable deps
|
|
323
|
+
|
|
324
|
+
- Updated dependencies [682dac7]
|
|
325
|
+
- Updated dependencies [3fd38a2]
|
|
326
|
+
- @actuate-media/cms-core@0.2.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Actuate Media
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @prenta/plugin-ai
|
|
2
|
+
|
|
3
|
+
AI features for [Prenta CMS](https://github.com/actuate-media/prenta) —
|
|
4
|
+
governed model routing, inline co-author actions, and AI-assisted content
|
|
5
|
+
tooling.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @prenta/plugin-ai
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { aiPlugin } from '@prenta/plugin-ai'
|
|
15
|
+
|
|
16
|
+
export default defineConfig({
|
|
17
|
+
plugins: [aiPlugin()],
|
|
18
|
+
// ...
|
|
19
|
+
})
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Release notes
|
|
23
|
+
|
|
24
|
+
See [CHANGELOG.md](./CHANGELOG.md) (shipped with the package) or the
|
|
25
|
+
[GitHub releases](https://github.com/actuate-media/prenta/releases).
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alt-text-prompt.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/alt-text-prompt.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { normalizeGeneratedAltText } from '../media/alt-text-prompt.js';
|
|
3
|
+
describe('normalizeGeneratedAltText', () => {
|
|
4
|
+
it('returns empty for decorative', () => {
|
|
5
|
+
expect(normalizeGeneratedAltText('anything', true)).toBe('');
|
|
6
|
+
});
|
|
7
|
+
it('strips redundant "image of" prefix', () => {
|
|
8
|
+
expect(normalizeGeneratedAltText('Image of a red bicycle parked outside', false)).toBe('a red bicycle parked outside');
|
|
9
|
+
});
|
|
10
|
+
it('clamps to 125 characters', () => {
|
|
11
|
+
const long = 'a'.repeat(200);
|
|
12
|
+
expect(normalizeGeneratedAltText(long, false).length).toBeLessThanOrEqual(125);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=alt-text-prompt.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alt-text-prompt.test.js","sourceRoot":"","sources":["../../src/__tests__/alt-text-prompt.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,CAAC,yBAAyB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC9D,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,CAAC,yBAAyB,CAAC,uCAAuC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CACpF,8BAA8B,CAC/B,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QAC5B,MAAM,CAAC,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAA;IAChF,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/audit.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { auditDocument } from '../audit/document-auditor.js';
|
|
3
|
+
describe('auditDocument', () => {
|
|
4
|
+
it('returns a composite letter grade and per-dimension scores', () => {
|
|
5
|
+
const result = auditDocument({
|
|
6
|
+
title: 'A solid 30 to 60 character title for SEO',
|
|
7
|
+
metaDescription: 'This is a meta description that sits in the 120-160 character sweet spot for search result snippets and gives readers context.',
|
|
8
|
+
body: 'Pour-over coffee is one of the cleanest ways to extract flavor from beans. Start with fresh roasted whole beans, grind them medium-fine right before brewing, and use water just off the boil. Pour in concentric circles starting from the center to evenly saturate the grounds. A standard recipe is 60 grams of coffee per liter of water. Continue pouring in stages over three minutes, then let the final drawdown finish. The result is a clean, bright cup that highlights the coffee origin character. Practice with one variable at a time — grind size first, then ratio, then pour technique.',
|
|
9
|
+
targetKeyword: 'pour-over coffee',
|
|
10
|
+
headings: ['Getting started', 'Recipe'],
|
|
11
|
+
images: [{ src: 'a.jpg', alt: 'A V60 dripper with fresh grounds' }],
|
|
12
|
+
internalLinks: ['/grinders', '/beans', '/water'],
|
|
13
|
+
});
|
|
14
|
+
expect(result.composite.overall).toBeGreaterThan(0);
|
|
15
|
+
expect(result.composite.grade).toMatch(/[A-F]/);
|
|
16
|
+
expect(result.scores.seo).toBeGreaterThan(0);
|
|
17
|
+
expect(result.scores.readability).toBeGreaterThan(0);
|
|
18
|
+
expect(result.scores.accessibility).toBeGreaterThan(0);
|
|
19
|
+
});
|
|
20
|
+
it('flags structural issues for empty / missing fields', () => {
|
|
21
|
+
const result = auditDocument({ title: '', body: '' });
|
|
22
|
+
const rules = result.issues.map((i) => i.rule);
|
|
23
|
+
expect(rules).toContain('missing-title');
|
|
24
|
+
expect(rules).toContain('missing-meta-description');
|
|
25
|
+
expect(rules).toContain('insufficient-body');
|
|
26
|
+
});
|
|
27
|
+
it('flags images without alt text', () => {
|
|
28
|
+
const result = auditDocument({
|
|
29
|
+
title: 'Coffee article with images',
|
|
30
|
+
body: 'A short body about coffee that fits in our scoring rules.',
|
|
31
|
+
metaDescription: 'A description that meets the 120 char minimum so the SEO scorer is happy with our content here.',
|
|
32
|
+
images: [{ src: 'a.jpg', alt: 'good alt' }, { src: 'b.jpg' }, { src: 'c.jpg', alt: '' }],
|
|
33
|
+
});
|
|
34
|
+
const altIssue = result.issues.find((i) => i.rule === 'missing-alt-text');
|
|
35
|
+
expect(altIssue).toBeTruthy();
|
|
36
|
+
expect(altIssue?.message).toContain('2');
|
|
37
|
+
});
|
|
38
|
+
it('includes a freshness score when timestamps are supplied', () => {
|
|
39
|
+
const old = new Date();
|
|
40
|
+
old.setFullYear(old.getFullYear() - 2);
|
|
41
|
+
const result = auditDocument({
|
|
42
|
+
title: 'Old article',
|
|
43
|
+
body: 'Some body content that is long enough to avoid the insufficient-body check, padded with words for the sake of testing the freshness path correctly across multiple sentences and ideas to provide context.',
|
|
44
|
+
metaDescription: 'A description that meets the 120 char minimum so the SEO scorer is happy with our content here.',
|
|
45
|
+
publishedAt: old,
|
|
46
|
+
contentType: 'blog',
|
|
47
|
+
});
|
|
48
|
+
expect(result.scores.freshness).toBeDefined();
|
|
49
|
+
expect(result.scores.freshness < 50).toBe(true);
|
|
50
|
+
const freshnessIssue = result.issues.find((i) => i.category === 'freshness');
|
|
51
|
+
expect(freshnessIssue).toBeTruthy();
|
|
52
|
+
});
|
|
53
|
+
it('produces lower readability scores for grade-13+ prose', () => {
|
|
54
|
+
const collegeText = Array.from({ length: 10 })
|
|
55
|
+
.map(() => 'The cardiopulmonary ramifications of intermittent hypovolemic perturbations necessitate methodical electrocardiographic surveillance throughout the convalescent interval.')
|
|
56
|
+
.join(' ');
|
|
57
|
+
const collegeResult = auditDocument({
|
|
58
|
+
title: 'A technical article on cardiopulmonary monitoring',
|
|
59
|
+
body: collegeText,
|
|
60
|
+
metaDescription: 'A description that meets the 120 char minimum so the SEO scorer is happy with our content here for tests.',
|
|
61
|
+
});
|
|
62
|
+
expect(collegeResult.scores.readability).toBeLessThan(70);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=audit.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.test.js","sourceRoot":"","sources":["../../src/__tests__/audit.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAE5D,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;QACnE,MAAM,MAAM,GAAG,aAAa,CAAC;YAC3B,KAAK,EAAE,0CAA0C;YACjD,eAAe,EACb,gIAAgI;YAClI,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