@sentientui/mcp 0.18.1 → 0.18.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/dist/{chunk-HEMPCGWX.js → chunk-5TEQLWMW.js} +17 -8
- package/dist/index.cjs +17 -8
- package/dist/index.js +1 -1
- package/dist/lib.cjs +17 -8
- package/dist/lib.js +1 -1
- package/package.json +1 -1
|
@@ -1804,10 +1804,11 @@ time.
|
|
|
1804
1804
|
1. Run \`npx @sentientui/cli init\` (detects Next App/Pages, Vite, Remix, CRA; installs
|
|
1805
1805
|
@sentientui/react; writes .env.local; scaffolds an example). It does NOT edit your layout \u2014
|
|
1806
1806
|
it prints the wrap snippet for step 2.
|
|
1807
|
-
2. Wrap the root layout with <AdaptiveRoot apiKey
|
|
1808
|
-
other React apps use <AdaptiveProvider> from '@sentientui/react')
|
|
1809
|
-
suppressHydrationWarning to <html> \u2014 an inline script sets persona attributes
|
|
1810
|
-
Nothing adapts and nothing is tracked until this wrap is in place.
|
|
1807
|
+
2. Wrap the root layout with <AdaptiveRoot apiKey>{children}</AdaptiveRoot> (from
|
|
1808
|
+
'@sentientui/react/next'; other React apps use <AdaptiveProvider> from '@sentientui/react')
|
|
1809
|
+
and add suppressHydrationWarning to <html> \u2014 an inline script sets persona attributes
|
|
1810
|
+
pre-paint. Nothing adapts and nothing is tracked until this wrap is in place. Declare no
|
|
1811
|
+
components here: every <Adaptive> registers itself when it renders (see Rung 2).
|
|
1811
1812
|
3. \`npm run dev\`, then open the app with \`?sentient_persona=a\` vs
|
|
1812
1813
|
\`?sentient_persona=b\` to see it adapt \u2014 in keyless local mode any key drives the built-in
|
|
1813
1814
|
heuristic. No API key needed. Against a real project the key must be one you declared.
|
|
@@ -1844,9 +1845,17 @@ original:
|
|
|
1844
1845
|
|
|
1845
1846
|
Mount + deploy registers the region. SentientUI writes versions per visitor type in the
|
|
1846
1847
|
dashboard ("Who sees what") \u2014 no redeploy. The children render for holdout traffic, unknown
|
|
1847
|
-
visitor types, types with no version yet, and every error path.
|
|
1848
|
-
|
|
1849
|
-
|
|
1848
|
+
visitor types, types with no version yet, and every error path. Mounted regions are requested
|
|
1849
|
+
in one batched call after mount: the first visit shows the original briefly, then swaps; return
|
|
1850
|
+
visits start from the last version. Keyless local mode renders originals only.
|
|
1851
|
+
|
|
1852
|
+
Optional server preload (Next.js App Router): registrySlotIds={['hero-cta']} for generated
|
|
1853
|
+
regions, components={[{ id, variantIds }]} for code variants, both on AdaptiveRoot \u2014 the first
|
|
1854
|
+
paint then shows the served version. List ONLY ids rendered on every page that AdaptiveRoot
|
|
1855
|
+
wraps (in app/layout.tsx, every route): a declared id is decided on every request, rendered or
|
|
1856
|
+
not, and those visits count as views that can never convert.
|
|
1857
|
+
|
|
1858
|
+
Pass
|
|
1850
1859
|
onFormSubmit to allow form versions; set reportBaselineText={false} on regions wrapping
|
|
1851
1860
|
personalized or account content. (Formerly <AdaptiveSlot>.)
|
|
1852
1861
|
|
|
@@ -2232,7 +2241,7 @@ function registerCellTools(server, client) {
|
|
|
2232
2241
|
}
|
|
2233
2242
|
|
|
2234
2243
|
// src/server.ts
|
|
2235
|
-
var PKG_VERSION = true ? "0.18.
|
|
2244
|
+
var PKG_VERSION = true ? "0.18.2" : "0.0.0-dev";
|
|
2236
2245
|
function createMcpServer(client) {
|
|
2237
2246
|
const server = new McpServer(
|
|
2238
2247
|
{
|
package/dist/index.cjs
CHANGED
|
@@ -1810,10 +1810,11 @@ time.
|
|
|
1810
1810
|
1. Run \`npx @sentientui/cli init\` (detects Next App/Pages, Vite, Remix, CRA; installs
|
|
1811
1811
|
@sentientui/react; writes .env.local; scaffolds an example). It does NOT edit your layout \u2014
|
|
1812
1812
|
it prints the wrap snippet for step 2.
|
|
1813
|
-
2. Wrap the root layout with <AdaptiveRoot apiKey
|
|
1814
|
-
other React apps use <AdaptiveProvider> from '@sentientui/react')
|
|
1815
|
-
suppressHydrationWarning to <html> \u2014 an inline script sets persona attributes
|
|
1816
|
-
Nothing adapts and nothing is tracked until this wrap is in place.
|
|
1813
|
+
2. Wrap the root layout with <AdaptiveRoot apiKey>{children}</AdaptiveRoot> (from
|
|
1814
|
+
'@sentientui/react/next'; other React apps use <AdaptiveProvider> from '@sentientui/react')
|
|
1815
|
+
and add suppressHydrationWarning to <html> \u2014 an inline script sets persona attributes
|
|
1816
|
+
pre-paint. Nothing adapts and nothing is tracked until this wrap is in place. Declare no
|
|
1817
|
+
components here: every <Adaptive> registers itself when it renders (see Rung 2).
|
|
1817
1818
|
3. \`npm run dev\`, then open the app with \`?sentient_persona=a\` vs
|
|
1818
1819
|
\`?sentient_persona=b\` to see it adapt \u2014 in keyless local mode any key drives the built-in
|
|
1819
1820
|
heuristic. No API key needed. Against a real project the key must be one you declared.
|
|
@@ -1850,9 +1851,17 @@ original:
|
|
|
1850
1851
|
|
|
1851
1852
|
Mount + deploy registers the region. SentientUI writes versions per visitor type in the
|
|
1852
1853
|
dashboard ("Who sees what") \u2014 no redeploy. The children render for holdout traffic, unknown
|
|
1853
|
-
visitor types, types with no version yet, and every error path.
|
|
1854
|
-
|
|
1855
|
-
|
|
1854
|
+
visitor types, types with no version yet, and every error path. Mounted regions are requested
|
|
1855
|
+
in one batched call after mount: the first visit shows the original briefly, then swaps; return
|
|
1856
|
+
visits start from the last version. Keyless local mode renders originals only.
|
|
1857
|
+
|
|
1858
|
+
Optional server preload (Next.js App Router): registrySlotIds={['hero-cta']} for generated
|
|
1859
|
+
regions, components={[{ id, variantIds }]} for code variants, both on AdaptiveRoot \u2014 the first
|
|
1860
|
+
paint then shows the served version. List ONLY ids rendered on every page that AdaptiveRoot
|
|
1861
|
+
wraps (in app/layout.tsx, every route): a declared id is decided on every request, rendered or
|
|
1862
|
+
not, and those visits count as views that can never convert.
|
|
1863
|
+
|
|
1864
|
+
Pass
|
|
1856
1865
|
onFormSubmit to allow form versions; set reportBaselineText={false} on regions wrapping
|
|
1857
1866
|
personalized or account content. (Formerly <AdaptiveSlot>.)
|
|
1858
1867
|
|
|
@@ -2238,7 +2247,7 @@ function registerCellTools(server, client) {
|
|
|
2238
2247
|
}
|
|
2239
2248
|
|
|
2240
2249
|
// src/server.ts
|
|
2241
|
-
var PKG_VERSION = true ? "0.18.
|
|
2250
|
+
var PKG_VERSION = true ? "0.18.2" : "0.0.0-dev";
|
|
2242
2251
|
function createMcpServer(client) {
|
|
2243
2252
|
const server = new import_mcp.McpServer(
|
|
2244
2253
|
{
|
package/dist/index.js
CHANGED
package/dist/lib.cjs
CHANGED
|
@@ -1834,10 +1834,11 @@ time.
|
|
|
1834
1834
|
1. Run \`npx @sentientui/cli init\` (detects Next App/Pages, Vite, Remix, CRA; installs
|
|
1835
1835
|
@sentientui/react; writes .env.local; scaffolds an example). It does NOT edit your layout \u2014
|
|
1836
1836
|
it prints the wrap snippet for step 2.
|
|
1837
|
-
2. Wrap the root layout with <AdaptiveRoot apiKey
|
|
1838
|
-
other React apps use <AdaptiveProvider> from '@sentientui/react')
|
|
1839
|
-
suppressHydrationWarning to <html> \u2014 an inline script sets persona attributes
|
|
1840
|
-
Nothing adapts and nothing is tracked until this wrap is in place.
|
|
1837
|
+
2. Wrap the root layout with <AdaptiveRoot apiKey>{children}</AdaptiveRoot> (from
|
|
1838
|
+
'@sentientui/react/next'; other React apps use <AdaptiveProvider> from '@sentientui/react')
|
|
1839
|
+
and add suppressHydrationWarning to <html> \u2014 an inline script sets persona attributes
|
|
1840
|
+
pre-paint. Nothing adapts and nothing is tracked until this wrap is in place. Declare no
|
|
1841
|
+
components here: every <Adaptive> registers itself when it renders (see Rung 2).
|
|
1841
1842
|
3. \`npm run dev\`, then open the app with \`?sentient_persona=a\` vs
|
|
1842
1843
|
\`?sentient_persona=b\` to see it adapt \u2014 in keyless local mode any key drives the built-in
|
|
1843
1844
|
heuristic. No API key needed. Against a real project the key must be one you declared.
|
|
@@ -1874,9 +1875,17 @@ original:
|
|
|
1874
1875
|
|
|
1875
1876
|
Mount + deploy registers the region. SentientUI writes versions per visitor type in the
|
|
1876
1877
|
dashboard ("Who sees what") \u2014 no redeploy. The children render for holdout traffic, unknown
|
|
1877
|
-
visitor types, types with no version yet, and every error path.
|
|
1878
|
-
|
|
1879
|
-
|
|
1878
|
+
visitor types, types with no version yet, and every error path. Mounted regions are requested
|
|
1879
|
+
in one batched call after mount: the first visit shows the original briefly, then swaps; return
|
|
1880
|
+
visits start from the last version. Keyless local mode renders originals only.
|
|
1881
|
+
|
|
1882
|
+
Optional server preload (Next.js App Router): registrySlotIds={['hero-cta']} for generated
|
|
1883
|
+
regions, components={[{ id, variantIds }]} for code variants, both on AdaptiveRoot \u2014 the first
|
|
1884
|
+
paint then shows the served version. List ONLY ids rendered on every page that AdaptiveRoot
|
|
1885
|
+
wraps (in app/layout.tsx, every route): a declared id is decided on every request, rendered or
|
|
1886
|
+
not, and those visits count as views that can never convert.
|
|
1887
|
+
|
|
1888
|
+
Pass
|
|
1880
1889
|
onFormSubmit to allow form versions; set reportBaselineText={false} on regions wrapping
|
|
1881
1890
|
personalized or account content. (Formerly <AdaptiveSlot>.)
|
|
1882
1891
|
|
|
@@ -2262,7 +2271,7 @@ function registerCellTools(server, client) {
|
|
|
2262
2271
|
}
|
|
2263
2272
|
|
|
2264
2273
|
// src/server.ts
|
|
2265
|
-
var PKG_VERSION = true ? "0.18.
|
|
2274
|
+
var PKG_VERSION = true ? "0.18.2" : "0.0.0-dev";
|
|
2266
2275
|
function createMcpServer(client) {
|
|
2267
2276
|
const server = new import_mcp.McpServer(
|
|
2268
2277
|
{
|
package/dist/lib.js
CHANGED