mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
* [AdvancedPaste] Semantic Kernel support * Changed log-line with potentially sensitive info * Spellcheck issues * Various improvements for Semantic Kernel * Spellcheck issue * Refactored Clipboard routines * Added integration tests for KernelService * Extra telemetry for AdvancedPaste * Added 'Hotkey' suffix to AdvancedPaste_Settings telemetry event * Added IsSavedQuery * Added KernelQueryCache * Refactoring * Added KernelQueryCache to BugReportTool delete list * Added opt-n for Semantic Kernel * Fixed bug with KernelQueryCache * Ability to view last AI chat message on error * Improved kernel query cache * Used System.IO.Abstractions and improved tests * Fixed under-count of token usage * Used Semantic Kernel icon * Cleanup * Add missing EndProject line * Fix dependency version conflicts * Fix NOTICE.md * Correct place of SemanticKernel in NOTICE.md * Unlinked CustomPreview toggle from AI * Added Microsoft.Bcl.AsyncInterfaces dependency to AdvancedPaste * Fixed NOTICE.md order * Moved Custom Preview to behaviour section * Made Image to Text raise error on empty output * Added AIServiceBatchIntegrationTests * Updated AIServiceBatchIntegrationTests * Added prompt moderation * Moved GPO Infobar to better location
27 lines
1.3 KiB
C++
27 lines
1.3 KiB
C++
#pragma once
|
|
#include <common/Telemetry/TraceBase.h>
|
|
#include <interface/powertoy_module_interface.h>
|
|
#include <unordered_map>
|
|
|
|
class Trace : public telemetry::TraceBase
|
|
{
|
|
public:
|
|
// Log if the user has AdvancedPaste enabled or disabled
|
|
static void AdvancedPaste_Enable(const bool enabled) noexcept;
|
|
|
|
// Log if the user has invoked AdvancedPaste
|
|
static void AdvancedPaste_Invoked(std::wstring mode) noexcept;
|
|
|
|
// Log if an error occurs in AdvancedPaste
|
|
static void Trace::AdvancedPaste_Error(const DWORD errorCode, std::wstring errorMessage, std::wstring methodName) noexcept;
|
|
|
|
// Event to send settings telemetry.
|
|
static void Trace::AdvancedPaste_SettingsTelemetry(const PowertoyModuleIface::Hotkey& pastePlainHotkey,
|
|
const PowertoyModuleIface::Hotkey& advancedPasteUIHotkey,
|
|
const PowertoyModuleIface::Hotkey& pasteMarkdownHotkey,
|
|
const PowertoyModuleIface::Hotkey& pasteJsonHotkey,
|
|
const bool is_advanced_ai_enabled,
|
|
const bool preview_custom_format_output,
|
|
const std::unordered_map<std::wstring, PowertoyModuleIface::Hotkey>& additionalActionsHotkeys) noexcept;
|
|
};
|