execution-plane-client 0.1.25__tar.gz → 0.1.26__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 (29) hide show
  1. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/PKG-INFO +4 -2
  2. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/README.md +3 -1
  3. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/_version.py +2 -2
  4. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/catalog.py +2 -4
  5. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/commands/control.py +0 -10
  6. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/commands/work.py +0 -8
  7. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/.gitignore +0 -0
  8. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/LICENSE +0 -0
  9. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/__init__.py +0 -0
  10. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/commands/__init__.py +0 -0
  11. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/commands/base.py +0 -0
  12. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/commands/bulk_work.py +0 -0
  13. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/commands/clusters.py +0 -0
  14. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/commands/credentials.py +0 -0
  15. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/commands/results.py +0 -0
  16. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/commands/targets.py +0 -0
  17. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/errors.py +0 -0
  18. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/handlers.py +0 -0
  19. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/models/__init__.py +0 -0
  20. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/models/cluster.py +0 -0
  21. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/models/execution_target.py +0 -0
  22. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/models/runtime_context.py +0 -0
  23. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/models/shared.py +0 -0
  24. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/models/work_item.py +0 -0
  25. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/protocol.py +0 -0
  26. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/py.typed +0 -0
  27. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/pyproject.toml +0 -0
  28. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/registry.py +0 -0
  29. {execution_plane_client-0.1.25 → execution_plane_client-0.1.26}/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: execution-plane-client
3
- Version: 0.1.25
3
+ Version: 0.1.26
4
4
  Summary: Shared execution-plane command, response, and handler contracts
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -55,7 +55,9 @@ the caller; the helper does not authenticate them.
55
55
 
56
56
  `WorkExecute` requires a caller-assigned `work_item_id`, which becomes the new
57
57
  WorkItem's primary key. Submitting an existing ID returns HTTP 409. Use that same
58
- ID for `WorkCancel`, `Completion`, and `CredentialResolveWorkload` requests.
58
+ ID for `Completion` and `CredentialResolveWorkload` requests. For cancellation or
59
+ deletion, use `WorkCancelBulk` or `WorkDeleteBulk` with a `WorkItemSelector` containing
60
+ a one-element `work_item_ids` list.
59
61
 
60
62
  Work execution accepts optional non-secret `runtime_context`, passed to the
61
63
  plugin and included in work-item reads and completion notifications. See
@@ -45,7 +45,9 @@ the caller; the helper does not authenticate them.
45
45
 
46
46
  `WorkExecute` requires a caller-assigned `work_item_id`, which becomes the new
47
47
  WorkItem's primary key. Submitting an existing ID returns HTTP 409. Use that same
48
- ID for `WorkCancel`, `Completion`, and `CredentialResolveWorkload` requests.
48
+ ID for `Completion` and `CredentialResolveWorkload` requests. For cancellation or
49
+ deletion, use `WorkCancelBulk` or `WorkDeleteBulk` with a `WorkItemSelector` containing
50
+ a one-element `work_item_ids` list.
49
51
 
50
52
  Work execution accepts optional non-secret `runtime_context`, passed to the
51
53
  plugin and included in work-item reads and completion notifications. See
@@ -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.25'
22
- __version_tuple__ = version_tuple = (0, 1, 25)
21
+ __version__ = version = '0.1.26'
22
+ __version_tuple__ = version_tuple = (0, 1, 26)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -5,10 +5,10 @@ from dataclasses import dataclass
5
5
  from execution_plane_client.commands.base import CommandPayload
6
6
  from execution_plane_client.commands.bulk_work import WorkCancelBulk, WorkDeleteBulk
7
7
  from execution_plane_client.commands.clusters import ClusterDelete, ClusterRegister, ClusterUpdate
8
- from execution_plane_client.commands.control import Completion, WorkCancel
8
+ from execution_plane_client.commands.control import Completion
9
9
  from execution_plane_client.commands.credentials import CredentialResolveCluster, CredentialResolveWorkload
10
10
  from execution_plane_client.commands.targets import TargetDelete, TargetHealth, TargetRegister, TargetUpdate
11
- from execution_plane_client.commands.work import WorkDelete, WorkExecute
11
+ from execution_plane_client.commands.work import WorkExecute
12
12
  from execution_plane_client.errors import UnsupportedCommand
13
13
  from execution_plane_client.protocol import MessageEnvelope
14
14
 
@@ -31,7 +31,6 @@ class CommandCatalog:
31
31
  WorkExecute,
32
32
  WorkCancelBulk,
33
33
  WorkDeleteBulk,
34
- WorkDelete,
35
34
  Completion,
36
35
  CredentialResolveCluster,
37
36
  CredentialResolveWorkload,
@@ -42,7 +41,6 @@ class CommandCatalog:
42
41
  TargetUpdate,
43
42
  TargetDelete,
44
43
  TargetHealth,
45
- WorkCancel,
46
44
  )
47
45
  self._definitions = {
48
46
  (schema.command_type, schema.command_revision): CommandDefinition(
@@ -12,16 +12,6 @@ from execution_plane_client.models.work_item import WorkItemStatus
12
12
  from execution_plane_client.protocol import validate_json
13
13
 
14
14
 
15
- class WorkCancel(CommandPayload):
16
- """Request cancellation of an existing work item."""
17
-
18
- command_type: ClassVar[str] = "work.cancel"
19
-
20
- work_item_id: UUID = Field(
21
- description="Primary key (WorkItem.id) of the existing EP work item to cancel within the authenticated client."
22
- )
23
-
24
-
25
15
  class CompletionStatus(StrEnum):
26
16
  """Work-item states that can be reported by a completion command."""
27
17
 
@@ -127,11 +127,3 @@ class WorkExecute(CommandPayload):
127
127
  default=WorkloadType.CONTAINER,
128
128
  description="Workload execution family; container is the only supported value.",
129
129
  )
130
-
131
-
132
- class WorkDelete(CommandPayload):
133
- """Request asynchronous cancellation, resource cleanup, and removal of owned work."""
134
-
135
- command_type: ClassVar[str] = "work.delete"
136
-
137
- work_item_id: UUID