@sentientui/mcp 0.17.0 → 0.17.1
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-2E5M5ESK.js → chunk-KT2ZKW7I.js} +12 -5
- package/dist/index.cjs +12 -5
- package/dist/index.js +1 -1
- package/dist/lib.cjs +12 -5
- package/dist/lib.js +1 -1
- package/package.json +1 -1
|
@@ -1671,9 +1671,15 @@ function registerTestBriefTools(server, client) {
|
|
|
1671
1671
|
import { z as z13 } from "zod";
|
|
1672
1672
|
var GUIDE = `# SentientUI integration guide \u2014 the adaptive ladder
|
|
1673
1673
|
|
|
1674
|
-
SentientUI adapts a site per visitor type (personas
|
|
1675
|
-
|
|
1676
|
-
|
|
1674
|
+
SentientUI adapts a site per visitor type (personas), learning from real conversions. Each
|
|
1675
|
+
project has its own persona vocabulary (dashboard -> Settings -> Personas; the default is
|
|
1676
|
+
buyer, researcher, deal_seeker, browser + unknown). Personas are inferred from behavior \u2014 or
|
|
1677
|
+
DECLARED by the app when it already knows the visitor's role: init({ persona: 'admin' }) /
|
|
1678
|
+
<AdaptiveProvider persona=...> / window.sentient.persona. Declared beats inferred and serves
|
|
1679
|
+
at full confidence; unrecognized values are ignored server-side and surfaced in the dashboard
|
|
1680
|
+
so the operator can add them. Keep persona a low-cardinality role slug \u2014 never a user id.
|
|
1681
|
+
Decisions are locked per session: Visit 1 learns, Visit 2 converts. Integrate one rung at a
|
|
1682
|
+
time.
|
|
1677
1683
|
|
|
1678
1684
|
## Setup (60 seconds, no account)
|
|
1679
1685
|
|
|
@@ -1691,7 +1697,8 @@ Visit 2 converts. Integrate one rung at a time.
|
|
|
1691
1697
|
|
|
1692
1698
|
## Rung 1 \u2014 Style (CSS only)
|
|
1693
1699
|
|
|
1694
|
-
Persona attributes on <html> (zero declaration
|
|
1700
|
+
Persona attributes on <html> (zero declaration; the attribute carries the project's own
|
|
1701
|
+
vocabulary keys \u2014 declared or inferred):
|
|
1695
1702
|
|
|
1696
1703
|
html[data-sentient-persona='deal_seeker'] .discount-banner { display: block; }
|
|
1697
1704
|
html[data-sentient-confidence='low'] .discount-banner { display: none; }
|
|
@@ -1886,7 +1893,7 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1886
1893
|
}
|
|
1887
1894
|
|
|
1888
1895
|
// src/server.ts
|
|
1889
|
-
var PKG_VERSION = true ? "0.17.
|
|
1896
|
+
var PKG_VERSION = true ? "0.17.1" : "0.0.0-dev";
|
|
1890
1897
|
function createMcpServer(client) {
|
|
1891
1898
|
const server = new McpServer(
|
|
1892
1899
|
{
|
package/dist/index.cjs
CHANGED
|
@@ -1677,9 +1677,15 @@ function registerTestBriefTools(server, client) {
|
|
|
1677
1677
|
var import_zod13 = require("zod");
|
|
1678
1678
|
var GUIDE = `# SentientUI integration guide \u2014 the adaptive ladder
|
|
1679
1679
|
|
|
1680
|
-
SentientUI adapts a site per visitor type (personas
|
|
1681
|
-
|
|
1682
|
-
|
|
1680
|
+
SentientUI adapts a site per visitor type (personas), learning from real conversions. Each
|
|
1681
|
+
project has its own persona vocabulary (dashboard -> Settings -> Personas; the default is
|
|
1682
|
+
buyer, researcher, deal_seeker, browser + unknown). Personas are inferred from behavior \u2014 or
|
|
1683
|
+
DECLARED by the app when it already knows the visitor's role: init({ persona: 'admin' }) /
|
|
1684
|
+
<AdaptiveProvider persona=...> / window.sentient.persona. Declared beats inferred and serves
|
|
1685
|
+
at full confidence; unrecognized values are ignored server-side and surfaced in the dashboard
|
|
1686
|
+
so the operator can add them. Keep persona a low-cardinality role slug \u2014 never a user id.
|
|
1687
|
+
Decisions are locked per session: Visit 1 learns, Visit 2 converts. Integrate one rung at a
|
|
1688
|
+
time.
|
|
1683
1689
|
|
|
1684
1690
|
## Setup (60 seconds, no account)
|
|
1685
1691
|
|
|
@@ -1697,7 +1703,8 @@ Visit 2 converts. Integrate one rung at a time.
|
|
|
1697
1703
|
|
|
1698
1704
|
## Rung 1 \u2014 Style (CSS only)
|
|
1699
1705
|
|
|
1700
|
-
Persona attributes on <html> (zero declaration
|
|
1706
|
+
Persona attributes on <html> (zero declaration; the attribute carries the project's own
|
|
1707
|
+
vocabulary keys \u2014 declared or inferred):
|
|
1701
1708
|
|
|
1702
1709
|
html[data-sentient-persona='deal_seeker'] .discount-banner { display: block; }
|
|
1703
1710
|
html[data-sentient-confidence='low'] .discount-banner { display: none; }
|
|
@@ -1892,7 +1899,7 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1892
1899
|
}
|
|
1893
1900
|
|
|
1894
1901
|
// src/server.ts
|
|
1895
|
-
var PKG_VERSION = true ? "0.17.
|
|
1902
|
+
var PKG_VERSION = true ? "0.17.1" : "0.0.0-dev";
|
|
1896
1903
|
function createMcpServer(client) {
|
|
1897
1904
|
const server = new import_mcp.McpServer(
|
|
1898
1905
|
{
|
package/dist/index.js
CHANGED
package/dist/lib.cjs
CHANGED
|
@@ -1701,9 +1701,15 @@ function registerTestBriefTools(server, client) {
|
|
|
1701
1701
|
var import_zod13 = require("zod");
|
|
1702
1702
|
var GUIDE = `# SentientUI integration guide \u2014 the adaptive ladder
|
|
1703
1703
|
|
|
1704
|
-
SentientUI adapts a site per visitor type (personas
|
|
1705
|
-
|
|
1706
|
-
|
|
1704
|
+
SentientUI adapts a site per visitor type (personas), learning from real conversions. Each
|
|
1705
|
+
project has its own persona vocabulary (dashboard -> Settings -> Personas; the default is
|
|
1706
|
+
buyer, researcher, deal_seeker, browser + unknown). Personas are inferred from behavior \u2014 or
|
|
1707
|
+
DECLARED by the app when it already knows the visitor's role: init({ persona: 'admin' }) /
|
|
1708
|
+
<AdaptiveProvider persona=...> / window.sentient.persona. Declared beats inferred and serves
|
|
1709
|
+
at full confidence; unrecognized values are ignored server-side and surfaced in the dashboard
|
|
1710
|
+
so the operator can add them. Keep persona a low-cardinality role slug \u2014 never a user id.
|
|
1711
|
+
Decisions are locked per session: Visit 1 learns, Visit 2 converts. Integrate one rung at a
|
|
1712
|
+
time.
|
|
1707
1713
|
|
|
1708
1714
|
## Setup (60 seconds, no account)
|
|
1709
1715
|
|
|
@@ -1721,7 +1727,8 @@ Visit 2 converts. Integrate one rung at a time.
|
|
|
1721
1727
|
|
|
1722
1728
|
## Rung 1 \u2014 Style (CSS only)
|
|
1723
1729
|
|
|
1724
|
-
Persona attributes on <html> (zero declaration
|
|
1730
|
+
Persona attributes on <html> (zero declaration; the attribute carries the project's own
|
|
1731
|
+
vocabulary keys \u2014 declared or inferred):
|
|
1725
1732
|
|
|
1726
1733
|
html[data-sentient-persona='deal_seeker'] .discount-banner { display: block; }
|
|
1727
1734
|
html[data-sentient-confidence='low'] .discount-banner { display: none; }
|
|
@@ -1916,7 +1923,7 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1916
1923
|
}
|
|
1917
1924
|
|
|
1918
1925
|
// src/server.ts
|
|
1919
|
-
var PKG_VERSION = true ? "0.17.
|
|
1926
|
+
var PKG_VERSION = true ? "0.17.1" : "0.0.0-dev";
|
|
1920
1927
|
function createMcpServer(client) {
|
|
1921
1928
|
const server = new import_mcp.McpServer(
|
|
1922
1929
|
{
|
package/dist/lib.js
CHANGED