<?xml version="1.0" encoding="UTF-8"?>
<!-- fa — Outlook add-in (issues #89/#182). Classic v1 MailApp manifest plus
     a VersionOverrides command surface (issue #143): new Outlook for
     Windows (Monarch) and modern OWA render command-based add-ins only,
     so an «fa» button (ShowTaskpane) lives on the message Apps flyout
     and the compose ribbon, opening the same taskpane. The classic
     FormSettings section stays for legacy hosts that still render it.
     The taskpane URL is the FULL fa Flutter web app served from
     https://fa1.dev/outlook/app/ (issue #182 — the #94 bootstrap page is
     retired; outlook/index.html is a one-release redirect shim);
     scripts/build_office_addin.sh in dev mode rewrites the host to
     https://localhost:8443 for the local dev loop. -->
<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"
  xsi:type="MailApp">
  <Id>4D907D39-1309-4EF7-953B-13A88FAF1C60</Id>
  <Version>1.2.0.0</Version>
  <ProviderName>Flutter Agent Harness</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="fa"/>
  <Description DefaultValue="fa — your agent in Outlook: the fa assistant in the taskpane, mail tools for the agent."/>
  <IconUrl DefaultValue="https://fa1.dev/outlook/icons/fa-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://fa1.dev/outlook/icons/fa-128.png"/>
  <SupportUrl DefaultValue="https://fa1.dev/outlook/support.html"/>
  <AppDomains>
    <AppDomain>https://fa1.dev</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.8">
      <Set Name="Mailbox" MinVersion="1.8"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://fa1.dev/outlook/app/index.html"/>
        <RequestedHeight>400</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://fa1.dev/outlook/app/index.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">
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="fa-read-group">
                <Label resid="groupLabel"/>
                <Control xsi:type="Button" id="fa-read-open-pane">
                  <Label resid="paneButtonLabel"/>
                  <Supertip>
                    <Title resid="paneButtonTitle"/>
                    <Description resid="paneButtonDesc"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16"/>
                    <bt:Image size="32" resid="icon32"/>
                    <bt:Image size="80" resid="icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="taskpaneUrl"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="fa-compose-group">
                <Label resid="groupLabel"/>
                <Control xsi:type="Button" id="fa-compose-open-pane">
                  <Label resid="paneButtonLabel"/>
                  <Supertip>
                    <Title resid="paneButtonTitle"/>
                    <Description resid="paneButtonDesc"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16"/>
                    <bt:Image size="32" resid="icon32"/>
                    <bt:Image size="80" resid="icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="taskpaneUrl"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://fa1.dev/outlook/icons/fa-16.png"/>
        <bt:Image id="icon32" DefaultValue="https://fa1.dev/outlook/icons/fa-32.png"/>
        <bt:Image id="icon80" DefaultValue="https://fa1.dev/outlook/icons/fa-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="taskpaneUrl" DefaultValue="https://fa1.dev/outlook/app/index.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="fa"/>
        <bt:String id="paneButtonLabel" DefaultValue="fa"/>
        <bt:String id="paneButtonTitle" DefaultValue="fa"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneButtonDesc" DefaultValue="Open the fa taskpane: your agent inside this message, with approval-gated mail tools."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
