@xapp/stentor-chat-widget 1.101.2 → 1.102.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.
Files changed (2) hide show
  1. package/lib/WidgetEnv.d.ts +22 -0
  2. package/package.json +3 -3
@@ -313,6 +313,28 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
313
313
  * with a configurable dock of action buttons (Chat, Form, Phone, URL).
314
314
  */
315
315
  readonly actionBar?: ActionBarConfig;
316
+ /**
317
+ * The tenant's appId. When present, the widget advertises the tenant's public MCP server
318
+ * (`{agentMcpHost}/{appId}/mcp`) to AI browsing agents. Injected by the serving layer.
319
+ * Without it, the appId is derived from a homeowner MCP `connection.serverUrl` if there is one.
320
+ */
321
+ readonly appId?: string;
322
+ /**
323
+ * Full public MCP URL to advertise, e.g. "https://agentic.xapp.ai/{appId}/mcp".
324
+ * Overrides appId/agentMcpHost.
325
+ */
326
+ readonly agentMcpUrl?: string;
327
+ /**
328
+ * Host of the public MCP server used with appId.
329
+ * @default "https://agentic.xapp.ai"
330
+ */
331
+ readonly agentMcpHost?: string;
332
+ /**
333
+ * Show detected AI browsing agents a short, dismissible note pointing at the MCP server.
334
+ * Opt-in: set true to turn it on. The MCP discovery tags in <head> are added regardless.
335
+ * @default false
336
+ */
337
+ readonly agentNotice?: boolean;
316
338
  }
317
339
  export interface WidgetAutoOpenOnPattern {
318
340
  readonly patterns?: string[];
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.101.2",
7
+ "version": "1.102.0",
8
8
  "description": "Chat Widget channel for stentor",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -26,13 +26,13 @@
26
26
  "mocha": "9.2.2",
27
27
  "sinon": "13.0.2",
28
28
  "sinon-chai": "3.7.0",
29
- "stentor-models": "1.80.0",
29
+ "stentor-models": "1.81.0",
30
30
  "ts-jest": "29.4.14",
31
31
  "ts-node": "10.9.2",
32
32
  "typescript": "5.9.3"
33
33
  },
34
34
  "dependencies": {
35
- "stentor-guards": "1.74.6"
35
+ "stentor-guards": "1.74.7"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": "^18.0.0 || ^19.0.0",