execution-plane-client 0.1.14__tar.gz → 0.1.15__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 (26) hide show
  1. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/PKG-INFO +1 -1
  2. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/_version.py +2 -2
  3. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/commands/control.py +13 -2
  4. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/.gitignore +0 -0
  5. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/LICENSE +0 -0
  6. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/README.md +0 -0
  7. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/__init__.py +0 -0
  8. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/catalog.py +0 -0
  9. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/commands/__init__.py +0 -0
  10. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/commands/base.py +0 -0
  11. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/commands/clusters.py +0 -0
  12. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/commands/credentials.py +0 -0
  13. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/commands/results.py +0 -0
  14. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/commands/targets.py +0 -0
  15. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/commands/work.py +0 -0
  16. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/errors.py +0 -0
  17. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/handlers.py +0 -0
  18. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/models/__init__.py +0 -0
  19. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/models/cluster.py +0 -0
  20. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/models/execution_target.py +0 -0
  21. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/models/shared.py +0 -0
  22. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/models/work_item.py +0 -0
  23. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/protocol.py +0 -0
  24. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/py.typed +0 -0
  25. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/pyproject.toml +0 -0
  26. {execution_plane_client-0.1.14 → execution_plane_client-0.1.15}/registry.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: execution-plane-client
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
4
  Summary: Shared execution-plane command, response, and handler contracts
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.1.14'
22
- __version_tuple__ = version_tuple = (0, 1, 14)
21
+ __version__ = version = '0.1.15'
22
+ __version_tuple__ = version_tuple = (0, 1, 15)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -1,11 +1,13 @@
1
1
  """Cancellation requests and work completion commands."""
2
2
 
3
- from typing import ClassVar, Literal
3
+ from enum import StrEnum
4
+ from typing import ClassVar
4
5
  from uuid import UUID
5
6
 
6
7
  from pydantic import Field, field_validator
7
8
 
8
9
  from execution_plane_client.commands.base import CommandPayload
10
+ from execution_plane_client.models.work_item import WorkItemStatus
9
11
  from execution_plane_client.protocol import ResourceReference, validate_json
10
12
 
11
13
 
@@ -17,13 +19,22 @@ class CancelCommand(CommandPayload):
17
19
  target_command_id: UUID
18
20
 
19
21
 
22
+ class CompletionStatus(StrEnum):
23
+ """Work-item states that can be reported by a completion command."""
24
+
25
+ COMPLETED = WorkItemStatus.COMPLETED.value
26
+ FAILED = WorkItemStatus.FAILED.value
27
+ CANCELLED = WorkItemStatus.CANCELLED.value
28
+ RECONCILIATION_REQUIRED = WorkItemStatus.RECONCILIATION_REQUIRED.value
29
+
30
+
20
31
  class Completion(CommandPayload):
21
32
  """Terminal or uncertain work outcome delivered to the initiating client."""
22
33
 
23
34
  command_type: ClassVar[str] = "work.execute.completed"
24
35
  requires_parent: ClassVar[bool] = True
25
36
 
26
- status: Literal["succeeded", "failed", "cancelled", "outcome_unknown"]
37
+ status: CompletionStatus
27
38
  result: dict[str, object] = Field(default_factory=dict, repr=False)
28
39
  resource: ResourceReference | None = None
29
40
  error_code: str | None = None