<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
  Ataski FP&A — Excel (Office.js) task-pane add-in manifest.

  Token-authed, GOVERNED reforecast loop. This is NOT a two-way sync and
  NOT the older Sheets add-on contract: the task pane never writes a durable
  forecast, and Excel never approves anything.

    GET  {base}/app/fpa/sync/entities -> the books (entity families) this
                                         token may read; pick one
    GET  {base}/app/fpa/sync/pull     -> the PERSISTED APPROVED forecast for
                                         the selected book
    POST {base}/app/fpa/sync/push     -> pure PREVIEW of driver impact.
                                         Saves NOTHING.
    POST {base}/app/fpa/sync/submit   -> a governed reforecast DRAFT, pinned
                                         to the Approved version + entity
                                         family it was built from. A human
                                         reviews and approves it in Ataski.
                                         A moved Approved base returns 409
                                         (rebase), never last-writer-wins.

  The customer mints a 7-day FP&A sync token at {base}/app/fpa/connect-sheet,
  pastes it (+ the API base URL) into this add-in's task pane, chooses a book,
  Pulls, edits col B, Previews, then Submits a draft with a rationale.

  The task pane web app (taskpane.html/js/css) is SELF-HOSTED on
  https://ataski.com/integrations/excel-addin/* (FastAPI route in
  src/ataski/main.py), so the founder hosts nothing. SourceLocation +
  AppDomains point there.

  Minimal permissions: ReadWriteDocument (read driver keys / write driver +
  forecast sheets). The add-in reads and writes WORKBOOK CELLS ONLY — it never
  writes to the accounting ledger and never auto-approves a forecast. Loads
  Office.js from the Microsoft hosted CDN.

  NOT published to AppSource. Distribution today is sideload only; an
  AppSource submission requires explicit founder GO
  (docs/runbooks/excel-addin-appsource-checklist.md).
-->
<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>2b9f4c8a-6e15-4d3b-9a72-1f8c0d5e2b34</Id>
  <Version>1.1.0.0</Version>
  <ProviderName>Ataski</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Ataski FP&amp;A"/>
  <Description DefaultValue="Governed FP&amp;A forecasting in Excel: Pull the Approved forecast for a chosen legal entity or client book, edit drivers in column B, Preview the driver impact without saving, then Submit a governed reforecast draft for human review in Ataski."/>
  <!-- Microsoft's validator enforces EXACT dimensions here: IconUrl must be
       32x32 and HighResolutionIconUrl must be 64x64. The 64/80 pair this used
       to carry failed certification with "Icon incorrectly Sized". The 16/32/80
       images below are the ribbon icons and follow a different rule. -->
  <IconUrl DefaultValue="https://ataski.com/static/addin/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://ataski.com/static/addin/icon-64.png"/>
  <SupportUrl DefaultValue="https://ataski.com/support"/>

  <AppDomains>
    <AppDomain>https://ataski.com</AppDomain>
  </AppDomains>

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

  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="ExcelApi" MinVersion="1.1"/>
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://ataski.com/integrations/excel-addin/taskpane.html"/>
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Ataski.Group1">
                <Label resid="Ataski.Group1Label"/>
                <Icon>
                  <bt:Image size="16" resid="Ataski.tpicon_16x16"/>
                  <bt:Image size="32" resid="Ataski.tpicon_32x32"/>
                  <bt:Image size="80" resid="Ataski.tpicon_80x80"/>
                </Icon>
                <Control xsi:type="Button" id="Ataski.TaskpaneButton">
                  <Label resid="Ataski.TaskpaneButton.Label"/>
                  <Supertip>
                    <Title resid="Ataski.TaskpaneButton.Label"/>
                    <Description resid="Ataski.TaskpaneButton.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Ataski.tpicon_16x16"/>
                    <bt:Image size="32" resid="Ataski.tpicon_32x32"/>
                    <bt:Image size="80" resid="Ataski.tpicon_80x80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Ataski.Taskpane</TaskpaneId>
                    <SourceLocation resid="Ataski.Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Ataski.tpicon_16x16" DefaultValue="https://ataski.com/static/addin/icon-16.png"/>
        <bt:Image id="Ataski.tpicon_32x32" DefaultValue="https://ataski.com/static/addin/icon-32.png"/>
        <bt:Image id="Ataski.tpicon_80x80" DefaultValue="https://ataski.com/static/addin/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://ataski.com/workforce/fpa_analyst"/>
        <bt:Url id="Ataski.Taskpane.Url" DefaultValue="https://ataski.com/integrations/excel-addin/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Ataski FP&amp;A"/>
        <bt:String id="Ataski.Group1Label" DefaultValue="Ataski"/>
        <bt:String id="Ataski.TaskpaneButton.Label" DefaultValue="Ataski FP&amp;A"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Click Ataski FP&amp;A on the Home tab: choose your book, Pull the Approved forecast, edit drivers, Preview the impact, then Submit a reforecast draft for review. Approval always happens in Ataski."/>
        <bt:String id="Ataski.TaskpaneButton.Tooltip" DefaultValue="Choose a book, Pull its Approved forecast, Preview driver impact without saving, then Submit a governed reforecast draft for review in Ataski."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
