<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
           xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
           xsi:type="TaskPaneApp">

  <Id>fd59315d-50cf-4607-9df2-fea3220a81a6</Id>
  <Version>2.0.0</Version>
  <ProviderName>mixus</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  
  <!-- Display name and description -->
  <DisplayName DefaultValue="mixus for Word"/>
  <Description DefaultValue="AI-powered document assistant for legal professionals. Review, redline, and draft contracts with the help of your organization's knowledge base."/>
  
  <!-- Branding -->
  <IconUrl DefaultValue="https://localhost:3010/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://localhost:3010/assets/icon-64.png"/>
  
  <!-- Support URL -->
  <SupportUrl DefaultValue="https://mixus.ai/support"/>
  
  <!-- App domains that can be navigated to within the task pane -->
  <AppDomains>
    <AppDomain>https://mixus.ai</AppDomain>
    <AppDomain>https://app.mixus.ai</AppDomain>
    <AppDomain>https://staging.mixus.ai</AppDomain>
    <AppDomain>https://localhost:3000</AppDomain>
    <AppDomain>https://localhost:3010</AppDomain>
    <AppDomain>https://localhost:3011</AppDomain>
  </AppDomains>
  
  <!-- Host applications -->
  <Hosts>
    <Host Name="Document"/>
  </Hosts>
  
  <!-- Minimum API requirements -->
  <Requirements>
    <Sets>
      <Set Name="WordApi" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  
  <!-- Default settings for task pane -->
  <DefaultSettings>
    <SourceLocation DefaultValue="https://localhost:3010/taskpane.html"/>
  </DefaultSettings>
  
  <!-- Permissions needed -->
  <Permissions>ReadWriteDocument</Permissions>
  
  <!-- Version overrides for ribbon commands -->
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    
    <Hosts>
      <Host xsi:type="Document">
        <DesktopFormFactor>
          
          <!-- Function file for ribbon commands -->
          <FunctionFile resid="Commands.Url"/>
          
          <!-- Extension point for ribbon -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="mixusGroup">
                <Label resid="GroupLabel"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16"/>
                  <bt:Image size="32" resid="Icon.32x32"/>
                  <bt:Image size="80" resid="Icon.80x80"/>
                </Icon>
                
                <!-- Main button to show task pane -->
                <Control xsi:type="Button" id="ShowTaskpane">
                  <Label resid="TaskpaneButton.Label"/>
                  <Supertip>
                    <Title resid="TaskpaneButton.Label"/>
                    <Description resid="TaskpaneButton.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16"/>
                    <bt:Image size="32" resid="Icon.32x32"/>
                    <bt:Image size="80" resid="Icon.80x80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>mixusTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
                
                <!-- Quick action: Review document -->
                <Control xsi:type="Button" id="QuickReview">
                  <Label resid="QuickReview.Label"/>
                  <Supertip>
                    <Title resid="QuickReview.Label"/>
                    <Description resid="QuickReview.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16"/>
                    <bt:Image size="32" resid="Icon.32x32"/>
                    <bt:Image size="80" resid="Icon.80x80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>quickReview</FunctionName>
                  </Action>
                </Control>
                
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          
        </DesktopFormFactor>
      </Host>
    </Hosts>
    
    <!-- Resources -->
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://localhost:3010/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://localhost:3010/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://localhost:3010/assets/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3010/taskpane.html"/>
        <bt:Url id="Commands.Url" DefaultValue="https://localhost:3010/commands.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="mixus"/>
        <bt:String id="TaskpaneButton.Label" DefaultValue="mixus Assistant"/>
        <bt:String id="QuickReview.Label" DefaultValue="Review Document"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Open the mixus AI assistant to help with document review, redlining, and drafting."/>
        <bt:String id="QuickReview.Tooltip" DefaultValue="Quickly analyze this document using your organization's playbooks and guidelines."/>
      </bt:LongStrings>
    </Resources>
    
  </VersionOverrides>
  
</OfficeApp>

