<?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">
  <Id>3019c264-b939-49f8-9711-a386bff43704</Id>
  <Version>1.0.0.8</Version>
  <ProviderName>Boardflare</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Local AI" />
  <Description
    DefaultValue="Free and private AI running on your device" />
  <IconUrl DefaultValue="https://apps.boardflare.com/local/images/icon-32.png" />
  <HighResolutionIconUrl
    DefaultValue="https://apps.boardflare.com/local/images/icon-64.png" />
  <SupportUrl DefaultValue="https://www.boardflare.com/company/support" />
  <AppDomains>
    <AppDomain>https://www.boardflare.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Workbook" />
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="SharedRuntime" MinVersion="1.1" />
      <Set Name="CustomFunctionsRuntime" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://apps.boardflare.com/local/taskpane.html" />
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
    xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <Runtimes>
          <Runtime resid="SharedRuntime.Url" lifetime="long" />
        </Runtimes>

        <AllFormFactors>
          <ExtensionPoint xsi:type="CustomFunctions">
            <Script>
              <SourceLocation resid="CustomFunctions.Script" />
            </Script>
            <Page>
              <SourceLocation resid="SharedRuntime.Url" />
            </Page>
            <Metadata>
              <SourceLocation resid="CustomFunctions.Json" />
            </Metadata>
          </ExtensionPoint>
        </AllFormFactors>

        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>
          <!-- Add FunctionFile so Excel knows where to load the custom functions runtime -->
          <FunctionFile resid="SharedRuntime.Url" />
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="CommandsGroup">
                <Label resid="CommandsGroup.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="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">
                    <SourceLocation resid="SharedRuntime.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16"
          DefaultValue="https://apps.boardflare.com/local/images/icon-16.png" />
        <bt:Image id="Icon.32x32"
          DefaultValue="https://apps.boardflare.com/local/images/icon-32.png" />
        <bt:Image id="Icon.80x80"
          DefaultValue="https://apps.boardflare.com/local/images/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl"
          DefaultValue="https://www.boardflare.com/apps/excel/localai/" />
        <bt:Url id="CustomFunctions.Script"
          DefaultValue="https://apps.boardflare.com/local/functions.js" />
        <bt:Url id="CustomFunctions.Json"
          DefaultValue="https://apps.boardflare.com/local/functions.json" />
        <bt:Url id="SharedRuntime.Url" DefaultValue="https://apps.boardflare.com/local/taskpane.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Get started with Local AI!" />
        <bt:String id="CommandsGroup.Label" DefaultValue="Boardflare" />
        <bt:String id="TaskpaneButton.Label" DefaultValue="Local AI" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description"
          DefaultValue="Click on the icon to open the add-in sidebar." />
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Click to Show a Task Pane" />
      </bt:LongStrings>
    </Resources>
    <WebApplicationInfo>
      <Id>4164e3ee-d8f8-40dd-a847-247bcc95611c</Id>
      <Resource>api://apps.boardflare.com/4164e3ee-d8f8-40dd-a847-247bcc95611c</Resource>
      <Scopes>
        <Scope>openid</Scope>
        <Scope>profile</Scope>
        <Scope>email</Scope>
      </Scopes>
    </WebApplicationInfo>
  </VersionOverrides>
</OfficeApp>
