<?xml version="1.0" encoding="UTF-8"?>
<!-- Classic XML add-in manifest: works with classic Outlook on Windows against
     Exchange 2016/2019 on-premises (Mailbox requirement set 1.3) and Exchange Online.
     The BASE placeholders are filled in by build.sh with the HTTPS address the files are served from. -->
<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:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
           xsi:type="MailApp">
  <Id>956bddb4-a053-4707-8889-1fbf7d37bb81</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>b1tr0n1n</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Claude for Outlook"/>
  <Description DefaultValue="Summarize, find action items, draft replies and rewrite drafts with Claude (personal API key)."/>
  <IconUrl DefaultValue="https://b1tr0n1n.github.io/outlook-claude/assets/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://b1tr0n1n.github.io/outlook-claude/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://b1tr0n1n.github.io/outlook-claude/"/>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.3"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://b1tr0n1n.github.io/outlook-claude/taskpane.html"/>
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://b1tr0n1n.github.io/outlook-claude/taskpane.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="Commands.Url"/>

          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="claudeReadGroup">
                <Label resid="Group.Label"/>
                <Control xsi:type="Button" id="claudeReadButton">
                  <Label resid="Button.Label"/>
                  <Supertip>
                    <Title resid="Button.Label"/>
                    <Description resid="Button.ReadTip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16"/>
                    <bt:Image size="32" resid="Icon.32"/>
                    <bt:Image size="80" resid="Icon.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="claudeComposeGroup">
                <Label resid="Group.Label"/>
                <Control xsi:type="Button" id="claudeComposeButton">
                  <Label resid="Button.Label"/>
                  <Supertip>
                    <Title resid="Button.Label"/>
                    <Description resid="Button.ComposeTip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16"/>
                    <bt:Image size="32" resid="Icon.32"/>
                    <bt:Image size="80" resid="Icon.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://b1tr0n1n.github.io/outlook-claude/assets/icon-16.png"/>
        <bt:Image id="Icon.32" DefaultValue="https://b1tr0n1n.github.io/outlook-claude/assets/icon-32.png"/>
        <bt:Image id="Icon.80" DefaultValue="https://b1tr0n1n.github.io/outlook-claude/assets/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://b1tr0n1n.github.io/outlook-claude/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://b1tr0n1n.github.io/outlook-claude/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Group.Label" DefaultValue="Claude"/>
        <bt:String id="Button.Label" DefaultValue="Claude"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Button.ReadTip" DefaultValue="Summarize this email, list its action items, or draft a reply."/>
        <bt:String id="Button.ComposeTip" DefaultValue="Improve, shorten or re-tone your draft, or turn notes into an email."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
