diff --git a/pyproject.toml b/pyproject.toml index 82d3c108..bc79cc5a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sap-cloud-sdk" -version = "0.53.0" +version = "0.54.0" description = "SAP Cloud SDK for Python" readme = "README.md" license = "Apache-2.0" @@ -41,7 +41,7 @@ dependencies = [ ] [project.optional-dependencies] -extensibility = ["a2a-sdk>=0.2.0,<2"] +extensibility = ["a2a-sdk>=0.2.0,<1"] starlette = ["starlette>=0.40.0,<1"] fastapi = ["fastapi>=0.100.0,<1"] aiohttp = ["aiohttp>=3.9.0,<4"] @@ -75,7 +75,7 @@ dev = [ "sqlalchemy>=2.0.0", "django>=4.0", "flask>=3.0", - "a2a-sdk>=0.2.0", + "a2a-sdk>=0.2.0,<1", "langchain-core>=1.2.7", "langgraph>=0.2.0", "langchain-community>=0.3.0", diff --git a/src/sap_cloud_sdk/core/telemetry/__init__.py b/src/sap_cloud_sdk/core/telemetry/__init__.py index b1d616e4..ad8a88e6 100644 --- a/src/sap_cloud_sdk/core/telemetry/__init__.py +++ b/src/sap_cloud_sdk/core/telemetry/__init__.py @@ -43,6 +43,7 @@ ATTR_SUMMARY_TOOL_CALL_COUNT, ATTR_SUMMARY_HOOK_CALL_COUNT, ATTR_SUMMARY_HAS_INSTRUCTION, + ATTR_SUMMARY_JOULE_STUDIO_GSID, resolve_source_info, build_extension_span_attributes, reset_tool_call_metrics, @@ -96,6 +97,7 @@ "ATTR_SUMMARY_TOOL_CALL_COUNT", "ATTR_SUMMARY_HOOK_CALL_COUNT", "ATTR_SUMMARY_HAS_INSTRUCTION", + "ATTR_SUMMARY_JOULE_STUDIO_GSID", "resolve_source_info", "build_extension_span_attributes", "reset_tool_call_metrics", diff --git a/src/sap_cloud_sdk/core/telemetry/extensions.py b/src/sap_cloud_sdk/core/telemetry/extensions.py index e07737d4..b6254a36 100644 --- a/src/sap_cloud_sdk/core/telemetry/extensions.py +++ b/src/sap_cloud_sdk/core/telemetry/extensions.py @@ -217,6 +217,7 @@ def get_extension_context() -> dict[str, Any] | None: ATTR_SUMMARY_TOOL_CALL_COUNT = "sap.extension.summary.toolCallCount" ATTR_SUMMARY_HOOK_CALL_COUNT = "sap.extension.summary.hookCallCount" ATTR_SUMMARY_HAS_INSTRUCTION = "sap.extension.summary.hasInstruction" +ATTR_SUMMARY_JOULE_STUDIO_GSID = "sap.extension.summary.joule_studio_gsid" # --------------------------------------------------------------------------- # Private state @@ -612,6 +613,7 @@ def emit_extensions_summary_span( hook_call_count: int, has_instruction: bool, total_duration_ms: float, + joule_studio_gsid: str = "", ) -> None: """Emit a sibling summary span with aggregate extension metrics. @@ -633,6 +635,8 @@ def emit_extensions_summary_span( into the system prompt. total_duration_ms: Wall-clock sum (milliseconds) of all extension operations. + joule_studio_gsid: Global solution ID of Joule Studio (empty string + if not available). """ total = tool_call_count + hook_call_count + (1 if has_instruction else 0) attrs = { @@ -642,6 +646,8 @@ def emit_extensions_summary_span( ATTR_SUMMARY_HOOK_CALL_COUNT: hook_call_count, ATTR_SUMMARY_HAS_INSTRUCTION: has_instruction, } + if joule_studio_gsid: + attrs[ATTR_SUMMARY_JOULE_STUDIO_GSID] = joule_studio_gsid span = _tracer.start_span("agent_extensions_summary", attributes=attrs) span.end() diff --git a/src/sap_cloud_sdk/extensibility/_models.py b/src/sap_cloud_sdk/extensibility/_models.py index b3c73a48..44929202 100644 --- a/src/sap_cloud_sdk/extensibility/_models.py +++ b/src/sap_cloud_sdk/extensibility/_models.py @@ -236,11 +236,17 @@ class N8nWorkflowConfig: """n8n workflow configuration embedded in a hook. Attributes: - workflow_id: n8n workflow ID. + ord_id: ORD ID of the API resource for this workflow. + card_ord_id: MCP translation card ORD ID (per ADR-021). + tool_name: MCP tool name (apiName segment of ordId, per ADR-021). + global_tenant_id: Global tenant ID of the n8n workflow tenant (per ADR-022). method: HTTP method for the n8n webhook call. """ - workflow_id: str + ord_id: str + card_ord_id: str + tool_name: str + global_tenant_id: str method: HTTPMethod @classmethod @@ -250,7 +256,10 @@ def from_dict(cls, obj: Dict[str, Any]) -> N8nWorkflowConfig: Expected JSON shape:: { - "workflowId": "unique_n8n_workflow_id", + "ordId": "sap.n8nwfrt:apiResource:invoice-po-solution_my-workflow.postInvoice:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:invoice-po-solution_my-workflow.postInvoice_mcp:v1", + "toolName": "postInvoice", + "globalTenantId": "tenant-abc", "method": "POST" } @@ -262,7 +271,10 @@ def from_dict(cls, obj: Dict[str, Any]) -> N8nWorkflowConfig: """ method = _parse_http_method(obj.get("method", "POST")) or HTTPMethod.POST return cls( - workflow_id=obj.get("workflowId", ""), + ord_id=obj.get("ordId", ""), + card_ord_id=obj.get("cardOrdId", ""), + tool_name=obj.get("toolName", ""), + global_tenant_id=obj.get("globalTenantId", ""), method=method, ) @@ -338,7 +350,10 @@ def from_dict(cls, obj: Dict[str, Any]) -> Hook: "order": 1, "canShortCircuit": true, "n8nWorkflowConfig": { - "workflowId": "unique_n8n_workflow_id", + "ordId": "sap.n8nwfrt:apiResource:invoice-po-solution_my-workflow.postInvoice:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:invoice-po-solution_my-workflow.postInvoice_mcp:v1", + "toolName": "postInvoice", + "globalTenantId": "tenant-abc", "method": "POST" } } @@ -641,6 +656,9 @@ class ExtensionCapabilityImplementation: hooks: List of hooks attached for this extension capability. source: Per-tool and per-hook attribution mapping. ``None`` when the backend does not provide source information. + joule_studio_gsid: Global solution ID of Joule Studio. Set when a + single Joule Studio extension contributes to this capability; + empty string otherwise. """ capability_id: str @@ -649,6 +667,7 @@ class ExtensionCapabilityImplementation: instruction: Optional[str] = None hooks: List[Hook] = field(default_factory=list) source: Optional[ExtensionSourceMapping] = None + joule_studio_gsid: str = "" @classmethod def from_dict(cls, obj: Dict[str, Any]) -> ExtensionCapabilityImplementation: @@ -679,7 +698,10 @@ def from_dict(cls, obj: Dict[str, Any]) -> ExtensionCapabilityImplementation: "order": 1, "canShortCircuit": true, "n8nWorkflowConfig": { - "workflowId": "unique_n8n_workflow_id", + "ordId": "sap.n8nwfrt:apiResource:invoice-po-solution_my-workflow.postInvoice:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:invoice-po-solution_my-workflow.postInvoice_mcp:v1", + "toolName": "postInvoice", + "globalTenantId": "tenant-abc", "method": "POST" } } diff --git a/src/sap_cloud_sdk/extensibility/_ums_transport.py b/src/sap_cloud_sdk/extensibility/_ums_transport.py index 92ebf9c6..5afe8b45 100644 --- a/src/sap_cloud_sdk/extensibility/_ums_transport.py +++ b/src/sap_cloud_sdk/extensibility/_ums_transport.py @@ -74,7 +74,7 @@ additions { type mcpConfig { globalTenantId ordId toolNames } } } hooks { id hookId type name onFailure timeout deploymentType canShortCircuit - n8nWorkflowConfig { workflowId method } + n8nWorkflowConfig { ordId cardOrdId toolName globalTenantId method } } } } @@ -280,10 +280,11 @@ def _build_hook(raw: Dict[str, Any]) -> Optional[Hook]: return None n8n_config = raw.get("n8nWorkflowConfig") or {} - workflow_id = n8n_config.get("workflowId", "") - if not workflow_id: + tool_name = n8n_config.get("toolName", "") + card_ord_id = n8n_config.get("cardOrdId", "") + if not tool_name or not card_ord_id: logger.warning( - "Skipping hook with missing workflowId (hookId=%s)", + "Skipping hook with missing toolName or cardOrdId (hookId=%s)", raw.get("hookId"), ) return None @@ -295,7 +296,13 @@ def _build_hook(raw: Dict[str, Any]) -> Optional[Hook]: return Hook( id=raw.get("id", ""), hook_id=raw.get("hookId", ""), - n8n_workflow_config=N8nWorkflowConfig(workflow_id=workflow_id, method=method), + n8n_workflow_config=N8nWorkflowConfig( + ord_id=n8n_config.get("ordId", ""), + card_ord_id=n8n_config.get("cardOrdId", ""), + tool_name=tool_name, + global_tenant_id=n8n_config.get("globalTenantId", ""), + method=method, + ), name=raw.get("name", ""), type=hook_type, deployment_type=deployment_type, @@ -404,6 +411,11 @@ def _transform_ums_response( instruction = "\n\n".join(instructions) if instructions else None + joule_studio_gsid = next( + (node.get("jouleStudioGsid") or "" for node in nodes if node.get("jouleStudioGsid")), + "", + ) + return ExtensionCapabilityImplementation( capability_id=capability_id, extension_names=extension_names, @@ -411,6 +423,7 @@ def _transform_ums_response( instruction=instruction, hooks=hooks, source=source, + joule_studio_gsid=joule_studio_gsid, ) diff --git a/src/sap_cloud_sdk/extensibility/client.py b/src/sap_cloud_sdk/extensibility/client.py index d6deda28..f6c73ff6 100644 --- a/src/sap_cloud_sdk/extensibility/client.py +++ b/src/sap_cloud_sdk/extensibility/client.py @@ -2,7 +2,6 @@ from __future__ import annotations -import asyncio import itertools import json import logging @@ -40,7 +39,6 @@ _EXECUTE_WORKFLOW_TOOL_NAME = "execute_workflow" _GET_EXECUTION_TOOL_NAME = "get_execution" -_N8N_MCP_SERVER_NAME = "sap.btpn8n:apiResource:ManagedN8nMcpServer:v1" _JSONRPC_VERSION = "2.0" @@ -275,7 +273,7 @@ def call_hook( # 1. Execute workflow execute_workflow_arguments = { - "workflowId": hook.n8n_workflow_config.workflow_id, + "workflowId": hook.n8n_workflow_config.workflow_id, # ty: ignore[unresolved-attribute] "inputs": { "type": "webhook", "webhookData": { @@ -326,7 +324,7 @@ def call_hook( # 3. Poll get-execution for running/new/waiting/started execution_id = data.get("executionId") get_execution_arguments = { - "workflowId": hook.n8n_workflow_config.workflow_id, + "workflowId": hook.n8n_workflow_config.workflow_id, # ty: ignore[unresolved-attribute] "executionId": str(execution_id), "includeData": True, } @@ -398,56 +396,36 @@ def call_hook( ) async def _discover_n8n_tools( - self, agw_client: Any, user_token: Optional[str] - ) -> tuple[Any, Any]: + self, agw_client: Any, hook: Hook, user_token: Optional[str] + ) -> Any: tools = await agw_client.list_mcp_tools(user_token=user_token or None) - execute_tool = next( - ( - t - for t in tools - if t.name == _EXECUTE_WORKFLOW_TOOL_NAME - and t.server_name == _N8N_MCP_SERVER_NAME - ), - None, - ) - if execute_tool is None: - raise ExtensibilityError( - f"MCP tool '{_EXECUTE_WORKFLOW_TOOL_NAME}' on server '{_N8N_MCP_SERVER_NAME}' " - "not found via Agent Gateway." - ) - logger.info("Fetched n8n execute_tool: %s", _EXECUTE_WORKFLOW_TOOL_NAME) - - get_exec_tool = next( - ( - t - for t in tools - if t.name == _GET_EXECUTION_TOOL_NAME - and t.server_name == _N8N_MCP_SERVER_NAME - ), + tool_name = hook.n8n_workflow_config.tool_name + card_ord_id = hook.n8n_workflow_config.card_ord_id + + hook_tool = next( + (t for t in tools if t.name == tool_name and t.server_name == card_ord_id), None, ) - if get_exec_tool is None: + if hook_tool is None: raise ExtensibilityError( - f"MCP tool '{_GET_EXECUTION_TOOL_NAME}' on server '{_N8N_MCP_SERVER_NAME}' " + f"MCP tool '{tool_name}' on server '{card_ord_id}' " "not found via Agent Gateway." ) - logger.info("Fetched n8n get_exec_tool: %s", _GET_EXECUTION_TOOL_NAME) - - return execute_tool, get_exec_tool + logger.info("Discovered hook tool: name=%s server=%s", tool_name, card_ord_id) + return hook_tool async def _execute_workflow_via_agw( self, agw_client: Any, - execute_tool: Any, + hook_tool: Any, hook: Hook, user_token: Optional[str], message: Optional[Any], headers: Optional[dict], - ) -> tuple[str, Any]: + ) -> Optional[Message]: message_body = message.model_dump(mode="json") if message is not None else {} - execute_arguments = { - "workflowId": hook.n8n_workflow_config.workflow_id, + tool_arguments = { "inputs": { "type": "webhook", "webhookData": { @@ -458,16 +436,20 @@ async def _execute_workflow_via_agw( }, }, } - logger.info("Executing workflow id=%s", hook.n8n_workflow_config.workflow_id) + logger.info( + "Calling hook tool=%s server=%s", + hook.n8n_workflow_config.tool_name, + hook.n8n_workflow_config.card_ord_id, + ) try: result_str = await agw_client.call_mcp_tool( - execute_tool, + hook_tool, user_token=user_token or None, - **execute_arguments, # type: ignore[arg-type] + **tool_arguments, # type: ignore[arg-type] ) except Exception as exc: raise TransportError( - f"AGW tool call for '{_EXECUTE_WORKFLOW_TOOL_NAME}' failed: {exc}" + f"AGW tool call for '{hook.n8n_workflow_config.tool_name}' failed: {exc}" ) from exc try: @@ -475,21 +457,12 @@ async def _execute_workflow_via_agw( except Exception as exc: raise TransportError(f"Could not parse hook response: {exc}") from exc - status = data.get("status", "") - if status in _EXECUTE_TERMINAL_STATUSES: - error_msg = data.get("error", "") + try: + return Message(**data) if data else None + except (TypeError, ValidationError) as exc: raise ExtensibilityError( - f"Workflow execution failed with status {status!r}" - + (f": {error_msg}" if error_msg else "") - ) - - execution_id = data.get("executionId") - logger.info( - "Workflow execution complete: execution_id=%s, status=%s", - execution_id, - status, - ) - return str(execution_id), status + f"Hook response did not conform to the A2A Message protocol: {exc}" + ) from exc @staticmethod def _extract_message(data: dict) -> Message: @@ -509,67 +482,6 @@ def _extract_message(data: dict) -> Message: f"Failed to extract response from last executed node: {exc}" ) from exc - async def _poll_hook_execution( - self, - agw_client: Any, - get_exec_tool: Any, - hook: Hook, - execution_id: str, - user_token: Optional[str], - initial_status: str, - ) -> Optional[Message]: - deadline = time.monotonic() + hook.timeout - last_status = initial_status - logger.info( - "Polling for workflow %s execution result (timeout=%ss)", - hook.n8n_workflow_config.workflow_id, - hook.timeout, - ) - - while time.monotonic() < deadline: - await asyncio.sleep(_HOOK_POLL_INTERVAL) - - try: - get_execution_arguments = { - "workflowId": hook.n8n_workflow_config.workflow_id, - "executionId": execution_id, - "includeData": True, - } - result_str = await agw_client.call_mcp_tool( - get_exec_tool, - user_token=user_token or None, - **get_execution_arguments, # type: ignore[arg-type] - ) - except Exception as exc: - raise TransportError( - f"AGW tool call for '{_GET_EXECUTION_TOOL_NAME}' failed: {exc}" - ) from exc - - try: - data = json.loads(result_str) - except Exception as exc: - raise TransportError(f"Could not parse hook response: {exc}") from exc - - last_status = data.get("execution", {}).get("status", "") or data.get( - "status", "" - ) - - if last_status == "success": - logger.info("Execution %s completed successfully", execution_id) - return self._extract_message(data) - - if last_status in _EXECUTION_TERMINAL_STATUSES: - error_msg = data.get("error", "") - raise ExtensibilityError( - f"Workflow execution failed with status {last_status!r}" - + (f": {error_msg}" if error_msg else "") - ) - - raise ExtensibilityError( - f"Workflow execution timed out after {hook.timeout}s. " - f"Last status: {last_status!r}" - ) - @record_metrics( Module.EXTENSIBILITY, Operation.EXTENSIBILITY_CALL_HOOK, @@ -584,16 +496,16 @@ async def call_hook_agw( ) -> Optional[Message]: """Call a hook via Agent Gateway MCP tool invocation. - Discovers the N8N MCP tools via Agent Gateway, executes the workflow via - ``execute_workflow``, then polls ``get_execution`` every 500 ms until the - execution succeeds, fails, or ``hook.timeout`` seconds elapse. + Discovers the hook's MCP tool via Agent Gateway by matching ``tool_name`` + and ``card_ord_id`` from the hook config, then calls it and returns + the result. Auth and endpoint resolution are handled internally by an AGW client created from ``tenant_subdomain`` — no manual token or URL configuration is required. Args: - hook: Hook configuration (workflow ID, method, timeout). + hook: Hook configuration (tool name, card ORD ID, method, timeout). user_token: Optional user token forwarded to the Agent Gateway client for MCP tool discovery and invocation. message: Optional A2A ``Message`` payload serialised into the webhook @@ -604,12 +516,12 @@ async def call_hook_agw( Gateway client. Pass ``None`` to use the default subdomain. Returns: - Parsed ``Message`` from the last executed workflow node, or ``None`` + Parsed ``Message`` from the hook tool response, or ``None`` if the hook completed successfully but produced no message. Raises: - TransportError: On AGW tool call errors, terminal execution failures, - or timeout. + TransportError: On AGW tool call errors or unparseable responses. + ExtensibilityError: When the hook tool is not found via Agent Gateway. Example: ```python @@ -633,18 +545,8 @@ async def call_hook_agw( logger.info( "AGW client created successfully for tenant_subdomain=%s", tenant_subdomain ) - execute_tool, get_exec_tool = await self._discover_n8n_tools( - agw_client, user_token - ) - logger.info("Discovered n8n tools") - execution_id, status = await self._execute_workflow_via_agw( - agw_client, execute_tool, hook, user_token, message, headers - ) - logger.info( - "Workflow triggered: execution_id=%s, initial_status=%s", - execution_id, - status, - ) - return await self._poll_hook_execution( - agw_client, get_exec_tool, hook, execution_id, user_token, status + hook_tool = await self._discover_n8n_tools(agw_client, hook, user_token) + logger.info("Discovered n8n workflow tool") + return await self._execute_workflow_via_agw( + agw_client, hook_tool, hook, user_token, message, headers ) diff --git a/src/sap_cloud_sdk/extensibility/local_extensibility_example.json b/src/sap_cloud_sdk/extensibility/local_extensibility_example.json index 77b9120e..7141d726 100644 --- a/src/sap_cloud_sdk/extensibility/local_extensibility_example.json +++ b/src/sap_cloud_sdk/extensibility/local_extensibility_example.json @@ -19,7 +19,10 @@ "hookType": "BEFORE", "deploymentType": "N8N", "n8nWorkflowConfig": { - "workflowId": "wf-currency-conversion-001", + "ordId": "sap.n8nwfrt:apiResource:invoice-po-solution_currency-conversion.convertCurrency:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:invoice-po-solution_currency-conversion.convertCurrency_mcp:v1", + "toolName": "convertCurrency", + "globalTenantId": "tenant-example-001", "method": "POST" }, "timeout": 30, @@ -35,7 +38,10 @@ "hookType": "AFTER", "deploymentType": "N8N", "n8nWorkflowConfig": { - "workflowId": "wf-trigger-email-notification-001", + "ordId": "sap.n8nwfrt:apiResource:invoice-po-solution_notify.sendEmailNotification:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:invoice-po-solution_notify.sendEmailNotification_mcp:v1", + "toolName": "sendEmailNotification", + "globalTenantId": "tenant-example-001", "method": "POST" }, "timeout": 30, diff --git a/src/sap_cloud_sdk/extensibility/user-guide.md b/src/sap_cloud_sdk/extensibility/user-guide.md index 4baa74fd..3d699c49 100644 --- a/src/sap_cloud_sdk/extensibility/user-guide.md +++ b/src/sap_cloud_sdk/extensibility/user-guide.md @@ -61,7 +61,7 @@ for server in ext.mcp_servers: print("Approved tools:", server.tool_names) for hook in ext.hooks: - print(hook.id, hook.n8n_workflow_config.workflow_id) + print(hook.id, hook.n8n_workflow_config.tool_name) if ext.instruction: print("Extension instruction:", ext.instruction) @@ -97,7 +97,7 @@ agent_extensions = build_extension_capabilities(capabilities) - **MCP Server**: A Model Context Protocol server contributed by an extension. Each server has an ORD ID and an optional allowlist of approved tool names. -- **Hook**: A workflow to be executed before or after the agent execution. Each hook has a unique UUID `id`, a developer-facing `hook_id` (not guaranteed to be unique), and an `n8n_workflow_config` containing the workflow ID and HTTP method. Hook payloads and responses use the `Message` type from the `a2a.types` module for standardized agent-to-agent communication. +- **Hook**: A workflow to be executed before or after the agent execution. Each hook has a unique UUID `id`, a developer-facing `hook_id` (not guaranteed to be unique), and an `n8n_workflow_config` containing the ORD IDs, tool name, global tenant ID, and HTTP method that identify the hook's MCP server and tool. Hook payloads and responses use the `Message` type from the `a2a.types` module for standardized agent-to-agent communication. - **UMS (Unified Metadata Service)**: The SAP backend service that manages agent extensions. The module communicates with it via GraphQL over mTLS, using the BTP Destination Service for URL and credential resolution. @@ -161,7 +161,7 @@ def call_hook( - Raises `ExtensibilityError` if the workflow reaches a terminal failure status, times out, or n8n returns an application-level error. - The hook's `timeout` setting is used for the HTTP request timeout. - The hook HTTP method is taken from `hook.n8n_workflow_config.method`. -- The workflow ID is taken from `hook.n8n_workflow_config.workflow_id`. +- The workflow ID is taken from `hook.n8n_workflow_config.workflow_id` (legacy direct-HTTP path). ### `ExtensibilityClient.call_hook_agw()` @@ -185,15 +185,18 @@ async def call_hook_agw( - `tenant_subdomain`: Tenant subdomain used to instantiate the Agent Gateway client. Pass `None` to use the default subdomain. - Returns the response data as a `Message` object, or `None` if no message is produced. - Raises `TransportError` if the AGW tool call itself fails (network error, etc.). -- Raises `ExtensibilityError` if the n8n MCP tools are not found via AGW, the workflow reaches a terminal failure status, times out, or n8n returns an application-level error. +- Raises `ExtensibilityError` if the hook MCP tool is not found via AGW, or the hook response does not conform to the A2A Message protocol. #### `N8nWorkflowConfig` ```python @dataclass class N8nWorkflowConfig: - workflow_id: str # Workflow ID - method: HTTPMethod # HTTP method used by webhook execution + ord_id: str # ORD ID of the n8n API resource + card_ord_id: str # ORD ID of the n8n MCP translation card (server identifier) + tool_name: str # MCP tool name to call on the card server + global_tenant_id: str # LWT global tenant ID for the workflow + method: HTTPMethod # HTTP method used by webhook execution ``` #### `HookConfig` @@ -322,7 +325,7 @@ class Hook: type: HookType # Hook type (BEFORE, AFTER) deployment_type: DeploymentType # Deployment type (N8N, SERVERLESS) n8n_workflow_config: ( - N8nWorkflowConfig # Workflow config (workflow ID + HTTP method) + N8nWorkflowConfig # Workflow config (ORD IDs, tool name, global tenant ID, HTTP method) ) timeout: int # Timeout in seconds execution_mode: ExecutionMode # Execution mode (SYNC, ASYNC) @@ -582,7 +585,7 @@ The `HTTPMethod` enum ensures type safety: - `HTTPMethod.PATCH` - Partially update data - `HTTPMethod.DELETE` - Delete or cancel an operation -The workflow used for execution comes from `hook.n8n_workflow_config.workflow_id`. +The hook tool name and server come from `hook.n8n_workflow_config.tool_name` and `hook.n8n_workflow_config.card_ord_id`. #### Synchronous Hook Execution @@ -857,7 +860,10 @@ The JSON file uses the same schema as the extensibility backend response: "type": "BEFORE", "deploymentType": "N8N", "n8nWorkflowConfig": { - "workflowId": "wf-currency-conversion-001", + "ordId": "sap.n8nwfrt:apiResource:invoice-po-solution_currency-conversion.convertCurrency:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:invoice-po-solution_currency-conversion.convertCurrency_mcp:v1", + "toolName": "convertCurrency", + "globalTenantId": "tenant-example-001", "method": "POST" }, "timeout": 30, diff --git a/tests/core/unit/telemetry/test_extensions.py b/tests/core/unit/telemetry/test_extensions.py index 90607c53..f32fcfea 100644 --- a/tests/core/unit/telemetry/test_extensions.py +++ b/tests/core/unit/telemetry/test_extensions.py @@ -25,6 +25,7 @@ ATTR_SUMMARY_TOOL_CALL_COUNT, ATTR_SUMMARY_HOOK_CALL_COUNT, ATTR_SUMMARY_HAS_INSTRUCTION, + ATTR_SUMMARY_JOULE_STUDIO_GSID, resolve_source_info, build_extension_span_attributes, reset_tool_call_metrics, @@ -1074,6 +1075,37 @@ def test_no_instruction_count(self): attrs = mock_tracer.start_span.call_args[1]["attributes"] assert attrs[ATTR_SUMMARY_TOTAL_OPERATION_COUNT] == 1 # no +1 + def test_joule_studio_gsid_included_when_provided(self): + with patch("sap_cloud_sdk.core.telemetry.extensions._tracer") as mock_tracer: + mock_span = MagicMock() + mock_tracer.start_span.return_value = mock_span + + emit_extensions_summary_span( + tool_call_count=1, + hook_call_count=0, + has_instruction=False, + total_duration_ms=100.0, + joule_studio_gsid="019ffc41-01a5-7b73-bda2-cb33b2eae292", + ) + + attrs = mock_tracer.start_span.call_args[1]["attributes"] + assert attrs[ATTR_SUMMARY_JOULE_STUDIO_GSID] == "019ffc41-01a5-7b73-bda2-cb33b2eae292" + + def test_joule_studio_gsid_omitted_when_empty(self): + with patch("sap_cloud_sdk.core.telemetry.extensions._tracer") as mock_tracer: + mock_span = MagicMock() + mock_tracer.start_span.return_value = mock_span + + emit_extensions_summary_span( + tool_call_count=1, + hook_call_count=0, + has_instruction=False, + total_duration_ms=100.0, + ) + + attrs = mock_tracer.start_span.call_args[1]["attributes"] + assert ATTR_SUMMARY_JOULE_STUDIO_GSID not in attrs + # --------------------------------------------------------------------------- # ExtensionContextLogFilter diff --git a/tests/extensibility/unit/_ums_test_helpers.py b/tests/extensibility/unit/_ums_test_helpers.py index 2a91e4a0..1ba257a8 100644 --- a/tests/extensibility/unit/_ums_test_helpers.py +++ b/tests/extensibility/unit/_ums_test_helpers.py @@ -72,7 +72,10 @@ "deploymentType": "N8N", "canShortCircuit": False, "n8nWorkflowConfig": { - "workflowId": "wf-before-001", + "ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", + "toolName": "testHook", + "globalTenantId": "tenant-test-001", "method": "POST", }, } @@ -149,7 +152,10 @@ "deploymentType": "N8N", "canShortCircuit": False, "n8nWorkflowConfig": { - "workflowId": "wf-after-001", + "ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", + "toolName": "testHook", + "globalTenantId": "tenant-test-001", "method": "POST", }, } diff --git a/tests/extensibility/unit/test_client.py b/tests/extensibility/unit/test_client.py index 569ef73c..238bd676 100644 --- a/tests/extensibility/unit/test_client.py +++ b/tests/extensibility/unit/test_client.py @@ -10,7 +10,6 @@ ExtensibilityClient, _EXECUTE_WORKFLOW_TOOL_NAME, _GET_EXECUTION_TOOL_NAME, - _N8N_MCP_SERVER_NAME, ) from sap_cloud_sdk.extensibility._models import ( ExtensionCapabilityImplementation, @@ -28,6 +27,16 @@ from sap_cloud_sdk.agentgateway._models import MCPTool +# --------------------------------------------------------------------------- +# Shared constants for hook tool identity +# --------------------------------------------------------------------------- + +_TOOL_NAME = "convertCurrency" +_CARD_ORD_ID = "sap.n8nwfrt:apiResource:invoice-po-solution_currency-conversion.convertCurrency_mcp:v1" +_ORD_ID = "sap.n8nwfrt:apiResource:invoice-po-solution_currency-conversion.convertCurrency:v1" +_GLOBAL_TENANT_ID = "tenant-example-001" + + class TestCreateClient: """Tests for the create_client factory.""" @@ -102,7 +111,10 @@ def test_success(self): hook_id="agent_pre_hook", id="9f6e5f66-7e4f-4ef0-a9f6-e6e1c1220c11", n8n_workflow_config=N8nWorkflowConfig( - workflow_id="wf-pre-001", + ord_id=_ORD_ID, + card_ord_id=_CARD_ORD_ID, + tool_name=_TOOL_NAME, + global_tenant_id=_GLOBAL_TENANT_ID, method=HTTPMethod.POST, ), name="Before Agent Hook", @@ -118,7 +130,10 @@ def test_success(self): hook_id="agent_post_hook", id="6a9e0cef-eed6-4f1b-9f86-3d8e9f5c1d22", n8n_workflow_config=N8nWorkflowConfig( - workflow_id="wf-post-001", + ord_id=_ORD_ID, + card_ord_id=_CARD_ORD_ID, + tool_name=_TOOL_NAME, + global_tenant_id=_GLOBAL_TENANT_ID, method=HTTPMethod.POST, ), name="After Agent Hook", @@ -217,15 +232,22 @@ def test_error_logging(self): # --------------------------------------------------------------------------- -# Helpers shared across call_hook tests +# Helpers shared across call_hook_agw tests # --------------------------------------------------------------------------- -def _make_hook(workflow_id: str = "wf-001", timeout: int = 30) -> Hook: +def _make_hook( + tool_name: str = _TOOL_NAME, + card_ord_id: str = _CARD_ORD_ID, + timeout: int = 30, +) -> Hook: return Hook( hook_id="agent_pre_hook", id="9f6e5f66-7e4f-4ef0-a9f6-e6e1c1220c11", n8n_workflow_config=N8nWorkflowConfig( - workflow_id=workflow_id, + ord_id=_ORD_ID, + card_ord_id=card_ord_id, + tool_name=tool_name, + global_tenant_id=_GLOBAL_TENANT_ID, method=HTTPMethod.POST, ), name="Pre Hook", @@ -239,89 +261,37 @@ def _make_hook(workflow_id: str = "wf-001", timeout: int = 30) -> Hook: ) -def _make_n8n_tool(name: str) -> MCPTool: - """Return an MCPTool belonging to the N8N MCP server.""" +def _make_hook_tool( + tool_name: str = _TOOL_NAME, + card_ord_id: str = _CARD_ORD_ID, +) -> MCPTool: + """Return an MCPTool matching the hook's tool_name and card_ord_id.""" return MCPTool( - name=name, - server_name=_N8N_MCP_SERVER_NAME, + name=tool_name, + server_name=card_ord_id, description="", input_schema={}, - url="https://agw.example.com/v1/mcp/sap.btpn8n:apiResource:ManagedN8nMcpServer:v1/gtid-1", + url="https://agw.example.com/v1/mcp/sap.n8nwfrt.../gtid-1", ) -def _make_other_server_tool(name: str) -> MCPTool: - """Return an MCPTool with the same name but from a different MCP server.""" +def _make_other_server_tool(tool_name: str = _TOOL_NAME) -> MCPTool: + """Return an MCPTool with the same tool name but from a different MCP server.""" return MCPTool( - name=name, - server_name="sap.other:apiResource:OtherMcpServer:v1", + name=tool_name, + server_name="sap.other:apiResource:OtherServer:v1", description="", input_schema={}, url="https://agw.example.com/v1/mcp/other/gtid-2", ) -def _success_payload(workflow_id: str = "wf-001") -> str: - return json.dumps({ - "status": "success", - "data": { - "resultData": { - "lastNodeExecuted": "Respond to Webhook", - "runData": { - "Respond to Webhook": [ - { - "data": { - "main": [ - [ - { - "json": { - "message_id": "msg-1", - "context_id": "ctx-1", - "role": 2, - } - } - ] - ] - } - } - ] - }, - } - }, - }) - - -def _running_payload(execution_id: str = "exec-1") -> str: - return json.dumps({"status": "running", "executionId": execution_id}) - - -def _poll_success_payload() -> str: +def _success_payload() -> str: + """A2A Message returned directly by the n8n MCP translation card.""" return json.dumps({ - "status": "success", - "data": { - "resultData": { - "lastNodeExecuted": "Respond to Webhook", - "runData": { - "Respond to Webhook": [ - { - "data": { - "main": [ - [ - { - "json": { - "message_id": "msg-2", - "context_id": "ctx-1", - "role": 2, - } - } - ] - ] - } - } - ] - }, - } - }, + "messageId": "msg-1", + "role": "agent", + "parts": [{"kind": "text", "text": "Currency converted successfully."}], }) @@ -334,238 +304,107 @@ def _make_agw_client(tools: list, tool_responses: list) -> MagicMock: # --------------------------------------------------------------------------- -# Tests for ExtensibilityClient.call_hook +# Tests for ExtensibilityClient.call_hook_agw # --------------------------------------------------------------------------- -class TestCallHook: - """Tests for ExtensibilityClient.call_hook (async, AGW-based).""" +class TestCallHookAgw: + """Tests for ExtensibilityClient.call_hook_agw (AGW-based MCP invocation).""" - def _make_client(self, agw: MagicMock) -> ExtensibilityClient: - """Build an ExtensibilityClient with a mock transport and patched AGW factory.""" + def _make_client(self) -> ExtensibilityClient: return ExtensibilityClient(MagicMock()) @pytest.mark.asyncio - async def test_execute_tool_not_found_raises(self): - """Raises ExtensibilityError when execute_workflow tool is absent.""" + async def test_tool_not_found_raises(self): + """Raises ExtensibilityError when no tool matches tool_name + card_ord_id.""" agw = _make_agw_client(tools=[], tool_responses=[]) - client = self._make_client(agw) + client = self._make_client() with patch( "sap_cloud_sdk.extensibility.client.create_agw_client", return_value=agw, ): - with pytest.raises(ExtensibilityError, match=_EXECUTE_WORKFLOW_TOOL_NAME): + with pytest.raises(ExtensibilityError, match=_TOOL_NAME): await client.call_hook_agw(hook=_make_hook(), tenant_subdomain="t") @pytest.mark.asyncio - async def test_get_exec_tool_not_found_raises(self): - """Raises ExtensibilityError when get_execution tool is absent.""" - tools = [_make_n8n_tool(_EXECUTE_WORKFLOW_TOOL_NAME)] - agw = _make_agw_client(tools=tools, tool_responses=[]) - client = self._make_client(agw) + async def test_wrong_server_does_not_match(self): + """A tool with the right name but wrong server_name must not match.""" + agw = _make_agw_client(tools=[_make_other_server_tool()], tool_responses=[]) + client = self._make_client() with patch( "sap_cloud_sdk.extensibility.client.create_agw_client", return_value=agw, ): - with pytest.raises(ExtensibilityError, match=_GET_EXECUTION_TOOL_NAME): + with pytest.raises(ExtensibilityError, match=_TOOL_NAME): await client.call_hook_agw(hook=_make_hook(), tenant_subdomain="t") @pytest.mark.asyncio - async def test_composite_key_ignores_wrong_server(self): - """Tools from a different server with the same names must not match.""" - tools = [ - _make_other_server_tool(_EXECUTE_WORKFLOW_TOOL_NAME), - _make_other_server_tool(_GET_EXECUTION_TOOL_NAME), - ] - agw = _make_agw_client(tools=tools, tool_responses=[]) - client = self._make_client(agw) - with patch( - "sap_cloud_sdk.extensibility.client.create_agw_client", - return_value=agw, - ): - with pytest.raises(ExtensibilityError, match=_EXECUTE_WORKFLOW_TOOL_NAME): - await client.call_hook_agw(hook=_make_hook(), tenant_subdomain="t") - - @pytest.mark.asyncio - async def test_composite_key_picks_correct_tool_among_duplicates(self): - """Picks the N8N tool when another server exposes identically-named tools.""" - tools = [ - _make_other_server_tool(_EXECUTE_WORKFLOW_TOOL_NAME), - _make_other_server_tool(_GET_EXECUTION_TOOL_NAME), - _make_n8n_tool(_EXECUTE_WORKFLOW_TOOL_NAME), - _make_n8n_tool(_GET_EXECUTION_TOOL_NAME), - ] - agw = _make_agw_client( - tools=tools, - tool_responses=[_running_payload(), _poll_success_payload()], - ) - client = self._make_client(agw) - with patch( - "sap_cloud_sdk.extensibility.client.create_agw_client", - return_value=agw, - ), patch( - "sap_cloud_sdk.extensibility.client.asyncio.sleep", - new_callable=AsyncMock, - ): - result = await client.call_hook_agw(hook=_make_hook(), tenant_subdomain="t") - assert result is not None - # Both tool calls must have used the N8N server tools, not the other one - for call in agw.call_mcp_tool.call_args_list: - assert call[0][0].server_name == _N8N_MCP_SERVER_NAME - - @pytest.mark.asyncio - async def test_success_synchronous(self): - """Returns a Message when get_execution responds with status=success.""" - tools = [ - _make_n8n_tool(_EXECUTE_WORKFLOW_TOOL_NAME), - _make_n8n_tool(_GET_EXECUTION_TOOL_NAME), - ] - agw = _make_agw_client( - tools=tools, - tool_responses=[_running_payload(), _poll_success_payload()], - ) - client = self._make_client(agw) + async def test_success_returns_message(self): + """Returns a Message on a successful single tool call.""" + agw = _make_agw_client(tools=[_make_hook_tool()], tool_responses=[_success_payload()]) + client = self._make_client() with patch( "sap_cloud_sdk.extensibility.client.create_agw_client", return_value=agw, - ), patch( - "sap_cloud_sdk.extensibility.client.asyncio.sleep", - new_callable=AsyncMock, ): result = await client.call_hook_agw(hook=_make_hook(), tenant_subdomain="t") assert result is not None - assert result.message_id == "msg-2" - assert agw.call_mcp_tool.call_count == 2 + assert result.message_id == "msg-1" + assert agw.call_mcp_tool.call_count == 1 @pytest.mark.asyncio - async def test_success_after_polling(self): - """Returns a Message after one poll round via get_execution.""" - tools = [ - _make_n8n_tool(_EXECUTE_WORKFLOW_TOOL_NAME), - _make_n8n_tool(_GET_EXECUTION_TOOL_NAME), - ] - agw = _make_agw_client( - tools=tools, - tool_responses=[_running_payload(), _poll_success_payload()], - ) - client = self._make_client(agw) + async def test_picks_correct_tool_among_duplicates(self): + """Picks the hook's card tool when another server exposes an identically-named tool.""" + tools = [_make_other_server_tool(), _make_hook_tool()] + agw = _make_agw_client(tools=tools, tool_responses=[_success_payload()]) + client = self._make_client() with patch( "sap_cloud_sdk.extensibility.client.create_agw_client", return_value=agw, - ), patch( - "sap_cloud_sdk.extensibility.client.asyncio.sleep", - new_callable=AsyncMock, ): result = await client.call_hook_agw(hook=_make_hook(), tenant_subdomain="t") assert result is not None - assert result.message_id == "msg-2" - assert agw.call_mcp_tool.call_count == 2 + assert agw.call_mcp_tool.call_args[0][0].server_name == _CARD_ORD_ID @pytest.mark.asyncio - async def test_terminal_status_from_execute_raises(self): - """Raises ExtensibilityError on a terminal status from execute_workflow.""" - tools = [ - _make_n8n_tool(_EXECUTE_WORKFLOW_TOOL_NAME), - _make_n8n_tool(_GET_EXECUTION_TOOL_NAME), - ] - terminal_payload = json.dumps({"status": "error", "error": "workflow crashed"}) - agw = _make_agw_client(tools=tools, tool_responses=[terminal_payload]) - client = self._make_client(agw) + async def test_agw_call_exception_raises_transport_error(self): + """Wraps call_mcp_tool exceptions in TransportError.""" + agw = MagicMock() + agw.list_mcp_tools = AsyncMock(return_value=[_make_hook_tool()]) + agw.call_mcp_tool = AsyncMock(side_effect=RuntimeError("network error")) + client = self._make_client() with patch( "sap_cloud_sdk.extensibility.client.create_agw_client", return_value=agw, ): - with pytest.raises(ExtensibilityError, match="workflow crashed"): + with pytest.raises(TransportError, match="network error"): await client.call_hook_agw(hook=_make_hook(), tenant_subdomain="t") @pytest.mark.asyncio - async def test_terminal_status_from_poll_raises(self): - """Raises ExtensibilityError on a terminal status from get_execution poll.""" - tools = [ - _make_n8n_tool(_EXECUTE_WORKFLOW_TOOL_NAME), - _make_n8n_tool(_GET_EXECUTION_TOOL_NAME), - ] - poll_terminal = json.dumps({"status": "error", "error": "node failed"}) - agw = _make_agw_client( - tools=tools, - tool_responses=[_running_payload(), poll_terminal], - ) - client = self._make_client(agw) + async def test_non_a2a_response_raises_extensibility_error(self): + """Raises ExtensibilityError when the tool response is not a valid A2A Message.""" + bad_payload = json.dumps({"not": "a2a"}) + agw = _make_agw_client(tools=[_make_hook_tool()], tool_responses=[bad_payload]) + client = self._make_client() with patch( "sap_cloud_sdk.extensibility.client.create_agw_client", return_value=agw, - ), patch( - "sap_cloud_sdk.extensibility.client.asyncio.sleep", - new_callable=AsyncMock, ): - with pytest.raises(ExtensibilityError, match="node failed"): + with pytest.raises(ExtensibilityError, match="A2A"): await client.call_hook_agw(hook=_make_hook(), tenant_subdomain="t") @pytest.mark.asyncio - async def test_timeout_raises(self): - """Raises ExtensibilityError when deadline is exceeded without a success status.""" - tools = [ - _make_n8n_tool(_EXECUTE_WORKFLOW_TOOL_NAME), - _make_n8n_tool(_GET_EXECUTION_TOOL_NAME), - ] - # Always returns "running" so the loop never exits via success/terminal - agw = _make_agw_client( - tools=tools, - tool_responses=[_running_payload()] + [_running_payload()] * 100, - ) - client = self._make_client(agw) - # Use a hook with timeout=0 so monotonic deadline is immediately exceeded - hook = _make_hook(timeout=0) + async def test_webhook_inputs_forwarded_to_tool(self): + """Verifies webhook payload structure is forwarded correctly to call_mcp_tool.""" + agw = _make_agw_client(tools=[_make_hook_tool()], tool_responses=[_success_payload()]) + client = self._make_client() with patch( "sap_cloud_sdk.extensibility.client.create_agw_client", return_value=agw, - ), patch( - "sap_cloud_sdk.extensibility.client.asyncio.sleep", - new_callable=AsyncMock, ): - with pytest.raises(ExtensibilityError, match="timed out"): - await client.call_hook_agw(hook=hook, tenant_subdomain="t") - - @pytest.mark.asyncio - async def test_agw_call_mcp_tool_exception_raises_transport_error(self): - """Wraps call_mcp_tool exceptions in TransportError.""" - tools = [ - _make_n8n_tool(_EXECUTE_WORKFLOW_TOOL_NAME), - _make_n8n_tool(_GET_EXECUTION_TOOL_NAME), - ] - agw = MagicMock() - agw.list_mcp_tools = AsyncMock(return_value=tools) - agw.call_mcp_tool = AsyncMock(side_effect=RuntimeError("network error")) - client = self._make_client(agw) - with patch( - "sap_cloud_sdk.extensibility.client.create_agw_client", - return_value=agw, - ): - with pytest.raises(TransportError, match="network error"): - await client.call_hook_agw(hook=_make_hook(), tenant_subdomain="t") - - @pytest.mark.asyncio - async def test_workflow_id_passed_to_execute_tool(self): - """Verifies the correct workflowId is forwarded to call_mcp_tool.""" - tools = [ - _make_n8n_tool(_EXECUTE_WORKFLOW_TOOL_NAME), - _make_n8n_tool(_GET_EXECUTION_TOOL_NAME), - ] - agw = _make_agw_client( - tools=tools, - tool_responses=[_running_payload(), _poll_success_payload()], - ) - client = self._make_client(agw) - with patch( - "sap_cloud_sdk.extensibility.client.create_agw_client", - return_value=agw, - ), patch( - "sap_cloud_sdk.extensibility.client.asyncio.sleep", - new_callable=AsyncMock, - ): - await client.call_hook_agw( - hook=_make_hook(workflow_id="wf-xyz"), tenant_subdomain="t" - ) - # First call is execute_workflow — check workflowId was forwarded correctly - first_call_kwargs = agw.call_mcp_tool.call_args_list[0][1] - assert first_call_kwargs["workflowId"] == "wf-xyz" + await client.call_hook_agw(hook=_make_hook(), tenant_subdomain="t") + call_kwargs = agw.call_mcp_tool.call_args[1] + assert "inputs" in call_kwargs + assert call_kwargs["inputs"]["type"] == "webhook" + assert "webhookData" in call_kwargs["inputs"] + assert call_kwargs["inputs"]["webhookData"]["method"] == HTTPMethod.POST diff --git a/tests/extensibility/unit/test_local_transport.py b/tests/extensibility/unit/test_local_transport.py index 19bf5caa..f4433cb6 100644 --- a/tests/extensibility/unit/test_local_transport.py +++ b/tests/extensibility/unit/test_local_transport.py @@ -79,7 +79,7 @@ "name": "Before Tool Execution Hook", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-before-001", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, "timeout": 30, "executionMode": "SYNC", "onFailure": "CONTINUE", @@ -108,7 +108,7 @@ "name": "Pre Execution Hook", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-pre-001", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, "timeout": 20, "executionMode": "SYNC", "onFailure": "CONTINUE", @@ -137,7 +137,7 @@ "name": "Before Tool Execution Hook", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-before-001", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, "timeout": 30, "executionMode": "SYNC", "onFailure": "BLOCK", @@ -150,7 +150,7 @@ "name": "After Tool Execution Hook", "hookType": "AFTER", "deploymentType": "SERVERLESS", - "n8nWorkflowConfig": {"workflowId": "wf-after-001", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, "timeout": 60, "executionMode": "ASYNC", "onFailure": "CONTINUE", @@ -163,7 +163,7 @@ "name": "Validation Hook", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-validate-001", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, "timeout": 15, "executionMode": "SYNC", "onFailure": "BLOCK", @@ -203,7 +203,10 @@ def _make_hook( hook_id=hook_id, id=hook_uuid, n8n_workflow_config=N8nWorkflowConfig( - workflow_id=f"wf-{hook_id}", + ord_id="sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", + card_ord_id="sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", + tool_name="testHook", + global_tenant_id="tenant-test-001", method=HTTPMethod.POST, ), name=f"Test Hook {hook_id}", @@ -304,7 +307,7 @@ def test_reads_response_with_hooks(self, tmp_path: Path): hook = result.hooks[0] assert hook.hook_id == "before_tool_execution" assert hook.id == "9f6e5f66-7e4f-4ef0-a9f6-e6e1c1220c11" - assert hook.n8n_workflow_config.workflow_id == "wf-before-001" + assert hook.n8n_workflow_config.tool_name == "testHook" assert hook.name == "Before Tool Execution Hook" assert hook.type == HookType.BEFORE assert hook.deployment_type == DeploymentType.N8N diff --git a/tests/extensibility/unit/test_models.py b/tests/extensibility/unit/test_models.py index b5156591..a99b1aa5 100644 --- a/tests/extensibility/unit/test_models.py +++ b/tests/extensibility/unit/test_models.py @@ -269,7 +269,7 @@ def test_from_dict_with_hooks(self): "name": "Before Tool Execution Hook", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-001", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, "timeout": 30, "executionMode": "SYNC", "onFailure": "CONTINUE", @@ -286,7 +286,7 @@ def test_from_dict_with_hooks(self): assert hook.name == "Before Tool Execution Hook" assert hook.type == HookType.BEFORE assert hook.deployment_type == DeploymentType.N8N - assert hook.n8n_workflow_config.workflow_id == "wf-001" + assert hook.n8n_workflow_config.tool_name == "testHook" assert hook.timeout == 30 assert hook.execution_mode == ExecutionMode.SYNC assert hook.on_failure == OnFailure.CONTINUE @@ -317,7 +317,7 @@ def test_from_dict_multiple_hooks(self): "name": "Before Hook", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-before", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, "timeout": 30, "executionMode": "SYNC", "onFailure": "CONTINUE", @@ -330,7 +330,7 @@ def test_from_dict_multiple_hooks(self): "name": "After Hook", "hookType": "AFTER", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-after", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, "timeout": 60, "executionMode": "ASYNC", "onFailure": "BLOCK", @@ -387,7 +387,10 @@ def test_construction(self): hook_id="before_tool_execution", id="9f6e5f66-7e4f-4ef0-a9f6-e6e1c1220c11", n8n_workflow_config=N8nWorkflowConfig( - workflow_id="wf-001", + ord_id="sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", + card_ord_id="sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", + tool_name="testHook", + global_tenant_id="tenant-test-001", method=HTTPMethod.POST, ), name="Before Tool Execution Hook", @@ -401,7 +404,7 @@ def test_construction(self): ) assert hook.hook_id == "before_tool_execution" assert hook.id == "9f6e5f66-7e4f-4ef0-a9f6-e6e1c1220c11" - assert hook.n8n_workflow_config.workflow_id == "wf-001" + assert hook.n8n_workflow_config.tool_name == "testHook" assert hook.n8n_workflow_config.method == HTTPMethod.POST assert hook.name == "Before Tool Execution Hook" assert hook.type == "BEFORE" @@ -420,7 +423,7 @@ def test_from_dict_complete(self): "name": "Before Tool Execution Hook", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-001", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, "timeout": 30, "executionMode": "SYNC", "onFailure": "CONTINUE", @@ -433,7 +436,7 @@ def test_from_dict_complete(self): assert hook.name == "Before Tool Execution Hook" assert hook.type == HookType.BEFORE assert hook.deployment_type == DeploymentType.N8N - assert hook.n8n_workflow_config.workflow_id == "wf-001" + assert hook.n8n_workflow_config.tool_name == "testHook" assert hook.n8n_workflow_config.method == HTTPMethod.POST assert hook.timeout == 30 assert hook.execution_mode == ExecutionMode.SYNC @@ -453,11 +456,11 @@ def test_from_dict_partial_fields(self): "hookId": "partial_hook", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-partial", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, } hook = Hook.from_dict(data) assert hook.hook_id == "partial_hook" - assert hook.n8n_workflow_config.workflow_id == "wf-partial" + assert hook.n8n_workflow_config.tool_name == "testHook" assert hook.type == HookType.BEFORE assert hook.deployment_type == DeploymentType.N8N # Other fields should use defaults @@ -472,7 +475,7 @@ def test_from_dict_async_execution_mode(self): "name": "Async Hook", "hookType": "AFTER", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-async-001", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, "timeout": 60, "executionMode": "ASYNC", "onFailure": "BLOCK", @@ -492,7 +495,7 @@ def test_from_dict_different_deployment_types(self): "hookId": "n8n_hook", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-n8n", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, } n8n_hook = Hook.from_dict(n8n_data) assert n8n_hook.deployment_type == DeploymentType.N8N @@ -502,7 +505,10 @@ def test_from_dict_different_deployment_types(self): "hookType": "AFTER", "deploymentType": "SERVERLESS", "n8nWorkflowConfig": { - "workflowId": "wf-serverless", + "ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", + "toolName": "testHook", + "globalTenantId": "tenant-test-001", "method": "POST", }, } @@ -515,7 +521,7 @@ def test_from_dict_different_hook_types(self): "hookId": "before", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-before", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, } before_hook = Hook.from_dict(before_data) assert before_hook.type == HookType.BEFORE @@ -524,7 +530,7 @@ def test_from_dict_different_hook_types(self): "hookId": "after", "hookType": "AFTER", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-after", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, } after_hook = Hook.from_dict(after_data) assert after_hook.type == HookType.AFTER @@ -536,7 +542,7 @@ def test_from_dict_can_short_circuit_true(self): "hookType": "BEFORE", "deploymentType": "N8N", "canShortCircuit": True, - "n8nWorkflowConfig": {"workflowId": "wf-short", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, } hook = Hook.from_dict(data) assert hook.can_short_circuit is True @@ -548,7 +554,7 @@ def test_from_dict_can_short_circuit_false(self): "hookType": "BEFORE", "deploymentType": "N8N", "canShortCircuit": False, - "n8nWorkflowConfig": {"workflowId": "wf-no-short", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, } hook = Hook.from_dict(data) assert hook.can_short_circuit is False @@ -559,10 +565,10 @@ def test_from_dict_workflow_config_preserved(self): "hookId": "wf_hook", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-special-123", "method": "PUT"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "PUT"}, } hook = Hook.from_dict(data) - assert hook.n8n_workflow_config.workflow_id == "wf-special-123" + assert hook.n8n_workflow_config.tool_name == "testHook" assert hook.n8n_workflow_config.method == HTTPMethod.PUT def test_from_dict_empty_string_values(self): @@ -573,7 +579,7 @@ def test_from_dict_empty_string_values(self): "name": "", "hookType": "", "deploymentType": "", - "n8nWorkflowConfig": {"workflowId": "", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, } with pytest.raises(ValueError, match="Invalid or missing hookType"): Hook.from_dict(data) @@ -592,7 +598,10 @@ def test_from_dict_different_http_methods(self): "hookType": "BEFORE", "deploymentType": "N8N", "n8nWorkflowConfig": { - "workflowId": f"wf-{method_str.lower()}", + "ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", + "toolName": "testHook", + "globalTenantId": "tenant-test-001", "method": method_str, }, } @@ -605,7 +614,7 @@ def test_from_dict_method_defaults_to_post(self): "hookId": "hook_without_method", "hookType": "BEFORE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-no-method"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001"}, } hook = Hook.from_dict(data) assert hook.n8n_workflow_config.method == HTTPMethod.POST @@ -616,7 +625,7 @@ def test_from_dict_invalid_hook_type_raises_error(self): "hookId": "invalid_hook", "hookType": "INVALID_TYPE", "deploymentType": "N8N", - "n8nWorkflowConfig": {"workflowId": "wf-invalid-type", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, } with pytest.raises( ValueError, match="Invalid or missing hookType.*INVALID_TYPE" @@ -630,7 +639,10 @@ def test_from_dict_invalid_deployment_type_raises_error(self): "hookType": "BEFORE", "deploymentType": "INVALID_DEPLOYMENT", "n8nWorkflowConfig": { - "workflowId": "wf-invalid-deployment", + "ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", + "toolName": "testHook", + "globalTenantId": "tenant-test-001", "method": "POST", }, } @@ -874,7 +886,10 @@ def test_from_dict_with_source_new_format(self): "hookType": "BEFORE", "deploymentType": "N8N", "n8nWorkflowConfig": { - "workflowId": "wf-before-001", + "ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", + "toolName": "testHook", + "globalTenantId": "tenant-test-001", "method": "POST", }, "timeout": 30, diff --git a/tests/extensibility/unit/test_ums_parsing.py b/tests/extensibility/unit/test_ums_parsing.py index 0cb2af6b..218e3bd3 100644 --- a/tests/extensibility/unit/test_ums_parsing.py +++ b/tests/extensibility/unit/test_ums_parsing.py @@ -74,7 +74,7 @@ def test_before_hook(self): "timeout": 30, "deploymentType": "N8N", "canShortCircuit": False, - "n8nWorkflowConfig": {"workflowId": "wf-before-001", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, } hook = _build_hook(raw) assert hook is not None @@ -83,7 +83,7 @@ def test_before_hook(self): assert hook.name == "Before Tool Execution" assert hook.type == HookType.BEFORE assert hook.deployment_type == DeploymentType.N8N - assert hook.n8n_workflow_config.workflow_id == "wf-before-001" + assert hook.n8n_workflow_config.tool_name == "testHook" assert hook.n8n_workflow_config.method == HTTPMethod.POST assert hook.timeout == 30 assert hook.execution_mode == ExecutionMode.SYNC @@ -100,7 +100,7 @@ def test_after_hook(self): "timeout": 60, "deploymentType": "SERVERLESS", "canShortCircuit": True, - "n8nWorkflowConfig": {"workflowId": "wf-after-001", "method": "POST"}, + "n8nWorkflowConfig": {"ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", "toolName": "testHook", "globalTenantId": "tenant-test-001", "method": "POST"}, } hook = _build_hook(raw) assert hook is not None @@ -352,7 +352,10 @@ def test_hooks_with_unknown_type_skipped(self): "deploymentType": "N8N", "canShortCircuit": False, "n8nWorkflowConfig": { - "workflowId": "wf-valid", + "ordId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook:v1", + "cardOrdId": "sap.n8nwfrt:apiResource:test-solution_hook.testHook_mcp:v1", + "toolName": "testHook", + "globalTenantId": "tenant-test-001", "method": "POST", }, }, diff --git a/uv.lock b/uv.lock index 6c6888f9..704243ab 100644 --- a/uv.lock +++ b/uv.lock @@ -16,22 +16,18 @@ resolution-markers = [ [[package]] name = "a2a-sdk" -version = "1.0.2" +version = "0.3.26" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "culsans", marker = "python_full_version < '3.13'" }, { name = "google-api-core" }, - { name = "googleapis-common-protos" }, { name = "httpx" }, { name = "httpx-sse" }, - { name = "json-rpc" }, - { name = "packaging" }, { name = "protobuf" }, { name = "pydantic" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/88/f3/1c312eae0298542eef1a096be378a3ad2d20b171ea0ac6be26b81f542720/a2a_sdk-1.0.2.tar.gz", hash = "sha256:e4ee4dd509894c32c9a6df728319875fa4f049e70ae82476fa447353e3a4b648", size = 375193, upload-time = "2026-04-24T13:50:24.303Z" } +sdist = { url = "https://files.pythonhosted.org/packages/be/97/a6840e01795b182ce751ca165430d46459927cde9bfab838087cbb24aef7/a2a_sdk-0.3.26.tar.gz", hash = "sha256:44068e2d037afbb07ab899267439e9bc7eaa7ac2af94f1e8b239933c993ad52d", size = 274598, upload-time = "2026-04-09T15:21:13.902Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c9/03/58c92a44e7b94a42614880df2365f074969e47067c4c736e31e855aca2fd/a2a_sdk-1.0.2-py3-none-any.whl", hash = "sha256:4dbc083b6808ee28207ac6daad263360f87612c37b2d06f5521efb530318141c", size = 234302, upload-time = "2026-04-24T13:50:22.412Z" }, + { url = "https://files.pythonhosted.org/packages/dd/d5/51f4ee1bf3b736add42a542d3c8a3fd3fa85f3d36c17972127defc46c26f/a2a_sdk-0.3.26-py3-none-any.whl", hash = "sha256:754e0573f6d33b225c1d8d51f640efa69cbbed7bdfb06ce9c3540ea9f58d4a91", size = 151016, upload-time = "2026-04-09T15:21:12.35Z" }, ] [[package]] @@ -161,20 +157,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/a4/37/cfd1ed540a4d318da025590d96b728e63713c09e9377950fc655dadeb856/aiohttp-3.14.3-cp314-cp314t-win_arm64.whl", hash = "sha256:2e1161602f45a54de2ce0905243a95f58cb42dcd378402f3697f5e0b21e9d2e7", size = 469280, upload-time = "2026-07-23T01:57:24.241Z" }, ] -[[package]] -name = "aiologic" -version = "0.17.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "sniffio", marker = "python_full_version < '3.13'" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, - { name = "wrapt", marker = "python_full_version < '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/f1/7a/d51f2fde1e8ae8a83431f8e97b7a71e9358cdb1d4d2ce6be387fa44d68de/aiologic-0.17.1.tar.gz", hash = "sha256:2e1b93b9e88ced318c2a63ad7b382688f40cbfe40e3d42258d49dc9c5aea179d", size = 252354, upload-time = "2026-06-27T20:41:33.25Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5b/d3/2d310b1b839014034dba0cba685e492df8a5c7ad32c19cab7e979eed6554/aiologic-0.17.1-py3-none-any.whl", hash = "sha256:c66b319830fedb7ca3d2b2125fa6f5b653f89418c2a27ea76f259ec5f00943c0", size = 161331, upload-time = "2026-06-27T20:41:31.877Z" }, -] - [[package]] name = "aiosignal" version = "1.4.0" @@ -811,19 +793,6 @@ version = "0.4" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/55/ca/d323556e2bf9bfb63219fbb849ce61bb830cc42d1b25b91cde3815451b91/cuid-0.4.tar.gz", hash = "sha256:74eaba154916a2240405c3631acee708c263ef8fa05a86820b87d0f59f84e978", size = 4986, upload-time = "2023-03-06T00:41:12.708Z" } -[[package]] -name = "culsans" -version = "0.11.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "aiologic", marker = "python_full_version < '3.13'" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/d9/e3/49afa1bc180e0d28008ec6bcdf82a4072d1c7a41032b5b759b60814ca4b0/culsans-0.11.0.tar.gz", hash = "sha256:0b43d0d05dce6106293d114c86e3fb4bfc63088cfe8ff08ed3fe36891447fe33", size = 107546, upload-time = "2025-12-31T23:15:38.196Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e0/5d/9fb19fb38f6d6120422064279ea5532e22b84aa2be8831d49607194feda3/culsans-0.11.0-py3-none-any.whl", hash = "sha256:278d118f63fc75b9db11b664b436a1b83cc30d9577127848ba41420e66eb5a47", size = 21811, upload-time = "2025-12-31T23:15:37.189Z" }, -] - [[package]] name = "deprecated" version = "1.3.1" @@ -1187,9 +1156,7 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/4e/a3/07297917485ee2ca85bc3c8dc6ed85ad3fffcf424047fba62671dba68e97/greenlet-3.5.5-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:be63afcbbccfad3dd95a1ba12ada84dab2ef32031973d80b5b92df67fa763a61", size = 294165, upload-time = "2026-08-10T13:25:17.987Z" }, { url = "https://files.pythonhosted.org/packages/db/51/6f732f9314cda54c5fd48a7620c7160f4f286967e8045ad94b9d66ce80b7/greenlet-3.5.5-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8a268024ce2d7d2b04694bf1594058981a9fa663d1df4b762dee499211ed7c1c", size = 613610, upload-time = "2026-08-10T14:14:33.829Z" }, { url = "https://files.pythonhosted.org/packages/d8/c0/b27589e25d220289edcd4d582b2b17b83058d1a56d53d971b6ea1a34f10d/greenlet-3.5.5-cp311-cp311-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:35cbb8bf55ace57fbccb4fb8622c4521713acd8691e77f4696d416ea7ca527da", size = 625481, upload-time = "2026-08-10T14:27:23.647Z" }, - { url = "https://files.pythonhosted.org/packages/39/82/5c873dbb4fb001d22fbbd50e80d4c1b0181ddae106856132160f84b94e88/greenlet-3.5.5-cp311-cp311-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:abc8bc8d9f935cd685457545b6a53863a877fdc12c2c0f5ee9beee18d9db139c", size = 633329, upload-time = "2026-08-10T14:30:06.062Z" }, { url = "https://files.pythonhosted.org/packages/51/2d/f2c928218ac52f26d7a2c188c171d1b7e728b23782cb3347e7b4fce1493a/greenlet-3.5.5-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:74cc6df89ec5302337adc9cf096221cbed2510fd444b0e0f1586cf0470740864", size = 624562, upload-time = "2026-08-10T13:40:48.064Z" }, - { url = "https://files.pythonhosted.org/packages/70/12/f7df98e72a8eb4a7edfec5a08d6d1a4ab53a52c95ba0b2ea6c10b8dd9bd0/greenlet-3.5.5-cp311-cp311-manylinux_2_39_riscv64.whl", hash = "sha256:3134291427bb0f3526e9d90311988caf336eb43730e95244997a4fb15f45144f", size = 428145, upload-time = "2026-08-10T14:30:01.071Z" }, { url = "https://files.pythonhosted.org/packages/3e/4a/92fc51d5d35912f4f06eec037ba347985defd0be47463a010a325634d9d2/greenlet-3.5.5-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6d9b454c5fc48aeaa7c4337813dbf513a6870468e426438a04d922c6d0fe63db", size = 1584909, upload-time = "2026-08-10T14:15:04.343Z" }, { url = "https://files.pythonhosted.org/packages/ac/58/ed98b80ac5738c149a5258544843c45601ade1fd70f61740cdaead6351b3/greenlet-3.5.5-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:03551ed792cb1b4fc0277a0c60dfd8c343894a0ba06fe60dcd22f568b433da39", size = 1651184, upload-time = "2026-08-10T13:40:28.879Z" }, { url = "https://files.pythonhosted.org/packages/d8/be/b582ceb80cefdf9d8da34078714e4b12b3d16f509dee0f65e40a5cc8fc7d/greenlet-3.5.5-cp311-cp311-win_amd64.whl", hash = "sha256:ab3df3dffb58bf70564e93a5cec7941e4d9faa5a36cc4234a10d3131afe04f53", size = 323280, upload-time = "2026-08-10T13:26:07.495Z" }, @@ -1197,9 +1164,7 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/2e/7e/9ecd0285e3153532ae07aeb88063c43c72b4221cf0d4d123b02f3682e3ff/greenlet-3.5.5-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:49520f0c95a48b42cf55414b8e8479beb274ea70431afc33e3f79903c71f4380", size = 295809, upload-time = "2026-08-10T13:25:34.023Z" }, { url = "https://files.pythonhosted.org/packages/35/73/60e4bbcc89252037b18087f2ec16405d5b2d5be42dde191bbf3667e96102/greenlet-3.5.5-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:55272212cbc5f43d1d723725ab931f1939969b7e9523882ca58b55061769d053", size = 611910, upload-time = "2026-08-10T14:14:35.18Z" }, { url = "https://files.pythonhosted.org/packages/a4/17/cd5134be659cd4a443e7a61ae670dabec165a814c51162916d637b6dd38e/greenlet-3.5.5-cp312-cp312-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:655bca754a2ef4efcb0eb48a94d3f4593536d0f3d48f8ed44343c01d16a92f95", size = 624198, upload-time = "2026-08-10T14:27:25.229Z" }, - { url = "https://files.pythonhosted.org/packages/9b/30/87c212b5c684d0e72974f1063b7a9687631e8985902c06e1016542c874e7/greenlet-3.5.5-cp312-cp312-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6ca5d6ae0739e5764f2cfcfaa562ac5a990cbdaedca93251c5e3cf07c362371f", size = 629504, upload-time = "2026-08-10T14:30:07.967Z" }, { url = "https://files.pythonhosted.org/packages/78/ac/5c5b959999b6f09c3026b5dfe171575bc3121c5236ce74f495096f25b203/greenlet-3.5.5-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:147b25a42e5ca5be3d42356e8f608b37af715a1c196e9bf9d1627f3341adfe1d", size = 621439, upload-time = "2026-08-10T13:40:49.391Z" }, - { url = "https://files.pythonhosted.org/packages/63/2c/eb487fafc9f50ffff2b1e0b697f70fb34bf150821c08ab225aacf5583a7e/greenlet-3.5.5-cp312-cp312-manylinux_2_39_riscv64.whl", hash = "sha256:1b5ed9162c0c098e0bbc2cf88a94f433c1b8926f831745252e099e5d83e17759", size = 432462, upload-time = "2026-08-10T14:30:02.309Z" }, { url = "https://files.pythonhosted.org/packages/c8/8b/6acf112ed8aee499f25b4d6949820fb02ac950ff9c1f3d793bd5be0599f2/greenlet-3.5.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:27493374cff1d1b7919dc8126547f2aea582737e3046147b434b1e12de56389b", size = 1581342, upload-time = "2026-08-10T14:15:05.653Z" }, { url = "https://files.pythonhosted.org/packages/b8/d7/734e5f198888876b42d7616ff6644c075baf6b8a2412deadd6b0e1b8b20c/greenlet-3.5.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:12e2ee66c2aba86133f10fd99d6a8856c6d351ffb7be0e4d52ef2cc5fbb705b2", size = 1645744, upload-time = "2026-08-10T13:40:30.353Z" }, { url = "https://files.pythonhosted.org/packages/de/30/1f42b88dc587b5899ee50616ad56ee40cafaf225df4fb829f10183c62a5c/greenlet-3.5.5-cp312-cp312-win_amd64.whl", hash = "sha256:49ddacd36af37735fab103846f4ee4d18a492dde72730d1699c0c8ebe30d9f18", size = 324171, upload-time = "2026-08-10T13:28:44.472Z" }, @@ -1207,9 +1172,7 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/fb/3d/8cef5f724ec0d4add2af8961d504535ec60c3cca9e464f6d03bdba29d85b/greenlet-3.5.5-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:b79fd2a5bc099b5e744f34c4c9a58954a5f4cb7529fb4b6e8446057d61b6edaa", size = 294730, upload-time = "2026-08-10T13:27:51.206Z" }, { url = "https://files.pythonhosted.org/packages/88/4b/8e7aa3f514273aecff30a16ab1bac09ff54cfc7e6860fdd8058c37ff2499/greenlet-3.5.5-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:634cf15a233a949136879dd388e25d3296e16f3f1e217d2456797b8579ebc6ed", size = 614536, upload-time = "2026-08-10T14:14:36.589Z" }, { url = "https://files.pythonhosted.org/packages/85/48/4e95e9dd5a8a397dc6a6345dd7f1935113d0fca4f85e89d3976da9cd988d/greenlet-3.5.5-cp313-cp313-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:499adea519f748407fc6806d20eedabac2884fd73b9f38d81236e190ba20dfef", size = 626924, upload-time = "2026-08-10T14:27:27.048Z" }, - { url = "https://files.pythonhosted.org/packages/0e/84/eaa476d6bf3816828d0d70e80dcc36bf30a058233bd889e707e693f6e860/greenlet-3.5.5-cp313-cp313-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f7278591501941bb2456af102bb9cd59aab48c6cfd6e2dd68fa1290bb0c49a42", size = 632726, upload-time = "2026-08-10T14:30:09.874Z" }, { url = "https://files.pythonhosted.org/packages/89/5d/398a1c71fa7a277deeb376c999979de6786f08fc2d5747a0b9d6e11738dd/greenlet-3.5.5-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2eabb980975cba5b93a95f6f69287d05fc05ac955bfd6a320a7c083eeb52c0b0", size = 623906, upload-time = "2026-08-10T13:40:50.501Z" }, - { url = "https://files.pythonhosted.org/packages/d0/f2/0cc2849ede68579291e9c59b3ab6ec1958f98681cca5b14d8fc75bf674a4/greenlet-3.5.5-cp313-cp313-manylinux_2_39_riscv64.whl", hash = "sha256:4dfc7c4470354e7b09184d1a3a985761053a2fd694ddb5b5c80242afc2c8c90b", size = 434966, upload-time = "2026-08-10T14:30:03.729Z" }, { url = "https://files.pythonhosted.org/packages/04/1b/745450fc5ea9e0cb17d840d248f284db3363de736d362c7d2d883e3eadba/greenlet-3.5.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:03115c2e0a371999bf8ae616aa8d653f96641d4705c457aebaa187276e9f7537", size = 1581430, upload-time = "2026-08-10T14:15:06.853Z" }, { url = "https://files.pythonhosted.org/packages/d4/29/d51b296e3191bb15d3d81ec375af1909e4466c0f395d744ed475801798a9/greenlet-3.5.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4441153ffba21b90d3ca89fe3d31f5c093ae6c0bf0cfdfc98f54cde22f95b62e", size = 1645684, upload-time = "2026-08-10T13:40:32.133Z" }, { url = "https://files.pythonhosted.org/packages/12/63/369f1a1625e64e9e31df3963c6044056e3fdfa3fa3fdba3c54ffefa6e987/greenlet-3.5.5-cp313-cp313-win_amd64.whl", hash = "sha256:95c5b1f4b3a193f8a0c2de4bfdcb48d119f7f1063941f1de1f2168051b3e52dd", size = 324075, upload-time = "2026-08-10T13:26:58.974Z" }, @@ -1217,9 +1180,7 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/7f/8c/080e881fa2be95ff1ddbd6994b2bab3b1a78df3b3fcab39306011764fcc7/greenlet-3.5.5-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:d4a389a852e392a6366058651a20fa5ba40d979865aa81bea2ccbdc44805070d", size = 295309, upload-time = "2026-08-10T13:26:03.032Z" }, { url = "https://files.pythonhosted.org/packages/25/cc/0ac614e6586c0e42d4cc281a5819150f4f43685744a4c5ff77139286409d/greenlet-3.5.5-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:70b157cd319873e8b544ddc2de158f55bbd0a9b0218c8ce9332039801518e328", size = 661185, upload-time = "2026-08-10T14:14:37.867Z" }, { url = "https://files.pythonhosted.org/packages/5e/b9/6808725354be8ad305dfe5172377664fc9642d4fc043be246b3314cf4482/greenlet-3.5.5-cp314-cp314-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8bdfd1424abcf26832961e766570cae79efdb9599d709088c9cb6ef82b194926", size = 673419, upload-time = "2026-08-10T14:27:28.652Z" }, - { url = "https://files.pythonhosted.org/packages/eb/52/f005d579acde46c3d1cc3cab1c9f3d5708c8a3006a4120e8cf5da801afe9/greenlet-3.5.5-cp314-cp314-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d98ef6f92e67c6dbf299dbfd8facc1b0d2d9cedf91e325e73b3d0373fe4309d8", size = 677863, upload-time = "2026-08-10T14:30:11.663Z" }, { url = "https://files.pythonhosted.org/packages/42/2e/40c509967da7f254680826a2fa0dd22138ec79946c70b97542d74cde8b43/greenlet-3.5.5-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:182de51c6b572a705f2fafaab2e783bcf7d2760940229dfe73086cbae037af3e", size = 670822, upload-time = "2026-08-10T13:40:51.833Z" }, - { url = "https://files.pythonhosted.org/packages/c4/8a/a75f8a2bdcef3c358a3147cdc9db3aa83755f0a038f766ab0bedb66f512c/greenlet-3.5.5-cp314-cp314-manylinux_2_39_riscv64.whl", hash = "sha256:159df1942d88e8f784cbb38d6f18bdb365cd11319cfbb3e89623de2b97892d53", size = 480554, upload-time = "2026-08-10T14:30:05.171Z" }, { url = "https://files.pythonhosted.org/packages/2d/22/c3c2eee4a8fe191d6d1d183086c56133d646024e3d70bfd414829f64560b/greenlet-3.5.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8fec3f165dfe332e490c3247c0f6c23b0bfc45f06496ad7f00ddb00e3d35e4dc", size = 1628469, upload-time = "2026-08-10T14:15:08.11Z" }, { url = "https://files.pythonhosted.org/packages/f7/87/25babd09b94cb1f03e71db815fde463f0262e40cfbd953d58a8d77311351/greenlet-3.5.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:c6ce25fee6cabc8bf22cb8b52e642cbb821be5b9aec8094d07ff03378141b8e9", size = 1691952, upload-time = "2026-08-10T13:40:33.502Z" }, { url = "https://files.pythonhosted.org/packages/2e/3d/5cc9701117ea4dc0eb7bf1f4f9b7888a6e2e5277ddfae095805ace50f2b6/greenlet-3.5.5-cp314-cp314-win_amd64.whl", hash = "sha256:7dffc5c859fe6059974df1e37d7923d654a83e2ae18fdd616994270e001115e1", size = 327458, upload-time = "2026-08-10T13:27:02.868Z" }, @@ -1227,18 +1188,14 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/24/e0/50cd600b469e5734c72709b6b1838b6bc63f307b573c772c3132d6ecfe92/greenlet-3.5.5-cp314-cp314t-macosx_11_0_universal2.whl", hash = "sha256:0e5a7de979d764aea1f5b6e95cf92b5b37741b9823702041f34b126e7f690277", size = 305471, upload-time = "2026-08-10T13:26:20.568Z" }, { url = "https://files.pythonhosted.org/packages/75/a3/77acd66dfc6387b5219b2080806c0cabb73c10eb1bb44b413c40a62015ba/greenlet-3.5.5-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fef01bd457f11fc158b130ca0027a3c365693280e8e231b65bdaf57999f39f5b", size = 672470, upload-time = "2026-08-10T14:14:39.058Z" }, { url = "https://files.pythonhosted.org/packages/b9/71/0d178142dca3ec19f46fb2212ae73d30ad53b9d548dc64804086033a7089/greenlet-3.5.5-cp314-cp314t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5173a72310725a74afc82c164f0e52cb8ad0de62f2bb623f24f6c0cc07d80272", size = 679973, upload-time = "2026-08-10T14:27:30.072Z" }, - { url = "https://files.pythonhosted.org/packages/aa/ac/0d7887aa4bbfc9eba075cc428244dfc96f623478454d5ec81180d0d6bd5a/greenlet-3.5.5-cp314-cp314t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5e9ec2e7c98e895fcea0c5cc57b2606cf86ece6d0a56578f3eb225e2af4f0387", size = 681587, upload-time = "2026-08-10T14:30:13.519Z" }, { url = "https://files.pythonhosted.org/packages/6e/31/46eb8567302eaf787abf88d09df014e14ae3baf460af1b8b0efdbd3efcd5/greenlet-3.5.5-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:44f08341873200ba8a60a8bc14ace3d91f1754f7fa7bc66157714a8cd420a476", size = 676634, upload-time = "2026-08-10T13:40:53.004Z" }, - { url = "https://files.pythonhosted.org/packages/4f/18/8d58ba1c429b0383e3219a3d0e0bba241d0444d8ed05b73349953c7d7c7b/greenlet-3.5.5-cp314-cp314t-manylinux_2_39_riscv64.whl", hash = "sha256:102817506f6090b5176c746a82603341a549b40e5c3d5b72a4c672228a918c41", size = 510175, upload-time = "2026-08-10T14:30:07.047Z" }, { url = "https://files.pythonhosted.org/packages/a3/e9/b88bbf5b29970cb84172dc2c32aa3e5e579ceb94c808e81c826454138850/greenlet-3.5.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d246c0db9a2513cd45f019ba178ea4d4d4705bd210ee465e2c15d76a1ab13874", size = 1637320, upload-time = "2026-08-10T14:15:09.317Z" }, { url = "https://files.pythonhosted.org/packages/6d/8c/7631ed29cc6f0392f11830076e172ce4885e70b0bc2c1bce1731176d4b4e/greenlet-3.5.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:72507285b5caa1d17904a3f7c322ca780823a54170a0e04ec3f37bcc60d4db71", size = 1697412, upload-time = "2026-08-10T13:40:34.924Z" }, { url = "https://files.pythonhosted.org/packages/da/0f/f7dd935f9c4cb1be49098770587f54d8a78518e55c89bce86c4fb4109057/greenlet-3.5.5-cp314-cp314t-win_amd64.whl", hash = "sha256:7805655781fb8f28a55d05fe57ed61f5f10f1892fb587673e3bb5264f28041f0", size = 331514, upload-time = "2026-08-10T13:29:20.611Z" }, { url = "https://files.pythonhosted.org/packages/b7/e5/681b01f8fbc1b55232822f99e8f8afeb78a55a7c76a7bf9dbdc7ccb03a6d/greenlet-3.5.5-cp315-cp315-macosx_11_0_universal2.whl", hash = "sha256:c0db80fcd5b8aece93f66c64f78a786bbb6b96c5fe63ef5a5a4581ecf8bab206", size = 295975, upload-time = "2026-08-10T13:28:45.985Z" }, { url = "https://files.pythonhosted.org/packages/11/f2/69b488cd9e7267bf4b0fe8cdebf25d8d6df680d21bdf41150d23e23d6652/greenlet-3.5.5-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b241c32f912ada659808d68e308c568baf577eebf757d15471472de0c18cfad", size = 666823, upload-time = "2026-08-10T14:14:40.222Z" }, { url = "https://files.pythonhosted.org/packages/84/d4/d5bc2fdebbdda0c94555925ba79948b8395d75a7f6a36cc85dce5bab9f11/greenlet-3.5.5-cp315-cp315-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ef6a08349401d8eaf3cb12688ac8557de95788556b8631ef17555a4a173022c0", size = 677613, upload-time = "2026-08-10T14:27:31.543Z" }, - { url = "https://files.pythonhosted.org/packages/65/53/4e13642efc4d7ad6554ecb2242a5be42666b2e1a067323e88dfc0124a04b/greenlet-3.5.5-cp315-cp315-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:37faa97daccb6d9f4c2141ce3118d023c3c5506864a7d8bdf726f665018c1f76", size = 681436, upload-time = "2026-08-10T14:30:14.839Z" }, { url = "https://files.pythonhosted.org/packages/bd/93/542d8a3a90f3b35c6ad8bf7e56a03010287f2cafa289a5b7985b5207db39/greenlet-3.5.5-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f2e3d061b8e13aec2f0441689b3c71b244a20e5d274a52cb0f7e31bd1d139552", size = 675930, upload-time = "2026-08-10T13:40:54.205Z" }, - { url = "https://files.pythonhosted.org/packages/cd/32/188447c9a468d6977d2989397226b0c6b65ab6f4cf943f931643328512fc/greenlet-3.5.5-cp315-cp315-manylinux_2_39_riscv64.whl", hash = "sha256:b18007dc2473a7942fd157366b55f01da6fed7ce85318591005b419e0a439474", size = 487404, upload-time = "2026-08-10T14:30:08.903Z" }, { url = "https://files.pythonhosted.org/packages/52/b5/89c9f2e8460d71101037d47a1feed11928615a5edd42370be290e0657eeb/greenlet-3.5.5-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:9ab5f5b93655e77fe0d6c2dfd22b5eac751bb1f876d8ec21761b7c1fb9266007", size = 1633878, upload-time = "2026-08-10T14:15:10.693Z" }, { url = "https://files.pythonhosted.org/packages/b8/60/297de93f3b02ac78a5e04d32bb8bbe3080f4a73d8ed95016561463b70618/greenlet-3.5.5-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:f0e5a21bd4452a88cf032fc43c4a5b307ab1380eacb63b5988f9c0317885e773", size = 1696597, upload-time = "2026-08-10T13:40:36.252Z" }, { url = "https://files.pythonhosted.org/packages/18/25/54c6eaff4f337fb670215e89eb2d00d9499487b658e709d4b477be4a342e/greenlet-3.5.5-cp315-cp315-win_amd64.whl", hash = "sha256:469dbb0a78625642f4a626cfd0c6e8bccc0385b5e49189b6308bbe849ec88a8e", size = 327700, upload-time = "2026-08-10T13:28:06.752Z" }, @@ -1246,9 +1203,7 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/10/e2/3144c0a116067ac1e30457b0139a94d60d1d36a86e015de68e9ac87cb3bc/greenlet-3.5.5-cp315-cp315t-macosx_11_0_universal2.whl", hash = "sha256:68184dfcf50ccaa8e864770fe0633a7e27250ea9329f8192ef47ee9ecfd78e1c", size = 306387, upload-time = "2026-08-10T13:27:00.897Z" }, { url = "https://files.pythonhosted.org/packages/5c/a1/cb4223a7e9b9f43b8807e8eb212358bfe2dfaa174a9ea2889eb1714dcba2/greenlet-3.5.5-cp315-cp315t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9ec0dc0e59dc9c61af5c47348365ccbbd7addfafe0a93b00336ff3da2907bdc6", size = 676472, upload-time = "2026-08-10T14:14:41.417Z" }, { url = "https://files.pythonhosted.org/packages/9e/cd/a154b4498e5d8f12ada291cfb3b8d596eadde2177f5bf09a9be699d2a446/greenlet-3.5.5-cp315-cp315t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e604f58e35833fc46ef20302bcb314dddbfd3fcf33a4f936216d51dd678d63ae", size = 684238, upload-time = "2026-08-10T14:27:32.946Z" }, - { url = "https://files.pythonhosted.org/packages/ce/f4/e450a68a152f819491d8c7df6a8254e761d87e6a78759268961f8c5bd4dd/greenlet-3.5.5-cp315-cp315t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2888a3a38bc5ee5bb6c438372197152e815837e4fab7ed7a1f86ef18ffd58ad1", size = 686022, upload-time = "2026-08-10T14:30:15.96Z" }, { url = "https://files.pythonhosted.org/packages/bf/bb/b0031d260c2968a3c87deebc51d80c64e499377f993aafe06ee3b7488cc2/greenlet-3.5.5-cp315-cp315t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:40239b5384f96da3963585cc6d7eaa9b56f8ae67e8d92cc82dd9e202fc847de3", size = 681246, upload-time = "2026-08-10T13:40:55.402Z" }, - { url = "https://files.pythonhosted.org/packages/18/23/17e63d6bf3b9c9b9dbea981b7f643a71f79603bdfb4f1c3a9cf353e22aed/greenlet-3.5.5-cp315-cp315t-manylinux_2_39_riscv64.whl", hash = "sha256:1e8d9391fe77f15649589a907cef972dbbd6352ef7ff7dc0492f658c0c26495f", size = 516951, upload-time = "2026-08-10T14:30:10.907Z" }, { url = "https://files.pythonhosted.org/packages/9a/07/da554b71ab88e649da146e1065d86a48a5c5d92e50ab74ef41b504aa7f56/greenlet-3.5.5-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:a1eaccf5c3a1d3e46dead602c72e6836731e8e245c9de6a27764567b6b62d4c0", size = 1642735, upload-time = "2026-08-10T14:15:11.92Z" }, { url = "https://files.pythonhosted.org/packages/78/76/26a3782a051677668af9d92beaa47cd87ba9dd5072f762961144a03dd4c6/greenlet-3.5.5-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:19e4e026fe20691f333b8eb1a3bc9625eceba8c3f9d62ec5a6f8581afbc6b5a5", size = 1700925, upload-time = "2026-08-10T13:40:37.656Z" }, { url = "https://files.pythonhosted.org/packages/28/d9/fe7baf4190c2ae71f267efb9de21b3172bb35bc0ed1ef53dd6027d658e33/greenlet-3.5.5-cp315-cp315t-win_amd64.whl", hash = "sha256:712aee154f648bde84634654bb38bb78c69ac640c37a45c9effed800735049d8", size = 331829, upload-time = "2026-08-10T13:26:48.851Z" }, @@ -1614,15 +1569,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/14/2f/967ba146e6d58cf6a652da73885f52fc68001525b4197effc174321d70b4/jmespath-1.1.0-py3-none-any.whl", hash = "sha256:a5663118de4908c91729bea0acadca56526eb2698e83de10cd116ae0f4e97c64", size = 20419, upload-time = "2026-01-22T16:35:24.919Z" }, ] -[[package]] -name = "json-rpc" -version = "1.15.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/6d/9e/59f4a5b7855ced7346ebf40a2e9a8942863f644378d956f68bcef2c88b90/json-rpc-1.15.0.tar.gz", hash = "sha256:e6441d56c1dcd54241c937d0a2dcd193bdf0bdc539b5316524713f554b7f85b9", size = 28854, upload-time = "2023-06-11T09:45:49.078Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/94/9e/820c4b086ad01ba7d77369fb8b11470a01fac9b4977f02e18659cf378b6b/json_rpc-1.15.0-py2.py3-none-any.whl", hash = "sha256:4a4668bbbe7116feb4abbd0f54e64a4adcf4b8f648f19ffa0848ad0f6606a9bf", size = 39450, upload-time = "2023-06-11T09:45:47.136Z" }, -] - [[package]] name = "jsonpatch" version = "1.33" @@ -4300,7 +4246,7 @@ wheels = [ [[package]] name = "sap-cloud-sdk" -version = "0.53.0" +version = "0.54.0" source = { editable = "." } dependencies = [ { name = "cryptography" }, @@ -4389,7 +4335,7 @@ dev = [ [package.metadata] requires-dist = [ - { name = "a2a-sdk", marker = "extra == 'extensibility'", specifier = ">=0.2.0,<2" }, + { name = "a2a-sdk", marker = "extra == 'extensibility'", specifier = ">=0.2.0,<1" }, { name = "aiohttp", marker = "extra == 'aiohttp'", specifier = ">=3.9.0,<4" }, { name = "cryptography", specifier = ">=48.0.1,<51" }, { name = "django", marker = "extra == 'django'", specifier = ">=4.0,<5" }, @@ -4431,7 +4377,7 @@ provides-extras = ["extensibility", "starlette", "fastapi", "aiohttp", "sqlalche [package.metadata.requires-dev] dev = [ - { name = "a2a-sdk", specifier = ">=0.2.0" }, + { name = "a2a-sdk", specifier = ">=0.2.0,<1" }, { name = "aiohttp", specifier = ">=3.9.0" }, { name = "anyio", specifier = ">=3.6.2" }, { name = "cryptography", specifier = ">=48.0.1,<51" },