<?xml version="1.0" encoding="UTF-8"?>
<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">
    
    <!-- Basic Information -->
    <Id>e7a1a8c3-9b2f-4d3e-8f6a-1c2d3e4f5a6b</Id>
    <Version>1.0.0.0</Version>
    <ProviderName>Dust</ProviderName>
    <DefaultLocale>en-US</DefaultLocale>
    
    <!-- Display Name and Description -->
    <DisplayName DefaultValue="Dust Excel Add-in"/>
    <Description DefaultValue="Use AI Agents in your Excel spreadsheet"/>
    <IconUrl DefaultValue="https://dust.tt/static/favicon.png"/>
    <HighResolutionIconUrl DefaultValue="https://dust.tt/static/favicon@3x.png"/>
    <SupportUrl DefaultValue="https://dust.tt/support"/>
    
    <!-- Domains allowed for navigation -->
    <AppDomains>
        <AppDomain>https://dust.tt</AppDomain>
        <AppDomain>https://eu.dust.tt</AppDomain>
        <AppDomain>https://office-addins.dust.tt</AppDomain>
    </AppDomains>
    
    <!-- Host and Permissions -->
    <Hosts>
        <Host Name="Workbook"/>
    </Hosts>
    
    <DefaultSettings>
        <SourceLocation DefaultValue="https://office-addins.dust.tt/excel/taskpane.html"/>
    </DefaultSettings>
    
    <Permissions>ReadWriteDocument</Permissions>
    
    <!-- Extended overrides for modern UI -->
    <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>
                    
                    <FunctionFile resid="Commands.Url"/>
                    
                    <ExtensionPoint xsi:type="PrimaryCommandSurface">
                        <OfficeTab id="TabHome">
                            <Group id="CommandsGroup">
                                <Label resid="CommandsGroup.Label"/>
                                <Icon>
                                    <bt:Image size="16" resid="Icon.16x16"/>
                                    <bt:Image size="32" resid="Icon.32x32"/>
                                    <bt:Image size="80" resid="Icon.80x80"/>
                                </Icon>
                                
                                <Control xsi:type="Button" id="TaskpaneButton">
                                    <Label resid="TaskpaneButton.Label"/>
                                    <Supertip>
                                        <Title resid="TaskpaneButton.Label"/>
                                        <Description resid="TaskpaneButton.Tooltip"/>
                                    </Supertip>
                                    <Icon>
                                        <bt:Image size="16" resid="Icon.16x16"/>
                                        <bt:Image size="32" resid="Icon.32x32"/>
                                        <bt:Image size="80" resid="Icon.80x80"/>
                                    </Icon>
                                    <Action xsi:type="ShowTaskpane">
                                        <TaskpaneId>ButtonId1</TaskpaneId>
                                        <SourceLocation resid="Taskpane.Url"/>
                                    </Action>
                                </Control>
                            </Group>
                        </OfficeTab>
                    </ExtensionPoint>
                </DesktopFormFactor>
            </Host>
        </Hosts>
        
        <Resources>
            <bt:Images>
                <bt:Image id="Icon.16x16" DefaultValue="https://dust.tt/static/favicon.png"/>
                <bt:Image id="Icon.32x32" DefaultValue="https://dust.tt/static/favicon@2x.png"/>
                <bt:Image id="Icon.80x80" DefaultValue="https://dust.tt/static/favicon@3x.png"/>
            </bt:Images>
            <bt:Urls>
                <bt:Url id="Commands.Url" DefaultValue="https://office-addins.dust.tt/excel/commands.html"/>
                <bt:Url id="Taskpane.Url" DefaultValue="https://office-addins.dust.tt/excel/taskpane.html"/>
                <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://dust.tt/docs"/>
            </bt:Urls>
            <bt:ShortStrings>
                <bt:String id="TaskpaneButton.Label" DefaultValue="Call an Agent"/>
                <bt:String id="CommandsGroup.Label" DefaultValue="Dust"/>
                <bt:String id="GetStarted.Title" DefaultValue="Get started with Dust Excel Add-in!"/>
            </bt:ShortStrings>
            <bt:LongStrings>
                <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Click to use AI Agents in your spreadsheet"/>
                <bt:String id="GetStarted.Description" DefaultValue="Your add-in loaded successfully. Go to the HOME tab and click the 'Call an Agent' button to get started."/>
            </bt:LongStrings>
        </Resources>
    </VersionOverrides>
</OfficeApp>