<?xml version="1.0" encoding="UTF-8"?>
<!--
  Outlook Add-in manifest for Defluff. Replace the Id GUID before publishing —
  the current value is a dev-only placeholder. For production, host the task
  pane and command assets somewhere stable and update every https://localhost
  reference accordingly.
-->
<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"
  xsi:type="MailApp">

  <Id>00000000-defl-uff0-0000-000000000001</Id>
  <Version>0.0.1</Version>
  <ProviderName>FinAegis</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Defluff" />
  <Description DefaultValue="Strip AI-generated padding from emails. Summarize any message into 3-5 bullets of actual intent." />
  <IconUrl DefaultValue="https://finaegis.github.io/defluff/icons/icon-64.png" />
  <HighResolutionIconUrl DefaultValue="https://finaegis.github.io/defluff/icons/icon-128.png" />
  <SupportUrl DefaultValue="https://github.com/FinAegis/defluff" />

  <AppDomains>
    <AppDomain>https://finaegis.github.io/defluff</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>

  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.5" />
    </Sets>
  </Requirements>

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://finaegis.github.io/defluff/src/taskpane/index.html" />
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadItem</Permissions>

  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </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="functionFile" />
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="defluffGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="defluffButton">
                  <Label resid="buttonLabel" />
                  <Supertip>
                    <Title resid="buttonLabel" />
                    <Description resid="buttonDesc" />
                  </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://finaegis.github.io/defluff/icons/icon-16.png" />
        <bt:Image id="icon32" DefaultValue="https://finaegis.github.io/defluff/icons/icon-32.png" />
        <bt:Image id="icon80" DefaultValue="https://finaegis.github.io/defluff/icons/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="https://finaegis.github.io/defluff/src/commands/commands.html" />
        <bt:Url id="taskpaneUrl" DefaultValue="https://finaegis.github.io/defluff/src/taskpane/index.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Defluff" />
        <bt:String id="buttonLabel" DefaultValue="De-Fluff" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="buttonDesc" DefaultValue="Summarize this email into 3-5 bullets of actual intent." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
