<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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">

  <!-- Basic Add-in Information -->
  <Id>173d1e8a-8e1b-4560-a25f-fcbb4e262324</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Cellify.app</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>

  <!-- Display Information -->
  <DisplayName DefaultValue="Cellify.app"/>
  <Description DefaultValue="AI assistant for Excel. Describe what you need in your own words and Cellify builds it step by step: tables, formulas, pivot tables, charts, dashboards, data cleanup, data from PDF or CSV files. Asks before deleting or overwriting data; Undo after."/>
  <IconUrl DefaultValue="https://app.cellify.app/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://app.cellify.app/assets/icon-64.png"/>
  <SupportUrl DefaultValue="https://cellify.app/support.html"/>
  
  <!-- The task pane runs on app.cellify.app; the two sign-in hosts are listed for the MSAL fallback window. -->
  <AppDomains>
    <AppDomain>https://app.cellify.app</AppDomain>
    <AppDomain>https://login.microsoftonline.com</AppDomain>
    <AppDomain>https://login.live.com</AppDomain>
  </AppDomains>

  <!-- Host Applications -->
  <Hosts>
    <Host Name="Workbook"/>
  </Hosts>
  
  <!-- Requirements -->
  <Requirements>
    <Sets>
      <Set Name="ExcelApi" MinVersion="1.12"/>
    </Sets>
  </Requirements>
  
  <!-- Default Settings -->
  <DefaultSettings>
        <SourceLocation DefaultValue="https://app.cellify.app/taskpane-v2.html"/>
  </DefaultSettings>
  
  <!-- Permissions: the agent reads and changes the workbook on request -->
  <Permissions>ReadWriteDocument</Permissions>
  
  <!-- Version Overrides -->
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    
    <!-- Description -->
    <Description resid="GetStarted.Description"/>
    
    <!-- Requirements -->
    <Requirements>
      <bt:Sets DefaultMinVersion="1.1">
        <bt:Set Name="ExcelApi" MinVersion="1.12"/>
      </bt:Sets>
    </Requirements>
    
    <!-- Hosts -->
    <Hosts>
      <Host xsi:type="Workbook">
        
        <!-- Desktop Form Factor -->
        <DesktopFormFactor>
          
          <!-- Getting Started -->
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
          </GetStarted>
          
          <!-- Extension Points -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              
              <!-- Cellify AI Group -->
              <Group id="AIAssistantGroup">
                <Label resid="AIAssistant.GroupLabel"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16"/>
                  <bt:Image size="32" resid="Icon.32x32"/>
                  <bt:Image size="80" resid="Icon.80x80"/>
                </Icon>
                
                <!-- Show Taskpane Button -->
                <Control xsi:type="Button" id="TaskpaneButton">
                  <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>ButtonId1</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
                
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    
    <!-- Resources -->
    <Resources>
      <!-- Images -->
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://app.cellify.app/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://app.cellify.app/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://app.cellify.app/assets/icon-80.png"/>
      </bt:Images>
      
      <!-- URLs -->
      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://cellify.app"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://app.cellify.app/taskpane-v2.html"/>
      </bt:Urls>
      
      <!-- Short Strings -->
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Cellify.app"/>
        <bt:String id="AIAssistant.GroupLabel" DefaultValue="Cellify.app"/>
        <bt:String id="TaskpaneButton.Label" DefaultValue="Cellify.app"/>
      </bt:ShortStrings>
      
      <!-- Long Strings -->
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="AI assistant for Excel: describe what you need and Cellify builds it in your workbook, step by step."/>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Open Cellify, the AI assistant for Excel."/>
      </bt:LongStrings>
      
    </Resources>
    
    <!-- Microsoft single sign-on (after Resources) -->
    <WebApplicationInfo>
      <Id>2fb71081-fc22-4e53-a9a1-af146f60befd</Id>
      <Resource>api://app.cellify.app/2fb71081-fc22-4e53-a9a1-af146f60befd</Resource>
      <Scopes>
        <Scope>profile</Scope>
        <Scope>openid</Scope>
        <Scope>access_as_user</Scope>
      </Scopes>
    </WebApplicationInfo>
    
  </VersionOverrides>
</OfficeApp>
