execution-plane-client 0.1.6__tar.gz → 0.1.8__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 (21) hide show
  1. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/PKG-INFO +1 -1
  2. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/_version.py +2 -2
  3. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/commands/targets.py +1 -0
  4. execution_plane_client-0.1.8/commands/work.py +43 -0
  5. execution_plane_client-0.1.6/commands/work.py +0 -39
  6. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/.gitignore +0 -0
  7. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/LICENSE +0 -0
  8. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/README.md +0 -0
  9. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/__init__.py +0 -0
  10. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/catalog.py +0 -0
  11. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/commands/__init__.py +0 -0
  12. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/commands/base.py +0 -0
  13. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/commands/clusters.py +0 -0
  14. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/commands/control.py +0 -0
  15. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/commands/credentials.py +0 -0
  16. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/errors.py +0 -0
  17. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/handlers.py +0 -0
  18. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/protocol.py +0 -0
  19. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/py.typed +0 -0
  20. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/pyproject.toml +0 -0
  21. {execution_plane_client-0.1.6 → execution_plane_client-0.1.8}/registry.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: execution-plane-client
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Summary: Shared execution-plane command contracts and handler registry
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.6'
22
- __version_tuple__ = version_tuple = (0, 1, 6)
21
+ __version__ = version = '0.1.8'
22
+ __version_tuple__ = version_tuple = (0, 1, 8)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -135,6 +135,7 @@ class TargetUpdate(ResourceIdentity, CommandPayload):
135
135
  credential_ref: UUID | None = None
136
136
  labels: dict[str, str] | None = None
137
137
  is_default: StrictBool | None = None
138
+ enabled: StrictBool | None = None
138
139
 
139
140
  def _message_payload(self) -> dict[str, object]:
140
141
  payload = self.model_dump(mode="json", exclude_unset=True)
@@ -0,0 +1,43 @@
1
+ """Scheduling commands for the SDK-owned container gRPC contract."""
2
+
3
+ from typing import Annotated, ClassVar, Literal
4
+
5
+ from pydantic import Field, StrictStr, field_validator
6
+
7
+ from execution_plane_client.commands.base import CommandPayload
8
+ from execution_plane_client.protocol import PositiveInt, WireModel, validate_json
9
+
10
+ StepIdentity = Annotated[StrictStr, Field(min_length=1, max_length=256, pattern=r"^[A-Za-z0-9._:-]+$")]
11
+
12
+
13
+ class WorkloadInvocation(WireModel):
14
+ """Public invocation data; EP supplies the attempt ID and credential mounts.
15
+
16
+ Script environment variables remain ordinary step inputs. Credential-file
17
+ delivery is not implemented yet, so callers cannot supply secret values or
18
+ claim that arbitrary file paths have been mounted by EP.
19
+ """
20
+
21
+ workflow_run_id: StepIdentity
22
+ step_revision_id: StepIdentity
23
+ inputs: dict[str, object]
24
+ runtime_context: dict[str, object] = Field(default_factory=dict)
25
+ timeout_seconds: Annotated[PositiveInt, Field(le=86_400)]
26
+
27
+ @field_validator("inputs", "runtime_context", mode="before")
28
+ @classmethod
29
+ def check_json(cls, value: object) -> object:
30
+ """Keep nested invocation data finite, portable, and bounded."""
31
+ return validate_json(value)
32
+
33
+
34
+ class WorkExecute(CommandPayload):
35
+ """Schedule one workload implementing the SDK container service."""
36
+
37
+ command_type: ClassVar[str] = "work.execute"
38
+
39
+ image: Annotated[StrictStr, Field(min_length=1, max_length=2048)]
40
+ selectors: dict[StrictStr, StrictStr] = Field(default_factory=dict)
41
+ invocation: WorkloadInvocation = Field(repr=False)
42
+ output_config: dict[str, str] | None = None
43
+ workload_type: Literal["container"] = "container"
@@ -1,39 +0,0 @@
1
- """Versioned work invocation values without node-provider imports."""
2
-
3
- from typing import Annotated, ClassVar, Literal
4
-
5
- from pydantic import Field, StrictStr, field_validator
6
-
7
- from execution_plane_client.commands.base import CommandPayload
8
- from execution_plane_client.protocol import PositiveInt, WireModel, validate_json
9
-
10
-
11
- class NodeInvocation(WireModel):
12
- """Version-one invocation consumed by the existing node protocol."""
13
-
14
- version: Literal[1] = 1
15
- operation: Literal["execute"] = "execute"
16
- inputs: dict[str, object]
17
- credentials: dict[str, object] = Field(repr=False)
18
- workflow_context: dict[str, object]
19
- settings: dict[str, object]
20
- timeout_seconds: PositiveInt
21
- max_output_bytes: PositiveInt
22
-
23
- @field_validator("inputs", "credentials", "workflow_context", "settings", mode="before")
24
- @classmethod
25
- def check_json(cls, value: object) -> object:
26
- """Keep all nested invocation data portable and bounded."""
27
- return validate_json(value)
28
-
29
-
30
- class WorkExecute(CommandPayload):
31
- """Script command with stable caller correlation and provider-neutral input."""
32
-
33
- command_type: ClassVar[str] = "work.execute"
34
-
35
- image: Annotated[StrictStr, Field(min_length=1, max_length=2048)]
36
- selectors: dict[StrictStr, StrictStr] = Field(default_factory=dict)
37
- invocation: NodeInvocation = Field(repr=False)
38
- output_config: dict[str, str] | None = None
39
- workload_type: Literal["script"] = "script"