@sentientui/mcp 0.9.2 → 0.10.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/dist/{chunk-KUOPKVVD.js → chunk-ZH3EDKIT.js} +12 -2
- package/dist/index.cjs +12 -2
- package/dist/index.js +1 -1
- package/dist/lib.cjs +12 -2
- package/dist/lib.js +1 -1
- package/package.json +1 -1
|
@@ -1475,6 +1475,11 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1475
1475
|
cta: z13.boolean(),
|
|
1476
1476
|
notes: z13.array(z13.string())
|
|
1477
1477
|
}),
|
|
1478
|
+
fixes: z13.array(z13.object({
|
|
1479
|
+
check: z13.string(),
|
|
1480
|
+
advice: z13.string(),
|
|
1481
|
+
snippet: z13.string().optional()
|
|
1482
|
+
})).optional().describe("Concrete Next.js remediation per failing check"),
|
|
1478
1483
|
lastChecked: z13.string()
|
|
1479
1484
|
})
|
|
1480
1485
|
),
|
|
@@ -1498,7 +1503,12 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1498
1503
|
const failed = ["price", "name", "positioning", "cta"].filter((k) => !p.checks[k]);
|
|
1499
1504
|
return `- ${p.path}: ${p.score}/100${failed.length ? ` \u2014 missing: ${failed.join(", ")}` : " \u2014 fully legible"}`;
|
|
1500
1505
|
}),
|
|
1501
|
-
...l.paths.flatMap(
|
|
1506
|
+
...l.paths.flatMap(
|
|
1507
|
+
(p) => {
|
|
1508
|
+
var _a;
|
|
1509
|
+
return ((_a = p.fixes) == null ? void 0 : _a.length) ? p.fixes.map((f) => ` fix (${p.path}): ${f.advice}`) : p.checks.notes.map((n) => ` fix (${p.path}): ${n}`);
|
|
1510
|
+
}
|
|
1511
|
+
)
|
|
1502
1512
|
];
|
|
1503
1513
|
if (l.emptyBlocks.length > 0) {
|
|
1504
1514
|
lines.push("", "Agent API blocks served without agent data (add agentDataByVariant):");
|
|
@@ -1510,7 +1520,7 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1510
1520
|
}
|
|
1511
1521
|
|
|
1512
1522
|
// src/server.ts
|
|
1513
|
-
var PKG_VERSION = true ? "0.
|
|
1523
|
+
var PKG_VERSION = true ? "0.10.0" : "0.0.0-dev";
|
|
1514
1524
|
function createMcpServer(client) {
|
|
1515
1525
|
const server = new McpServer(
|
|
1516
1526
|
{
|
package/dist/index.cjs
CHANGED
|
@@ -1479,6 +1479,11 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1479
1479
|
cta: import_zod13.z.boolean(),
|
|
1480
1480
|
notes: import_zod13.z.array(import_zod13.z.string())
|
|
1481
1481
|
}),
|
|
1482
|
+
fixes: import_zod13.z.array(import_zod13.z.object({
|
|
1483
|
+
check: import_zod13.z.string(),
|
|
1484
|
+
advice: import_zod13.z.string(),
|
|
1485
|
+
snippet: import_zod13.z.string().optional()
|
|
1486
|
+
})).optional().describe("Concrete Next.js remediation per failing check"),
|
|
1482
1487
|
lastChecked: import_zod13.z.string()
|
|
1483
1488
|
})
|
|
1484
1489
|
),
|
|
@@ -1502,7 +1507,12 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1502
1507
|
const failed = ["price", "name", "positioning", "cta"].filter((k) => !p.checks[k]);
|
|
1503
1508
|
return `- ${p.path}: ${p.score}/100${failed.length ? ` \u2014 missing: ${failed.join(", ")}` : " \u2014 fully legible"}`;
|
|
1504
1509
|
}),
|
|
1505
|
-
...l.paths.flatMap(
|
|
1510
|
+
...l.paths.flatMap(
|
|
1511
|
+
(p) => {
|
|
1512
|
+
var _a2;
|
|
1513
|
+
return ((_a2 = p.fixes) == null ? void 0 : _a2.length) ? p.fixes.map((f) => ` fix (${p.path}): ${f.advice}`) : p.checks.notes.map((n) => ` fix (${p.path}): ${n}`);
|
|
1514
|
+
}
|
|
1515
|
+
)
|
|
1506
1516
|
];
|
|
1507
1517
|
if (l.emptyBlocks.length > 0) {
|
|
1508
1518
|
lines.push("", "Agent API blocks served without agent data (add agentDataByVariant):");
|
|
@@ -1514,7 +1524,7 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1514
1524
|
}
|
|
1515
1525
|
|
|
1516
1526
|
// src/server.ts
|
|
1517
|
-
var PKG_VERSION = true ? "0.
|
|
1527
|
+
var PKG_VERSION = true ? "0.10.0" : "0.0.0-dev";
|
|
1518
1528
|
function createMcpServer(client) {
|
|
1519
1529
|
const server = new import_mcp.McpServer(
|
|
1520
1530
|
{
|
package/dist/index.js
CHANGED
package/dist/lib.cjs
CHANGED
|
@@ -1504,6 +1504,11 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1504
1504
|
cta: import_zod13.z.boolean(),
|
|
1505
1505
|
notes: import_zod13.z.array(import_zod13.z.string())
|
|
1506
1506
|
}),
|
|
1507
|
+
fixes: import_zod13.z.array(import_zod13.z.object({
|
|
1508
|
+
check: import_zod13.z.string(),
|
|
1509
|
+
advice: import_zod13.z.string(),
|
|
1510
|
+
snippet: import_zod13.z.string().optional()
|
|
1511
|
+
})).optional().describe("Concrete Next.js remediation per failing check"),
|
|
1507
1512
|
lastChecked: import_zod13.z.string()
|
|
1508
1513
|
})
|
|
1509
1514
|
),
|
|
@@ -1527,7 +1532,12 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1527
1532
|
const failed = ["price", "name", "positioning", "cta"].filter((k) => !p.checks[k]);
|
|
1528
1533
|
return `- ${p.path}: ${p.score}/100${failed.length ? ` \u2014 missing: ${failed.join(", ")}` : " \u2014 fully legible"}`;
|
|
1529
1534
|
}),
|
|
1530
|
-
...l.paths.flatMap(
|
|
1535
|
+
...l.paths.flatMap(
|
|
1536
|
+
(p) => {
|
|
1537
|
+
var _a;
|
|
1538
|
+
return ((_a = p.fixes) == null ? void 0 : _a.length) ? p.fixes.map((f) => ` fix (${p.path}): ${f.advice}`) : p.checks.notes.map((n) => ` fix (${p.path}): ${n}`);
|
|
1539
|
+
}
|
|
1540
|
+
)
|
|
1531
1541
|
];
|
|
1532
1542
|
if (l.emptyBlocks.length > 0) {
|
|
1533
1543
|
lines.push("", "Agent API blocks served without agent data (add agentDataByVariant):");
|
|
@@ -1539,7 +1549,7 @@ function registerAgentTrafficTools(server, client) {
|
|
|
1539
1549
|
}
|
|
1540
1550
|
|
|
1541
1551
|
// src/server.ts
|
|
1542
|
-
var PKG_VERSION = true ? "0.
|
|
1552
|
+
var PKG_VERSION = true ? "0.10.0" : "0.0.0-dev";
|
|
1543
1553
|
function createMcpServer(client) {
|
|
1544
1554
|
const server = new import_mcp.McpServer(
|
|
1545
1555
|
{
|
package/dist/lib.js
CHANGED