@mcp-b/embedded-agent 0.0.2 → 0.0.3

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.
@@ -2,6 +2,8 @@ import { FC } from "react";
2
2
 
3
3
  //#region src/web-component.d.ts
4
4
 
5
+ /** View mode for the agent UI */
6
+ type AgentViewMode = 'pill' | 'modal';
5
7
  /**
6
8
  * Props for the EmbeddedAgent React component
7
9
  *
@@ -10,6 +12,7 @@ import { FC } from "react";
10
12
  * - apiBase -> api-base
11
13
  * - tokenEndpoint -> token-endpoint
12
14
  * - autoConnectLocal -> auto-connect-local
15
+ * - viewMode -> view-mode
13
16
  */
14
17
  interface EmbeddedAgentProps {
15
18
  /** Your app/workspace ID */
@@ -20,6 +23,8 @@ interface EmbeddedAgentProps {
20
23
  tokenEndpoint?: string;
21
24
  /** Auto-connect to local MCP source (default: true) */
22
25
  autoConnectLocal?: boolean;
26
+ /** UI view mode: 'pill' (action-first) or 'modal' (traditional chat) */
27
+ viewMode?: AgentViewMode;
23
28
  /** Callback when tools are updated */
24
29
  onToolsChange?: (tools: unknown[]) => void;
25
30
  /** Callback when voice mode errors */
@@ -33,6 +38,10 @@ interface EmbeddedAgentProps {
33
38
  * EmbeddedAgent React Component
34
39
  *
35
40
  * A fully self-contained chat widget with MCP tool support and optional voice mode.
41
+ * Supports two view modes:
42
+ * - 'pill': Action-first compact UI (default)
43
+ * - 'modal': Traditional chat modal
44
+ *
36
45
  * Can be used as a React component or converted to a web component.
37
46
  */
38
47
  declare const EmbeddedAgent: FC<EmbeddedAgentProps>;
@@ -52,5 +61,5 @@ declare const WebMCPAgentElement: CustomElementConstructor;
52
61
  */
53
62
  declare function registerWebMCPAgent(tagName?: string): void;
54
63
  //#endregion
55
- export { EmbeddedAgent, EmbeddedAgentProps, WebMCPAgentElement, registerWebMCPAgent };
64
+ export { AgentViewMode, EmbeddedAgent, EmbeddedAgentProps, WebMCPAgentElement, registerWebMCPAgent };
56
65
  //# sourceMappingURL=web-component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"web-component.d.ts","names":[],"sources":["../src/web-component.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;UAsDiB,kBAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyBJ,eAAe,GAAG;;;;;;;cAiElB,oBAAkB;;;;;;;;iBAgBf,mBAAA"}
1
+ {"version":3,"file":"web-component.d.ts","names":[],"sources":["../src/web-component.tsx"],"sourcesContent":[],"mappings":";;;;;KAgDY,aAAA;;;;;;;;;;;UAYK,kBAAA;;;;;;;;;;aAUL;;;;;;;;;;;;;;;;;;;;cAqBC,eAAe,GAAG;;;;;;;cAsGlB,oBAAkB;;;;;;;;iBAiBf,mBAAA"}