OmniStacksStaticModules 2.0.0
Loading...
Searching...
No Matches
WorkflowUI Namespace Referenceexport

Namespaces

namespace  anonymous_namespace{WorkflowUI.cppm}

Classes

struct  Context
 单次 Alfred 调用所需的运行上下文。 More...

Functions

std::string filter (const Context &context, std::string_view query)
 生成 Alfred Script Filter JSON;任何业务错误都转换为不可选错误条目。
std::expected< std::string, std::string > action (const Context &context, std::string_view token)
 执行 Alfred action token;错误文本直接作为 Alfred Large Type/通知内容。
std::string base64url_encode (std::string_view value)
 URL-safe、无 padding 的 Base64 编码,用于 token 中的用户字段。
std::optional< std::string > base64url_decode (std::string_view value)
 Base64url 解码;非法字符返回 nullopt,调用方转换为 action 错误。
std::string filter_impl (const Context &context, std::string_view raw_query)

Function Documentation

◆ action()

std::expected< std::string, std::string > WorkflowUI::action ( const Context & context,
std::string_view token )
export

执行 Alfred action token;错误文本直接作为 Alfred Large Type/通知内容。

Definition at line 1426 of file WorkflowUI.cppm.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ base64url_decode()

std::optional< std::string > WorkflowUI::base64url_decode ( std::string_view value)
export

Base64url 解码;非法字符返回 nullopt,调用方转换为 action 错误。

Definition at line 866 of file WorkflowUI.cppm.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ base64url_encode()

std::string WorkflowUI::base64url_encode ( std::string_view value)
export

URL-safe、无 padding 的 Base64 编码,用于 token 中的用户字段。

Definition at line 843 of file WorkflowUI.cppm.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ filter()

std::string WorkflowUI::filter ( const Context & context,
std::string_view query )
export

生成 Alfred Script Filter JSON;任何业务错误都转换为不可选错误条目。

Definition at line 1407 of file WorkflowUI.cppm.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ filter_impl()

std::string WorkflowUI::filter_impl ( const Context & context,
std::string_view raw_query )

Definition at line 889 of file WorkflowUI.cppm.

Here is the call graph for this function:
Here is the caller graph for this function: