workflow-exec-engine 0.1.0__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. workflow_exec_engine-0.1.2/MANIFEST.in +8 -0
  2. {workflow_exec_engine-0.1.0/workflow_exec_engine.egg-info → workflow_exec_engine-0.1.2}/PKG-INFO +61 -13
  3. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/README.md +56 -11
  4. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/README_en.md +17 -2
  5. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/pyproject.toml +12 -2
  6. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/requirements.txt +1 -1
  7. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/__init__.py +7 -4
  8. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/__init__.py +5 -3
  9. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/a2a_transport.py +210 -35
  10. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/auth_manager.py +17 -5
  11. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/credential_crypto.py +30 -11
  12. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/credential_service.py +21 -10
  13. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/engine_client.py +181 -29
  14. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/env_file_loader.py +13 -2
  15. workflow_exec_engine-0.1.2/workflow_engine/client/extension_sender.py +442 -0
  16. workflow_exec_engine-0.1.2/workflow_engine/client/protocol_logger.py +120 -0
  17. workflow_exec_engine-0.1.2/workflow_engine/client/remote_error.py +145 -0
  18. workflow_exec_engine-0.1.2/workflow_engine/client/sensitive_data.py +97 -0
  19. workflow_exec_engine-0.1.2/workflow_engine/client/sse_normalization.py +95 -0
  20. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/ssl_context.py +32 -3
  21. workflow_exec_engine-0.1.2/workflow_engine/client/transport_activity.py +122 -0
  22. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/core/executor.py +39 -12
  23. workflow_exec_engine-0.1.2/workflow_engine/core/failure_mapping.py +91 -0
  24. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/core/models.py +55 -3
  25. workflow_exec_engine-0.1.2/workflow_engine/observation.py +949 -0
  26. workflow_exec_engine-0.1.2/workflow_engine/observation_content.py +269 -0
  27. workflow_exec_engine-0.1.2/workflow_engine/observation_spool.py +38 -0
  28. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/registry/__init__.py +2 -1
  29. workflow_exec_engine-0.1.2/workflow_engine/registry/http_auth.py +318 -0
  30. workflow_exec_engine-0.1.2/workflow_engine/registry/registry_client.py +362 -0
  31. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/runner.py +69 -32
  32. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2/workflow_exec_engine.egg-info}/PKG-INFO +61 -13
  33. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_exec_engine.egg-info/SOURCES.txt +7 -2
  34. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_exec_engine.egg-info/requires.txt +5 -1
  35. workflow_exec_engine-0.1.0/MANIFEST.in +0 -4
  36. workflow_exec_engine-0.1.0/examples/execute_psop_demo.py +0 -90
  37. workflow_exec_engine-0.1.0/examples/quickstart.py +0 -109
  38. workflow_exec_engine-0.1.0/workflow_engine/client/extension_sender.py +0 -244
  39. workflow_exec_engine-0.1.0/workflow_engine/client/protocol_logger.py +0 -76
  40. workflow_exec_engine-0.1.0/workflow_engine/client/sse_normalization.py +0 -90
  41. workflow_exec_engine-0.1.0/workflow_engine/core/failure_mapping.py +0 -59
  42. workflow_exec_engine-0.1.0/workflow_engine/registry/registry_client.py +0 -165
  43. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/LICENSE +0 -0
  44. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/setup.cfg +0 -0
  45. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/a2at_messages.py +0 -0
  46. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/agentcard_normalizer.py +0 -0
  47. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/auth_provider.py +0 -0
  48. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/extension_interceptor.py +0 -0
  49. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/extensions.py +0 -0
  50. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/protocol_interceptor.py +0 -0
  51. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/client/stub_engine_client.py +0 -0
  52. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/control/__init__.py +0 -0
  53. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/control/control_points.py +0 -0
  54. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/core/__init__.py +0 -0
  55. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/core/context_builder.py +0 -0
  56. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_engine/core/workflow_validator.py +0 -0
  57. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_exec_engine.egg-info/dependency_links.txt +0 -0
  58. {workflow_exec_engine-0.1.0 → workflow_exec_engine-0.1.2}/workflow_exec_engine.egg-info/top_level.txt +0 -0
@@ -0,0 +1,8 @@
1
+ include README.md
2
+ include README_en.md
3
+ include requirements.txt
4
+
5
+ # examples/ and samples/ are auxiliary test material, not part of the SDK
6
+ # distribution. Keep them out of the sdist as well as the wheel.
7
+ prune examples
8
+ prune samples
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workflow-exec-engine
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Standalone workflow execution SDK for A2A-T multi-agent orchestration
5
5
  Author-email: A2A SDK Team <ivo.zhou@huawei.com>
6
6
  License-Expression: Apache-2.0
@@ -20,7 +20,7 @@ Requires-Python: >=3.12
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
22
  Requires-Dist: a2a-sdk<2,>=1.1.2
23
- Requires-Dist: a2a-t-sdk<2,>=1.0.9
23
+ Requires-Dist: a2a-t-sdk<2,>=1.2.0
24
24
  Requires-Dist: httpx>=0.27.0
25
25
  Requires-Dist: loguru>=0.7.0
26
26
  Requires-Dist: protobuf>=4.25.0
@@ -30,13 +30,16 @@ Provides-Extra: dev
30
30
  Requires-Dist: build>=1.2.0; extra == "dev"
31
31
  Requires-Dist: pytest>=8.0.0; extra == "dev"
32
32
  Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
33
+ Provides-Extra: samples
34
+ Requires-Dist: fastapi>=0.115.0; extra == "samples"
35
+ Requires-Dist: uvicorn>=0.30.0; extra == "samples"
33
36
  Dynamic: license-file
34
37
 
35
38
  # A2A-T Workflow Engine SDK(Python)
36
39
 
37
40
  面向宿主智能体的嵌入式工作流执行引擎。引擎负责工作流 DAG、A2A 消息封装、任务与会话关联、远端任务等待、Negotiation-T 交互循环和生命周期;宿主负责业务输入解释、A2A-T 内容生成与语义校验,以及路由和协商决策。
38
41
 
39
- Python 与 Java 版本遵循同一业务契约。Python 当前要求 Python 3.12+、`a2a-sdk>=1.1.2,<2` 和 `a2a-t-sdk>=1.0.9,<2`。
42
+ Python 与 Java 版本遵循同一业务契约。Python 当前要求 Python 3.12+、`a2a-sdk>=1.1.2,<2` 和 `a2a-t-sdk>=1.2.0,<2`。
40
43
 
41
44
  ## 安装
42
45
 
@@ -114,20 +117,31 @@ await transport.close()
114
117
 
115
118
  ## 独立协议操作
116
119
 
117
- Authorization-T 和 Notification-T 不属于工作流因果链,应使用独立 `A2ATransport` 和 `ExtensionSender`:
120
+ Authorization-T 和 Notification-T 不属于工作流因果链。工作流任务、一次性授权和长订阅应分别持有 `A2ATransport`;协议处理能力可以共用,但 HTTP 通道和生命周期不能共用:
118
121
 
119
122
  ```python
120
- sender = ExtensionSender(independent_transport)
121
- authorization = await sender.send_authorization(agent_name, authorization_content)
122
-
123
- subscription = sender.open_notification(agent_name, notification_content, on_notification)
124
- ack = await subscription.acknowledgement
125
- # 收到业务结果后由集成方显式关闭:
126
- subscription.close()
127
- await subscription.completion
123
+ auth_transport = A2ATransport(agent_cards)
124
+ notification_transport = A2ATransport(agent_cards)
125
+ try:
126
+ authorization = await ExtensionSender(auth_transport).send_authorization(
127
+ agent_name, authorization_content,
128
+ )
129
+ finally:
130
+ await auth_transport.close() # 授权操作结束即释放,不影响订阅
131
+
132
+ subscription = ExtensionSender(notification_transport).open_notification(
133
+ agent_name, notification_content, on_notification,
134
+ )
135
+ try:
136
+ ack = await subscription.acknowledgement # 仅表示订阅已接受,流继续保持
137
+ # 单条通知结果不结束订阅;保持监听,直到明确取消、停机或流异常结束。
138
+ await subscription.completion
139
+ finally:
140
+ subscription.close()
141
+ await notification_transport.close()
128
142
  ```
129
143
 
130
- 授权或订阅失败不会自动阻断后续工作流。`send_authorization` 会等待授权任务到达终态,集成方通过 `is_success` 判断结果;订阅确认通过 `is_failure` 排除失败、拒绝或取消。订阅确认与长连接结束是两个不同 Future;`heartbeat` 和 `is_healthy()` 可用于本地存活性判断。
144
+ 授权或订阅失败不会自动阻断后续工作流。`send_authorization` 会等待授权任务到达终态,集成方通过 `is_success` 判断结果;订阅拒绝会让 `acknowledgement` 抛错,普通消息和 artifact 不算 ACK。订阅确认与长连接结束是两个不同 Future;业务任务终态不会自动关闭独立订阅,持续到达的 SSE 心跳可保持长连接存活。显式关闭、远端 EOF、空闲超时或传输异常会结束流。`heartbeat` 和 `is_healthy()` 可用于本地存活性判断。
131
145
 
132
146
  ## 远端任务管理
133
147
 
@@ -148,6 +162,40 @@ await client.subscribe_to_task(agent_name, task_id, on_event)
148
162
 
149
163
  仅受控开发环境可显式配置 `ssl_verify=False`。调用方传入的 `httpx.AsyncClient` 仍由调用方关闭;执行引擎只关闭自己创建的客户端资源。
150
164
 
165
+ 管理面 HTTP 认证独立于 AgentCard 凭据。`load_psop` / `search_psop` 可共享一个
166
+ `OrchestrationAccountAuth`:首次请求登录 `/api/v1/auth/token`,缓存 Token,过期时续取,
167
+ 被 401 拒绝后只重登重试一次。账号只用于指定中心的公开编排 API,不跟随重定向。
168
+
169
+ ```python
170
+ import os
171
+ from workflow_engine import OrchestrationAccountAuth, load_psop, search_psop
172
+
173
+ center = "https://center.example:5001"
174
+ auth = OrchestrationAccountAuth(
175
+ center, os.environ["HOST_ORCHESTRATION_USERNAME"],
176
+ os.environ["HOST_ORCHESTRATION_PASSWORD"],
177
+ )
178
+ options = dict(auth_provider=auth, ssl_verify=True, ca_certs_path="/run/secrets/center-ca.pem")
179
+ # 服务端要求 mTLS 时,额外传 client_cert_path / client_key_path;
180
+ # client_key_password 支持加密私钥。登录和业务请求使用同一套 TLS 身份。
181
+ matches = await search_psop(center, "诊断专线投诉", **options)
182
+ workflow = await load_psop(center, matches[0].workflow_id, **options)
183
+ ```
184
+
185
+ 静态 Bearer 场景继续传 `access_token`,与 `auth_provider` 二选一;注册中心使用它自己的
186
+ Token 和 TLS 身份,不能复用中心账号或 Agent 登录凭据。
187
+
188
+ `RegistryClient(..., auth_provider=BearerAuth(token_supplier))` 可在每次请求时读取最新
189
+ Bearer Token;OAuth2 的申请、刷新由业务已有认证库完成,也可直接实现异步的
190
+ `HttpAuthProvider.headers(url, client)` 注入认证头。提供者可选实现
191
+ `invalidate(url, rejected_headers) -> bool`,返回 `True` 才允许 PSOP 查询/搜索在 401
192
+ 后重试一次。注册中心操作不自动重放。认证头不允许重复名称、换行或覆盖 Host 等传输头。
193
+ 中心地址支持部署路径前缀,账号令牌仍限定在该前缀下的公开编排 API。
194
+
195
+ 源码版本现为 `0.1.2`,包含已发布 `0.1.1` 之后的主干变更。发布前可运行
196
+ `python -m build` 后安装 `dist/workflow_exec_engine-0.1.2-py3-none-any.whl`;
197
+ 此说明不代表该版本已发布到 PyPI。
198
+
151
199
  ## 文档与验证
152
200
 
153
201
  - [设计说明](DESIGN.md)
@@ -2,7 +2,7 @@
2
2
 
3
3
  面向宿主智能体的嵌入式工作流执行引擎。引擎负责工作流 DAG、A2A 消息封装、任务与会话关联、远端任务等待、Negotiation-T 交互循环和生命周期;宿主负责业务输入解释、A2A-T 内容生成与语义校验,以及路由和协商决策。
4
4
 
5
- Python 与 Java 版本遵循同一业务契约。Python 当前要求 Python 3.12+、`a2a-sdk>=1.1.2,<2` 和 `a2a-t-sdk>=1.0.9,<2`。
5
+ Python 与 Java 版本遵循同一业务契约。Python 当前要求 Python 3.12+、`a2a-sdk>=1.1.2,<2` 和 `a2a-t-sdk>=1.2.0,<2`。
6
6
 
7
7
  ## 安装
8
8
 
@@ -80,20 +80,31 @@ await transport.close()
80
80
 
81
81
  ## 独立协议操作
82
82
 
83
- Authorization-T 和 Notification-T 不属于工作流因果链,应使用独立 `A2ATransport` 和 `ExtensionSender`:
83
+ Authorization-T 和 Notification-T 不属于工作流因果链。工作流任务、一次性授权和长订阅应分别持有 `A2ATransport`;协议处理能力可以共用,但 HTTP 通道和生命周期不能共用:
84
84
 
85
85
  ```python
86
- sender = ExtensionSender(independent_transport)
87
- authorization = await sender.send_authorization(agent_name, authorization_content)
88
-
89
- subscription = sender.open_notification(agent_name, notification_content, on_notification)
90
- ack = await subscription.acknowledgement
91
- # 收到业务结果后由集成方显式关闭:
92
- subscription.close()
93
- await subscription.completion
86
+ auth_transport = A2ATransport(agent_cards)
87
+ notification_transport = A2ATransport(agent_cards)
88
+ try:
89
+ authorization = await ExtensionSender(auth_transport).send_authorization(
90
+ agent_name, authorization_content,
91
+ )
92
+ finally:
93
+ await auth_transport.close() # 授权操作结束即释放,不影响订阅
94
+
95
+ subscription = ExtensionSender(notification_transport).open_notification(
96
+ agent_name, notification_content, on_notification,
97
+ )
98
+ try:
99
+ ack = await subscription.acknowledgement # 仅表示订阅已接受,流继续保持
100
+ # 单条通知结果不结束订阅;保持监听,直到明确取消、停机或流异常结束。
101
+ await subscription.completion
102
+ finally:
103
+ subscription.close()
104
+ await notification_transport.close()
94
105
  ```
95
106
 
96
- 授权或订阅失败不会自动阻断后续工作流。`send_authorization` 会等待授权任务到达终态,集成方通过 `is_success` 判断结果;订阅确认通过 `is_failure` 排除失败、拒绝或取消。订阅确认与长连接结束是两个不同 Future;`heartbeat` 和 `is_healthy()` 可用于本地存活性判断。
107
+ 授权或订阅失败不会自动阻断后续工作流。`send_authorization` 会等待授权任务到达终态,集成方通过 `is_success` 判断结果;订阅拒绝会让 `acknowledgement` 抛错,普通消息和 artifact 不算 ACK。订阅确认与长连接结束是两个不同 Future;业务任务终态不会自动关闭独立订阅,持续到达的 SSE 心跳可保持长连接存活。显式关闭、远端 EOF、空闲超时或传输异常会结束流。`heartbeat` 和 `is_healthy()` 可用于本地存活性判断。
97
108
 
98
109
  ## 远端任务管理
99
110
 
@@ -114,6 +125,40 @@ await client.subscribe_to_task(agent_name, task_id, on_event)
114
125
 
115
126
  仅受控开发环境可显式配置 `ssl_verify=False`。调用方传入的 `httpx.AsyncClient` 仍由调用方关闭;执行引擎只关闭自己创建的客户端资源。
116
127
 
128
+ 管理面 HTTP 认证独立于 AgentCard 凭据。`load_psop` / `search_psop` 可共享一个
129
+ `OrchestrationAccountAuth`:首次请求登录 `/api/v1/auth/token`,缓存 Token,过期时续取,
130
+ 被 401 拒绝后只重登重试一次。账号只用于指定中心的公开编排 API,不跟随重定向。
131
+
132
+ ```python
133
+ import os
134
+ from workflow_engine import OrchestrationAccountAuth, load_psop, search_psop
135
+
136
+ center = "https://center.example:5001"
137
+ auth = OrchestrationAccountAuth(
138
+ center, os.environ["HOST_ORCHESTRATION_USERNAME"],
139
+ os.environ["HOST_ORCHESTRATION_PASSWORD"],
140
+ )
141
+ options = dict(auth_provider=auth, ssl_verify=True, ca_certs_path="/run/secrets/center-ca.pem")
142
+ # 服务端要求 mTLS 时,额外传 client_cert_path / client_key_path;
143
+ # client_key_password 支持加密私钥。登录和业务请求使用同一套 TLS 身份。
144
+ matches = await search_psop(center, "诊断专线投诉", **options)
145
+ workflow = await load_psop(center, matches[0].workflow_id, **options)
146
+ ```
147
+
148
+ 静态 Bearer 场景继续传 `access_token`,与 `auth_provider` 二选一;注册中心使用它自己的
149
+ Token 和 TLS 身份,不能复用中心账号或 Agent 登录凭据。
150
+
151
+ `RegistryClient(..., auth_provider=BearerAuth(token_supplier))` 可在每次请求时读取最新
152
+ Bearer Token;OAuth2 的申请、刷新由业务已有认证库完成,也可直接实现异步的
153
+ `HttpAuthProvider.headers(url, client)` 注入认证头。提供者可选实现
154
+ `invalidate(url, rejected_headers) -> bool`,返回 `True` 才允许 PSOP 查询/搜索在 401
155
+ 后重试一次。注册中心操作不自动重放。认证头不允许重复名称、换行或覆盖 Host 等传输头。
156
+ 中心地址支持部署路径前缀,账号令牌仍限定在该前缀下的公开编排 API。
157
+
158
+ 源码版本现为 `0.1.2`,包含已发布 `0.1.1` 之后的主干变更。发布前可运行
159
+ `python -m build` 后安装 `dist/workflow_exec_engine-0.1.2-py3-none-any.whl`;
160
+ 此说明不代表该版本已发布到 PyPI。
161
+
117
162
  ## 文档与验证
118
163
 
119
164
  - [设计说明](DESIGN.md)
@@ -2,7 +2,7 @@
2
2
 
3
3
  An embedded workflow execution SDK for host agents. The engine owns workflow DAG execution, A2A envelopes, task/context correlation, remote-task waiting, the Negotiation-T interaction loop, and lifecycle management. The host owns business-input interpretation, A2A-T content generation and semantic validation, routing, and negotiation decisions.
4
4
 
5
- The Python and Java engines follow the same business contract. This package requires Python 3.12+, `a2a-sdk>=1.1.2,<2`, and `a2a-t-sdk>=1.1.0,<2`.
5
+ The Python and Java engines follow the same business contract. This package requires Python 3.12+, `a2a-sdk>=1.1.2,<2`, and `a2a-t-sdk>=1.2.0,<2`.
6
6
 
7
7
  ## Installation
8
8
 
@@ -81,7 +81,8 @@ authorization = await sender.send_authorization(agent_name, authorization_conten
81
81
 
82
82
  subscription = sender.open_notification(agent_name, notification_content, on_notification)
83
83
  ack = await subscription.acknowledgement
84
- subscription.close()
84
+ # Keep receiving results; one notification does not end the subscription.
85
+ # The host may call subscription.close() on explicit cancellation or shutdown.
85
86
  await subscription.completion
86
87
  ```
87
88
 
@@ -106,6 +107,20 @@ A `WorkflowEngineClient` can be bound to only one active workflow execution at a
106
107
 
107
108
  Only controlled development environments should use `ssl_verify=False`. A caller-supplied `httpx.AsyncClient` remains caller-owned; the engine closes only resources it creates.
108
109
 
110
+ Management HTTP uses a separate `HttpAuthProvider`. Share `OrchestrationAccountAuth`
111
+ between `load_psop` and `search_psop` to acquire a first-party account token lazily,
112
+ cache it until expiry and renew once after a 401. Login uses the helper's TLS/mTLS
113
+ identity; credentials are scoped to that center's public orchestration API, including
114
+ any deployment prefix. Redirects are rejected.
115
+
116
+ For registry authentication use `RegistryClient(url, auth_provider=BearerAuth(token_supplier))`
117
+ or implement async `headers(url, client)` with your existing OAuth2 library. OAuth2
118
+ grants and refresh tokens remain application-owned. The optional
119
+ `invalidate(url, rejected_headers) -> bool` hook must return `True` to permit a
120
+ single PSOP read/search retry; registry operations are never replayed automatically.
121
+ Static `access_token` and `auth_provider` are mutually exclusive. Custom headers are
122
+ validated for duplicate names, invalid characters and reserved transport headers.
123
+
109
124
  ## Documentation and verification
110
125
 
111
126
  - [Design](DESIGN.md)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "workflow-exec-engine"
7
- version = "0.1.0"
7
+ dynamic = ["version"]
8
8
  description = "Standalone workflow execution SDK for A2A-T multi-agent orchestration"
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
@@ -24,7 +24,7 @@ classifiers = [
24
24
  ]
25
25
  dependencies = [
26
26
  "a2a-sdk>=1.1.2,<2",
27
- "a2a-t-sdk>=1.0.9,<2",
27
+ "a2a-t-sdk>=1.2.0,<2",
28
28
  "httpx>=0.27.0",
29
29
  "loguru>=0.7.0",
30
30
  "protobuf>=4.25.0",
@@ -38,6 +38,11 @@ dev = [
38
38
  "pytest>=8.0.0",
39
39
  "pytest-asyncio>=0.23.0",
40
40
  ]
41
+ # The embedded-agent demo and the scenario run test start A2A HTTP servers.
42
+ samples = [
43
+ "fastapi>=0.115.0",
44
+ "uvicorn>=0.30.0",
45
+ ]
41
46
 
42
47
  [project.urls]
43
48
  Homepage = "https://github.com/project-openan/workflow-engine-sdk-python"
@@ -49,6 +54,11 @@ Changelog = "https://github.com/project-openan/workflow-engine-sdk-python/blob/m
49
54
  [tool.setuptools.packages.find]
50
55
  include = ["workflow_engine*"]
51
56
 
57
+ # Single source of truth: the version lives in workflow_engine/__init__.py, so
58
+ # the distribution metadata and __version__ can no longer drift apart.
59
+ [tool.setuptools.dynamic]
60
+ version = { attr = "workflow_engine.__version__" }
61
+
52
62
  [tool.pytest.ini_options]
53
63
  asyncio_mode = "auto"
54
64
  testpaths = ["."]
@@ -1,5 +1,5 @@
1
1
  a2a-sdk>=1.1.2,<2
2
- a2a-t-sdk>=1.0.9,<2
2
+ a2a-t-sdk>=1.2.0,<2
3
3
  httpx>=0.27.0
4
4
  loguru>=0.7.0
5
5
  protobuf>=4.25.0
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2026 Huawei Technologies Co., Ltd.
1
+ # Copyright (c) 2026 Huawei Technologies Co., Ltd.
2
2
  # All Rights Reserved.
3
3
  #
4
4
  # SPDX-License-Identifier: Apache-2.0
@@ -71,10 +71,13 @@ from workflow_engine.control import ControlPoint, EventCallback, EventType
71
71
  from workflow_engine.control import (
72
72
  NegotiationStrategy, DefaultControlPoint,
73
73
  )
74
- from workflow_engine.registry import RegistryClient, load_psop, search_psop
74
+ from workflow_engine.registry import RegistryClient, load_psop, search_psop, BearerAuth, HttpAuthProvider, OrchestrationAccountAuth
75
75
  from workflow_engine.runner import execute_psop
76
+ from workflow_engine.observation import CenterExecutionReporting, ExecutionReporter
76
77
 
77
78
  __all__ = [
79
+ "CenterExecutionReporting",
80
+ "ExecutionReporter",
78
81
  # Core
79
82
  "Workflow", "WorkflowStep", "Task", "JumpCondition",
80
83
  "StepType", "TaskStatus", "ExecutionResult",
@@ -94,9 +97,9 @@ __all__ = [
94
97
  "ControlPoint", "EventCallback", "EventType",
95
98
  "NegotiationStrategy", "DefaultControlPoint",
96
99
  # Registry (optional)
97
- "RegistryClient", "load_psop", "search_psop",
100
+ "RegistryClient", "load_psop", "search_psop", "BearerAuth", "HttpAuthProvider", "OrchestrationAccountAuth",
98
101
  # High-level runner
99
102
  "execute_psop",
100
103
  ]
101
104
 
102
- __version__ = "0.0.3"
105
+ __version__ = "0.1.2"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2026 Huawei Technologies Co., Ltd.
1
+ # Copyright (c) 2026 Huawei Technologies Co., Ltd.
2
2
  # All Rights Reserved.
3
3
  #
4
4
  # SPDX-License-Identifier: Apache-2.0
@@ -33,7 +33,9 @@ from workflow_engine.client.auth_manager import AuthProviderInterceptor
33
33
  from workflow_engine.client.extension_interceptor import ExtensionInterceptor
34
34
  from workflow_engine.client.agentcard_normalizer import normalize_agent_dict
35
35
 
36
- from workflow_engine.client.protocol_logger import log_request, log_response
36
+ from workflow_engine.client.protocol_logger import (
37
+ log_request, log_response, register_sensitive_header,
38
+ )
37
39
  from workflow_engine.client.stub_engine_client import StubWorkflowEngineClient
38
40
 
39
41
  __all__ = [
@@ -43,5 +45,5 @@ __all__ = [
43
45
  "CustomAuthInterceptor", "ExtensionInterceptor", "normalize_agent_dict",
44
46
  "A2ATExtension", "A2atMessages", "encrypt", "decrypt_if_needed", "load_to_environ",
45
47
  "AuthProvider", "AuthProviderInterceptor",
46
- "log_request", "log_response", "StubWorkflowEngineClient",
48
+ "log_request", "log_response", "register_sensitive_header", "StubWorkflowEngineClient",
47
49
  ]