<?xml version="1.0" encoding="UTF-8"?>
<!--
  Marshall for Microsoft Word - task pane add-in manifest.

  Every URL below must sit on the production origin DIRECTLY: Office does not
  follow cross-domain redirects for add-in resources, so when the product
  domain moves (gramylex -> marshall, 28 Aug 2026) this file must move with
  it - a 301 from the old origin is a broken add-in, not a working one.

  The pane itself is served by the main Marshall server under /addin/ (see
  server.js serveWordAddin and scripts/build.mjs), so there is no second
  deployment surface: the URLs below all point at the production instance.
  For a local sideload against a development server, copy this file and
  replace https://chat.marshall.com.hk with the local origin (Word accepts
  http://localhost for development); see word-addin/README.md.

  The Id is the add-in's stable identity for Word. Never reuse it for a
  different add-in, and never change it on upgrade - Word treats a changed
  Id as a brand-new add-in and keeps the old one installed beside it.
-->
<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>3b093765-4602-4e58-91a7-0a4a2b167708</Id>
  <Version>1.1.0.0</Version>
  <ProviderName>Marshall</ProviderName>
  <DefaultLocale>en-GB</DefaultLocale>
  <DisplayName DefaultValue="Marshall" />
  <Description DefaultValue="Legal research, drafting support, and authority checking from your Marshall matters, without leaving the document." />
  <IconUrl DefaultValue="https://chat.marshall.com.hk/assets/gramylex-icon-192.png" />
  <HighResolutionIconUrl DefaultValue="https://chat.marshall.com.hk/assets/gramylex-icon-512.png" />
  <SupportUrl DefaultValue="https://marshall.com.hk" />
  <AppDomains>
    <AppDomain>https://chat.marshall.com.hk</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Document" />
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="WordApi" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://chat.marshall.com.hk/addin/taskpane.html" />
  </DefaultSettings>
  <!-- ReadWriteDocument: the pane inserts answers at the cursor and reads the
       practitioner's selection for authority checking. It never needs more. -->
  <Permissions>ReadWriteDocument</Permissions>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Document">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GramyLex.GetStarted.Title" />
            <Description resid="GramyLex.GetStarted.Description" />
            <LearnMoreUrl resid="GramyLex.SupportUrl" />
          </GetStarted>
          <FunctionFile resid="GramyLex.Taskpane.Url" />
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="GramyLex.Group">
                <Label resid="GramyLex.Group.Label" />
                <Icon>
                  <bt:Image size="16" resid="GramyLex.Icon.16" />
                  <bt:Image size="32" resid="GramyLex.Icon.32" />
                  <bt:Image size="80" resid="GramyLex.Icon.80" />
                </Icon>
                <Control xsi:type="Button" id="GramyLex.OpenPane">
                  <Label resid="GramyLex.OpenPane.Label" />
                  <Supertip>
                    <Title resid="GramyLex.OpenPane.Label" />
                    <Description resid="GramyLex.OpenPane.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="GramyLex.Icon.16" />
                    <bt:Image size="32" resid="GramyLex.Icon.32" />
                    <bt:Image size="80" resid="GramyLex.Icon.80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>GramyLex.Taskpane</TaskpaneId>
                    <SourceLocation resid="GramyLex.Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="GramyLex.Icon.16" DefaultValue="https://chat.marshall.com.hk/assets/gramylex-icon-192.png" />
        <bt:Image id="GramyLex.Icon.32" DefaultValue="https://chat.marshall.com.hk/assets/gramylex-icon-192.png" />
        <bt:Image id="GramyLex.Icon.80" DefaultValue="https://chat.marshall.com.hk/assets/gramylex-icon-192.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="GramyLex.Taskpane.Url" DefaultValue="https://chat.marshall.com.hk/addin/taskpane.html" />
        <bt:Url id="GramyLex.SupportUrl" DefaultValue="https://marshall.com.hk" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GramyLex.Group.Label" DefaultValue="Marshall" />
        <bt:String id="GramyLex.OpenPane.Label" DefaultValue="Marshall" />
        <bt:String id="GramyLex.GetStarted.Title" DefaultValue="Marshall is ready" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GramyLex.OpenPane.Tooltip" DefaultValue="Ask Marshall about a matter, insert the answer at the cursor, and check authorities in the document." />
        <bt:String id="GramyLex.GetStarted.Description" DefaultValue="Open the Marshall pane from the Home tab to research a matter and check authorities without leaving Word." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
