<?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 identity -->
  <Id>6ce3d320-a3cd-421c-9388-831f55932f79</Id>
  <Version>2.0.0.0</Version>
  <ProviderName>Volaren AI</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Volaren AI"/>
  <Description DefaultValue="AI-powered financial analysis assistant for Excel."/>

  <!-- Icons -->
  <IconUrl DefaultValue="https://volaren.ai/favicon.png"/>
  <HighResolutionIconUrl DefaultValue="https://volaren.ai/favicon.png"/>
  <SupportUrl DefaultValue="https://volaren.ai"/>

  <!-- Hosts: Excel only -->
  <Hosts>
    <Host Name="Workbook"/>
  </Hosts>

  <!-- Default size of the task pane -->
  <DefaultSettings>
    <SourceLocation DefaultValue="https://volaren.ai/addin"/>
  </DefaultSettings>

  <!-- Required permissions -->
  <Permissions>ReadWriteDocument</Permissions>

  <!-- Version overrides for ribbon button -->
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <DesktopFormFactor>

          <!-- Function file (not used, but required field) -->
          <FunctionFile resid="Functions.Url"/>

          <!-- Ribbon extension point -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="IBCopilot.Group">
                <Label resid="Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16"/>
                  <bt:Image size="32" resid="Icon.32x32"/>
                  <bt:Image size="80" resid="Icon.80x80"/>
                </Icon>
                <Control xsi:type="Button" id="IBCopilot.OpenTaskPane">
                  <Label resid="TaskPane.Label"/>
                  <Supertip>
                    <Title resid="TaskPane.Label"/>
                    <Description resid="TaskPane.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>IBCopilotPane</TaskpaneId>
                    <SourceLocation resid="TaskPane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://volaren.ai/favicon.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://volaren.ai/favicon.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://volaren.ai/favicon.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Functions.Url" DefaultValue="https://volaren.ai/addin"/>
        <bt:Url id="TaskPane.Url" DefaultValue="https://volaren.ai/addin"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Group.Label" DefaultValue="Volaren AI"/>
        <bt:String id="TaskPane.Label" DefaultValue="Open Volaren"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="TaskPane.Tooltip" DefaultValue="Open the Volaren AI chat panel to analyze and edit your spreadsheet with AI."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>

</OfficeApp>
