Skip to content

Commit baeb82b

Browse files
fix(platform): move interrupt models from common to resume_triggers
common/interrupt_models.py imported action_center, attachments, context_grounding, documents, and orchestrator at runtime, forming a cycle cluster around common — the same layering inversion class that broke 0.1.89 (only masked by import ordering). The models are HITL suspend/resume payloads consumed solely by resume_triggers, so they move into that package; all former upward edges now point downward and the import-linter contract passes with zero ignores. The models are importable from uipath.platform.resume_triggers. No re-export shim in common — an eager one recreates the cycle and a lazy one still violates the layering contract. Known external usages (uipath-langchain-python docs/samples/test mocks, POC repos) import from uipath.platform.common and need a coordinated update; none are published package sources. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent ce83277 commit baeb82b

9 files changed

Lines changed: 103 additions & 103 deletions

File tree

packages/uipath-platform/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-platform"
3-
version = "0.1.91"
3+
version = "0.1.92"
44
description = "HTTP client library for programmatic access to UiPath Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath-platform/src/uipath/platform/common/__init__.py

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,6 @@
3333
from ._user_agent import user_agent_value
3434
from .auth import TokenData
3535
from .dynamic_schema import jsonschema_to_pydantic
36-
from .interrupt_models import (
37-
CreateBatchTransform,
38-
CreateDeepRag,
39-
CreateDeepRagRaw,
40-
CreateEphemeralIndex,
41-
CreateEphemeralIndexRaw,
42-
CreateEscalation,
43-
CreateTask,
44-
DocumentExtraction,
45-
DocumentExtractionValidation,
46-
InvokeProcess,
47-
InvokeProcessRaw,
48-
InvokeSystemAgent,
49-
WaitBatchTransform,
50-
WaitDeepRag,
51-
WaitDeepRagRaw,
52-
WaitDocumentExtraction,
53-
WaitDocumentExtractionValidation,
54-
WaitEphemeralIndex,
55-
WaitEphemeralIndexRaw,
56-
WaitEscalation,
57-
WaitIntegrationEvent,
58-
WaitJob,
59-
WaitJobRaw,
60-
WaitSystemAgent,
61-
WaitTask,
62-
WaitUntil,
63-
)
6436
from .paging import PagedResult
6537

6638
__all__ = [
@@ -72,33 +44,7 @@
7244
"FolderContext",
7345
"TokenData",
7446
"UiPathConfig",
75-
"CreateTask",
76-
"CreateEscalation",
77-
"WaitEscalation",
78-
"InvokeProcess",
79-
"InvokeProcessRaw",
80-
"WaitTask",
81-
"WaitJob",
82-
"WaitJobRaw",
8347
"PagedResult",
84-
"CreateDeepRag",
85-
"CreateDeepRagRaw",
86-
"WaitDeepRag",
87-
"WaitDeepRagRaw",
88-
"CreateBatchTransform",
89-
"WaitBatchTransform",
90-
"DocumentExtraction",
91-
"WaitDocumentExtraction",
92-
"InvokeSystemAgent",
93-
"WaitSystemAgent",
94-
"CreateEphemeralIndex",
95-
"CreateEphemeralIndexRaw",
96-
"WaitEphemeralIndex",
97-
"WaitEphemeralIndexRaw",
98-
"DocumentExtractionValidation",
99-
"WaitDocumentExtractionValidation",
100-
"WaitIntegrationEvent",
101-
"WaitUntil",
10248
"RequestSpec",
10349
"Endpoint",
10450
"UiPathUrl",

packages/uipath-platform/src/uipath/platform/resume_triggers/__init__.py

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@
66
UiPathResumeTriggerHandler,
77
UiPathResumeTriggerReader,
88
)
9+
from .interrupt_models import (
10+
CreateBatchTransform,
11+
CreateDeepRag,
12+
CreateDeepRagRaw,
13+
CreateEphemeralIndex,
14+
CreateEphemeralIndexRaw,
15+
CreateEscalation,
16+
CreateTask,
17+
DocumentExtraction,
18+
DocumentExtractionValidation,
19+
InvokeProcess,
20+
InvokeProcessRaw,
21+
InvokeSystemAgent,
22+
WaitBatchTransform,
23+
WaitDeepRag,
24+
WaitDeepRagRaw,
25+
WaitDocumentExtraction,
26+
WaitDocumentExtractionValidation,
27+
WaitEphemeralIndex,
28+
WaitEphemeralIndexRaw,
29+
WaitEscalation,
30+
WaitIntegrationEvent,
31+
WaitJob,
32+
WaitJobRaw,
33+
WaitSystemAgent,
34+
WaitTask,
35+
WaitUntil,
36+
)
937

1038
__all__ = [
1139
"UiPathResumeTriggerReader",
@@ -14,4 +42,30 @@
1442
"PropertyName",
1543
"TriggerMarker",
1644
"is_no_content_marker",
45+
"CreateBatchTransform",
46+
"CreateDeepRag",
47+
"CreateDeepRagRaw",
48+
"CreateEphemeralIndex",
49+
"CreateEphemeralIndexRaw",
50+
"CreateEscalation",
51+
"CreateTask",
52+
"DocumentExtraction",
53+
"DocumentExtractionValidation",
54+
"InvokeProcess",
55+
"InvokeProcessRaw",
56+
"InvokeSystemAgent",
57+
"WaitBatchTransform",
58+
"WaitDeepRag",
59+
"WaitDeepRagRaw",
60+
"WaitDocumentExtraction",
61+
"WaitDocumentExtractionValidation",
62+
"WaitEphemeralIndex",
63+
"WaitEphemeralIndexRaw",
64+
"WaitEscalation",
65+
"WaitIntegrationEvent",
66+
"WaitJob",
67+
"WaitJobRaw",
68+
"WaitSystemAgent",
69+
"WaitTask",
70+
"WaitUntil",
1771
]

packages/uipath-platform/src/uipath/platform/resume_triggers/_protocol.py

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,25 @@
2424
from uipath.platform.action_center import Task
2525
from uipath.platform.action_center.tasks import TaskStatus
2626
from uipath.platform.common._config import UiPathConfig
27-
from uipath.platform.common.interrupt_models import (
27+
from uipath.platform.connections import EventArguments
28+
from uipath.platform.context_grounding import DeepRagStatus, IndexStatus
29+
from uipath.platform.context_grounding.context_grounding_index import (
30+
ContextGroundingIndex,
31+
)
32+
from uipath.platform.errors import (
33+
BatchTransformFailedException,
34+
BatchTransformNotCompleteException,
35+
OperationNotCompleteException,
36+
)
37+
from uipath.platform.orchestrator.job import JobState
38+
from uipath.platform.resume_triggers._enums import (
39+
ExternalTrigger,
40+
ExternalTriggerType,
41+
PropertyName,
42+
TriggerMarker,
43+
)
44+
45+
from .interrupt_models import (
2846
CreateBatchTransform,
2947
CreateDeepRag,
3048
CreateDeepRagRaw,
@@ -52,23 +70,6 @@
5270
WaitTask,
5371
WaitUntil,
5472
)
55-
from uipath.platform.connections import EventArguments
56-
from uipath.platform.context_grounding import DeepRagStatus, IndexStatus
57-
from uipath.platform.context_grounding.context_grounding_index import (
58-
ContextGroundingIndex,
59-
)
60-
from uipath.platform.errors import (
61-
BatchTransformFailedException,
62-
BatchTransformNotCompleteException,
63-
OperationNotCompleteException,
64-
)
65-
from uipath.platform.orchestrator.job import JobState
66-
from uipath.platform.resume_triggers._enums import (
67-
ExternalTrigger,
68-
ExternalTriggerType,
69-
PropertyName,
70-
TriggerMarker,
71-
)
7273

7374

7475
def _try_convert_to_json_format(value: str | None) -> Any:

packages/uipath-platform/src/uipath/platform/common/interrupt_models.py renamed to packages/uipath-platform/src/uipath/platform/resume_triggers/interrupt_models.py

File renamed without changes.

packages/uipath-platform/tests/services/test_hitl.py

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,6 @@
1818

1919
from uipath.platform.action_center import Task
2020
from uipath.platform.action_center.tasks import TaskStatus
21-
from uipath.platform.common import (
22-
CreateBatchTransform,
23-
CreateDeepRag,
24-
CreateDeepRagRaw,
25-
CreateEphemeralIndex,
26-
CreateEphemeralIndexRaw,
27-
CreateTask,
28-
DocumentExtraction,
29-
DocumentExtractionValidation,
30-
InvokeProcess,
31-
InvokeProcessRaw,
32-
InvokeSystemAgent,
33-
WaitBatchTransform,
34-
WaitDeepRag,
35-
WaitDeepRagRaw,
36-
WaitDocumentExtractionValidation,
37-
WaitEphemeralIndex,
38-
WaitEphemeralIndexRaw,
39-
WaitIntegrationEvent,
40-
WaitJob,
41-
WaitJobRaw,
42-
WaitSystemAgent,
43-
WaitTask,
44-
WaitUntil,
45-
)
4621
from uipath.platform.connections import Connection
4722
from uipath.platform.context_grounding import (
4823
BatchTransformCreationResponse,
@@ -70,10 +45,33 @@
7045
from uipath.platform.orchestrator import Job, JobErrorInfo
7146
from uipath.platform.orchestrator.job import JobState
7247
from uipath.platform.resume_triggers import (
48+
CreateBatchTransform,
49+
CreateDeepRag,
50+
CreateDeepRagRaw,
51+
CreateEphemeralIndex,
52+
CreateEphemeralIndexRaw,
53+
CreateTask,
54+
DocumentExtraction,
55+
DocumentExtractionValidation,
56+
InvokeProcess,
57+
InvokeProcessRaw,
58+
InvokeSystemAgent,
7359
PropertyName,
7460
TriggerMarker,
7561
UiPathResumeTriggerCreator,
7662
UiPathResumeTriggerReader,
63+
WaitBatchTransform,
64+
WaitDeepRag,
65+
WaitDeepRagRaw,
66+
WaitDocumentExtractionValidation,
67+
WaitEphemeralIndex,
68+
WaitEphemeralIndexRaw,
69+
WaitIntegrationEvent,
70+
WaitJob,
71+
WaitJobRaw,
72+
WaitSystemAgent,
73+
WaitTask,
74+
WaitUntil,
7775
)
7876

7977

packages/uipath-platform/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/uipath/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[project]
22
name = "uipath"
3-
version = "2.12.7"
3+
version = "2.12.8"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
88
"uipath-core>=0.5.26, <0.6.0",
99
"uipath-runtime>=0.11.7, <0.12.0",
10-
"uipath-platform>=0.1.91, <0.2.0",
10+
"uipath-platform>=0.1.92, <0.2.0",
1111
"click>=8.3.1",
1212
"httpx>=0.28.1",
1313
"pyjwt>=2.10.1",

packages/uipath/uv.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)