@kywi-software/mcp 0.9.0 → 0.11.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/AGENT-PATTERNS.md +15 -13
- package/package.json +3 -3
package/AGENT-PATTERNS.md
CHANGED
|
@@ -441,20 +441,22 @@ interchangeable.
|
|
|
441
441
|
page is complete with JavaScript off. This is the default for anything the
|
|
442
442
|
server can know — rule-based audiences (UTM, referrer, the `kywi_audience`
|
|
443
443
|
pin) and A/B experiments. Since 0.6.3 it also renders in the layout editor as
|
|
444
|
-
a badged block with
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
444
|
+
a badged block with a **variant switcher** (internal editor code —
|
|
445
|
+
`activeArms`, the `VariantArm` type, `data-arm-id` — still says "arm"; the
|
|
446
|
+
persisted layout field is `variants`), each variant editable with the
|
|
447
|
+
ordinary section/column/module tools, so server-resolution no longer costs
|
|
448
|
+
the owner their editing surface. Since kywi-cms#119, the owner doesn't need
|
|
449
|
+
an agent to hand-author this shape at all: the section chrome — in the
|
|
450
|
+
admin layout editor and in the in-place front-of-site overlay alike —
|
|
451
|
+
offers **Personalize this section** / **A/B test** actions that wrap an
|
|
452
|
+
ordinary section into a section-level variant container on the spot,
|
|
453
|
+
seeding the default variant from the section's current content and
|
|
454
|
+
opening straight into its config (audience/experiment picker included).
|
|
455
|
+
An agent only needs to reach for `update_layout` when scripting bulk
|
|
456
|
+
changes or building a container the UI can't reach.
|
|
455
457
|
- **Module-level** — the `variantContainer` *module*, placed in a column; its
|
|
456
|
-
|
|
457
|
-
content}]`). Every
|
|
458
|
+
variants are HTML strings (`defaultContent`, `variants: [{audienceId, label,
|
|
459
|
+
content}]`). Every variant ships in the HTML (default visible, the rest
|
|
458
460
|
`display:none`) and the browser runtime reveals the matching one. Use it
|
|
459
461
|
**only for signals the server cannot read at first paint** — in practice, a
|
|
460
462
|
self-ID answer held in `localStorage`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kywi-software/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Model Context Protocol servers for Kywi CMS — a site server (content/nav/media over the REST API) and a developer server (kywi.config.ts scaffolding and mutation).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
49
49
|
"zod": "^3.25.0",
|
|
50
|
-
"@kywi-software/
|
|
51
|
-
"@kywi-software/
|
|
50
|
+
"@kywi-software/sdk": "0.11.0",
|
|
51
|
+
"@kywi-software/core": "0.11.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/node": "^20.0.0",
|