@docyrus/ui-pro-ai-assistant 0.5.2 → 0.5.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.
package/README.md CHANGED
@@ -261,6 +261,7 @@ The main chat interface component.
261
261
  | Prop | Type | Default | Description |
262
262
  |------|------|---------|-------------|
263
263
  | `apiEndpoint` | `string` | `"/ai/agents/:agentId/chat"` | Chat endpoint template (`:agentId` is replaced at runtime) |
264
+ | `hostEnvironment` | `string` | — | Host environment identifier sent to the chat endpoint as `hostEnvironment`. The backend uses this to filter the tool list bound to the agent so only tools available in the current environment are exposed. Common values: `"web"`, `"desktop"`, `"chrome"`, `"word"`, `"excel"`, `"powerpoint"`, `"outlook"` |
264
265
 
265
266
  #### Callbacks
266
267
 
@@ -1,5 +1,5 @@
1
1
  import { type RefObject } from 'react';
2
2
  import { type DocyAssistantProps } from './types';
3
- export declare const DocyAssistant: ({ ref, isOpen, onClose, supportWebSearch, supportThinking, supportFiles, supportDocumentSearch, supportDeepResearch, supportMultiModels, supportWorkCanvas, apiEndpoint, title: titleProp, description: descriptionProp, placeholder: placeholderProp, logo, footerText: footerTextProp, variant, renderMode, enableSidebar, enableNavDropdown, enableVoice, enableMicrophone, enableWelcomePage, tenantAiAgentId, onMessageSend, onVoiceStart, onVoiceEnd, className, defaultFullscreen, hideExpand, hideCloseButton, hideAgentSelector, hideBorder, showHeader, hideHeaderOnWelcome, agentSelectorUrl, baseAgentSelectorUrl, onAgentChange, enableSharing, onShare: onShareProp, initialPrompt, initialModelId, initialFeatures, initialFiles, environment, ...props }: DocyAssistantProps & {
3
+ export declare const DocyAssistant: ({ ref, isOpen, onClose, supportWebSearch, supportThinking, supportFiles, supportDocumentSearch, supportDeepResearch, supportMultiModels, supportWorkCanvas, apiEndpoint, title: titleProp, description: descriptionProp, placeholder: placeholderProp, logo, footerText: footerTextProp, variant, renderMode, enableSidebar, enableNavDropdown, enableVoice, enableMicrophone, enableWelcomePage, tenantAiAgentId, onMessageSend, onVoiceStart, onVoiceEnd, className, defaultFullscreen, hideExpand, hideCloseButton, hideAgentSelector, hideBorder, showHeader, hideHeaderOnWelcome, agentSelectorUrl, baseAgentSelectorUrl, onAgentChange, enableSharing, onShare: onShareProp, initialPrompt, initialModelId, initialFeatures, initialFiles, hostEnvironment, ...props }: DocyAssistantProps & {
4
4
  ref?: RefObject<HTMLDivElement | null>;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -31613,7 +31613,7 @@ var DocyAssistant = ({
31613
31613
  initialModelId,
31614
31614
  initialFeatures,
31615
31615
  initialFiles,
31616
- environment,
31616
+ hostEnvironment,
31617
31617
  ...props
31618
31618
  }) => {
31619
31619
  const config3 = useAssistantConfig();
@@ -31691,7 +31691,7 @@ var DocyAssistant = ({
31691
31691
  supportDocumentSearch: options3?.supportDocumentSearch,
31692
31692
  supportThinking: options3?.supportThinking,
31693
31693
  supportWorkCanvas: options3?.supportWorkCanvas,
31694
- ...environment ? { environment } : {},
31694
+ ...hostEnvironment ? { hostEnvironment } : {},
31695
31695
  ...options3?.filePaths?.length ? { files: options3.filePaths } : {}
31696
31696
  }
31697
31697
  };
@@ -31712,7 +31712,7 @@ var DocyAssistant = ({
31712
31712
  apiEndpoint,
31713
31713
  activeAgentId,
31714
31714
  deploymentId,
31715
- environment
31715
+ hostEnvironment
31716
31716
  ]);
31717
31717
  const {
31718
31718
  messages = [],