dex-python-sdk 0.3.1__tar.gz → 0.4.0__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 (65) hide show
  1. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/LEGACY_NOTICES.md +2 -2
  2. dex_python_sdk-0.4.0/LICENSE +105 -0
  3. dex_python_sdk-0.3.1/README.md → dex_python_sdk-0.4.0/PKG-INFO +46 -4
  4. dex_python_sdk-0.3.1/PKG-INFO → dex_python_sdk-0.4.0/README.md +29 -21
  5. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/__init__.py +5 -2
  6. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_async_value_hydrator.py +2 -2
  7. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_async_worker_dispatcher.py +2 -2
  8. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_async_worker_service.py +2 -2
  9. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_grpc_errors.py +2 -2
  10. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_invocation_context.py +12 -2
  11. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_native.pyi +2 -2
  12. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_utils.py +2 -2
  13. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_value_hydrator.py +2 -2
  14. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_value_mapper.py +2 -2
  15. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_worker_dispatcher.py +2 -2
  16. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/_worker_service.py +2 -2
  17. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/async_client.py +75 -68
  18. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/async_worker.py +2 -2
  19. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/attribute.py +1 -1
  20. dex_python_sdk-0.4.0/dex/attribute_match.py +130 -0
  21. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/blob_cache.py +2 -2
  22. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/channel.py +1 -1
  23. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/client.py +76 -67
  24. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/client_options.py +1 -1
  25. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/codec.py +2 -2
  26. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/condition.py +1 -1
  27. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/context.py +24 -1
  28. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/dexpb/dex_pb2.py +245 -243
  29. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/dexpb/dex_pb2.pyi +33 -16
  30. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/dexpb/dex_pb2_grpc.py +3 -3
  31. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/flow.py +1 -1
  32. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/flow_config.py +2 -2
  33. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/flow_info.py +2 -2
  34. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/flow_options.py +1 -1
  35. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/flow_result.py +2 -2
  36. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/runtime_errors.py +2 -2
  37. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/step.py +1 -1
  38. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/step_execution.py +1 -1
  39. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/stream.py +2 -2
  40. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/subflow.py +2 -2
  41. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/timer.py +2 -2
  42. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/wait.py +1 -1
  43. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/worker.py +1 -1
  44. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/worker_options.py +2 -2
  45. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/pyproject.toml +2 -2
  46. dex_python_sdk-0.4.0/sdk-rust/crates/dex-blob-cache/LICENSE +105 -0
  47. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache/src/config.rs +2 -2
  48. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache/src/entry.rs +2 -2
  49. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache/src/error.rs +2 -2
  50. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache/src/format.rs +2 -2
  51. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache/src/lib.rs +2 -2
  52. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache/src/policy.rs +2 -2
  53. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache/src/store.rs +2 -2
  54. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache/tests/blob_cache_integration.rs +2 -2
  55. dex_python_sdk-0.4.0/sdk-rust/crates/dex-blob-cache-python/LICENSE +105 -0
  56. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache-python/src/lib.rs +2 -2
  57. dex_python_sdk-0.3.1/LICENSE +0 -192
  58. dex_python_sdk-0.3.1/sdk-rust/crates/dex-blob-cache/LICENSE +0 -192
  59. dex_python_sdk-0.3.1/sdk-rust/crates/dex-blob-cache-python/LICENSE +0 -192
  60. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/dexpb/__init__.py +0 -0
  61. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/dex/py.typed +0 -0
  62. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/Cargo.lock +0 -0
  63. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/Cargo.toml +0 -0
  64. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache/Cargo.toml +0 -0
  65. {dex_python_sdk-0.3.1 → dex_python_sdk-0.4.0}/sdk-rust/crates/dex-blob-cache-python/Cargo.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  # Legacy and third-party notices
2
2
 
3
- The Super Durable Source License 1.0 applies only to material owned or
3
+ The Sustainable Use License 1.0 applies only to material owned or
4
4
  licensable by Super Durable, Inc. It does not replace the licenses below.
5
5
 
6
6
  ## Legacy cutoff
@@ -57,5 +57,5 @@ or translations of the `indeedeng/iwf-java-sdk` integration suite at commit
57
57
  - `sdk-typescript/test/integ/`
58
58
 
59
59
  The upstream portions remain licensed under the Apache License 2.0. Super
60
- Durable modifications are licensed under the Super Durable Source License 1.0.
60
+ Durable modifications are licensed under the Sustainable Use License 1.0.
61
61
  The Apache License 2.0 text is in `LICENSES/Apache-2.0.txt`.
@@ -0,0 +1,105 @@
1
+ # License
2
+
3
+ Copyright (c) 2026 Super Durable, Inc.
4
+
5
+ Portions of this software are licensed as follows:
6
+
7
+ - Legacy Materials remain under their original licenses as described in
8
+ `LEGACY_NOTICES.md`.
9
+ - Third-Party Materials remain under the licenses provided by their owners.
10
+ - The `docs/` and `examples/` directories are not licensed under the
11
+ Sustainable Use License and retain their existing licensing status.
12
+ - All other material owned or licensable by Super Durable, Inc. is available
13
+ under the Sustainable Use License below.
14
+
15
+ See `LEGACY_NOTICES.md` for the applicable legacy and third-party notices.
16
+
17
+ ## Sustainable Use License
18
+
19
+ Version 1.0
20
+
21
+ ### Acceptance
22
+
23
+ By using the software, you agree to all of the terms and conditions below.
24
+
25
+ ### Copyright License
26
+
27
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
28
+ non-sublicensable, non-transferable license to use, copy, distribute, make
29
+ available, and prepare derivative works of the software, in each case subject
30
+ to the limitations below.
31
+
32
+ ### Limitations
33
+
34
+ You may use or modify the software only for your own internal business purposes
35
+ or for non-commercial or personal use. You may distribute the software or
36
+ provide it to others only if you do so free of charge for non-commercial
37
+ purposes. You may not alter, remove, or obscure any licensing, copyright, or
38
+ other notices of the licensor in the software. Any use of the licensor's
39
+ trademarks is subject to applicable law.
40
+
41
+ ### Patents
42
+
43
+ The licensor grants you a license, under any patent claims the licensor can
44
+ license, or becomes able to license, to make, have made, use, sell, offer for
45
+ sale, import and have imported the software, in each case subject to the
46
+ limitations and conditions in this license. This license does not cover any
47
+ patent claims that you cause to be infringed by modifications or additions to
48
+ the software.
49
+
50
+ If you or your company make any written claim that the software infringes or
51
+ contributes to infringement of any patent, your patent license for the software
52
+ granted under these terms ends immediately. If your company makes such a claim,
53
+ your patent license ends immediately for work on behalf of your company.
54
+
55
+ ### Notices
56
+
57
+ You must ensure that anyone who gets a copy of any part of the software from
58
+ you also gets a copy of these terms. If you modify the software, you must
59
+ include in any modified copies of the software a prominent notice stating that
60
+ you have modified the software.
61
+
62
+ ### No Other Rights
63
+
64
+ These terms do not imply any licenses other than those expressly granted in
65
+ these terms.
66
+
67
+ ### Termination
68
+
69
+ If you use the software in violation of these terms, such use is not licensed,
70
+ and your license will automatically terminate. If the licensor provides you
71
+ with a notice of your violation, and you cease all violation of this license no
72
+ later than 30 days after you receive that notice, your license will be
73
+ reinstated retroactively. However, if you violate these terms after such
74
+ reinstatement, any additional violation of these terms will cause your license
75
+ to terminate automatically and permanently.
76
+
77
+ ### No Liability
78
+
79
+ As far as the law allows, the software comes as is, without any warranty or
80
+ condition, and the licensor will not be liable to you for any damages arising
81
+ out of these terms or the use or nature of the software, under any kind of
82
+ legal claim.
83
+
84
+ ### Definitions
85
+
86
+ The "licensor" is the entity offering these terms.
87
+
88
+ The "software" is the software the licensor makes available under these terms,
89
+ including any portion of it.
90
+
91
+ "You" refers to the individual or entity agreeing to these terms.
92
+
93
+ "Your company" is any legal entity, sole proprietorship, or other kind of
94
+ organization that you work for, plus all organizations that have control over,
95
+ are under the control of, or are under common control with that organization.
96
+ Control means ownership of substantially all the assets of an entity, or the
97
+ power to direct its management and policies by vote, contract, or otherwise.
98
+ Control can be direct or indirect.
99
+
100
+ "Your license" is the license granted to you for the software under these
101
+ terms.
102
+
103
+ "Use" means anything you do with the software requiring your license.
104
+
105
+ "Trademark" means trademarks, service marks, and similar rights.
@@ -1,3 +1,19 @@
1
+ Metadata-Version: 2.4
2
+ Name: dex-python-sdk
3
+ Version: 0.4.0
4
+ Requires-Dist: grpcio>=1.83.0
5
+ Requires-Dist: grpcio-status>=1.83.0
6
+ Requires-Dist: protobuf>=7.35.1
7
+ License-File: LICENSE
8
+ License-File: LEGACY_NOTICES.md
9
+ Summary: Python SDK for the Dex workflow engine
10
+ Author: Super Durable
11
+ License-Expression: LicenseRef-Sustainable-Use-1.0
12
+ Requires-Python: >=3.11
13
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
14
+ Project-URL: Homepage, https://github.com/superdurable/dex/tree/main/sdk-python
15
+ Project-URL: Repository, https://github.com/superdurable/dex
16
+
1
17
 
2
18
  # Dex SDK for Python
3
19
 
@@ -43,6 +59,29 @@ atomic commit and Channel deletion validation. Attribute locks add isolation
43
59
  only among cooperating Steps and RPCs using the same lock. Write-only publish
44
60
  and delete operations do not require loading.
45
61
 
62
+ ## Step and timeout-handler state loading
63
+
64
+ `StepOptions` provides the same five selections independently for `wait_for` and
65
+ `execute`: all AttributeMap instances, exact AttributeMap instances, Channels,
66
+ all ChannelMap instances, and exact ChannelMap instances. The methods receive
67
+ independent snapshots. Execute reads after the winning Wait consumes messages;
68
+ retries of one logical method call reuse its first snapshot.
69
+
70
+ `FlowTimeoutHandlerOptions` provides Execute-style timeouts, heartbeat detection,
71
+ retry, durability, Attribute locks, and the same state selections. Set it on
72
+ `StartFlowOptions` or `SubFlowOptions` only for a positive timeout using `HANDLER`.
73
+ Exhausted retries may proceed to a registered `Step[None]`; read the final
74
+ failure from `Context.recovery_error`.
75
+
76
+ ```python
77
+ class TimeoutRecoveryStep(Step[None]):
78
+ def execute(self, context: Context, input: None) -> StepDecision:
79
+ failure = context.recovery_error
80
+ if failure is None:
81
+ return force_fail("timeout recovery has no failure")
82
+ return force_fail(failure.detail)
83
+ ```
84
+
46
85
  Python SDK for [Dex workflow engine](https://github.com/superdurable/dex)
47
86
 
48
87
  ## New user contracts
@@ -304,9 +343,11 @@ non-empty user ID; the same Condition instance may appear in multiple
304
343
  combinations.
305
344
 
306
345
  Both `Client` and `AsyncClient` provide singleton and AttributeMap-instance
307
- overloads of `wait_for_attribute_equal`. They target the current run and accept
308
- only string, bool, int, or float wire values. JSON objects, bytes, and null fail
309
- before transport. Every AttributeMap and ChannelMap instance must be non-empty
346
+ overloads of `wait_for_attribute_match`. Build matches with the six
347
+ `AttributeMatch` factories. The method targets the current run and returns the
348
+ decoded matched value. String and bool support equality operators; int and
349
+ float support every operator. JSON objects, bytes, null, non-finite floats, and
350
+ invalid ordering fail before transport. Every AttributeMap and ChannelMap instance must be non-empty
310
351
  and must not contain `/`. `AttributeMap.get_map_size/get_all_instance_keys` include
311
352
  buffered sets and deletes. The matching `ChannelMap` methods are RPC-only,
312
353
  include buffered publishes, and omit empty instances. Keys are decoded and
@@ -499,5 +540,6 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#releases-monorepo-tags) for monorepo ta
499
540
 
500
541
  ## License
501
542
 
502
- [Super Durable Source License 1.0](LICENSE), with legacy portions under their
543
+ [Sustainable Use License 1.0](LICENSE), with legacy portions under their
503
544
  original terms as described in [LEGACY_NOTICES.md](LEGACY_NOTICES.md).
545
+
@@ -1,19 +1,3 @@
1
- Metadata-Version: 2.4
2
- Name: dex-python-sdk
3
- Version: 0.3.1
4
- Requires-Dist: grpcio>=1.83.0
5
- Requires-Dist: grpcio-status>=1.83.0
6
- Requires-Dist: protobuf>=7.35.1
7
- License-File: LICENSE
8
- License-File: LEGACY_NOTICES.md
9
- Summary: Python SDK for the Dex workflow engine
10
- Author: Super Durable
11
- License-Expression: LicenseRef-Super-Durable-1.0
12
- Requires-Python: >=3.11
13
- Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
14
- Project-URL: Homepage, https://github.com/superdurable/dex/tree/main/sdk-python
15
- Project-URL: Repository, https://github.com/superdurable/dex
16
-
17
1
 
18
2
  # Dex SDK for Python
19
3
 
@@ -59,6 +43,29 @@ atomic commit and Channel deletion validation. Attribute locks add isolation
59
43
  only among cooperating Steps and RPCs using the same lock. Write-only publish
60
44
  and delete operations do not require loading.
61
45
 
46
+ ## Step and timeout-handler state loading
47
+
48
+ `StepOptions` provides the same five selections independently for `wait_for` and
49
+ `execute`: all AttributeMap instances, exact AttributeMap instances, Channels,
50
+ all ChannelMap instances, and exact ChannelMap instances. The methods receive
51
+ independent snapshots. Execute reads after the winning Wait consumes messages;
52
+ retries of one logical method call reuse its first snapshot.
53
+
54
+ `FlowTimeoutHandlerOptions` provides Execute-style timeouts, heartbeat detection,
55
+ retry, durability, Attribute locks, and the same state selections. Set it on
56
+ `StartFlowOptions` or `SubFlowOptions` only for a positive timeout using `HANDLER`.
57
+ Exhausted retries may proceed to a registered `Step[None]`; read the final
58
+ failure from `Context.recovery_error`.
59
+
60
+ ```python
61
+ class TimeoutRecoveryStep(Step[None]):
62
+ def execute(self, context: Context, input: None) -> StepDecision:
63
+ failure = context.recovery_error
64
+ if failure is None:
65
+ return force_fail("timeout recovery has no failure")
66
+ return force_fail(failure.detail)
67
+ ```
68
+
62
69
  Python SDK for [Dex workflow engine](https://github.com/superdurable/dex)
63
70
 
64
71
  ## New user contracts
@@ -320,9 +327,11 @@ non-empty user ID; the same Condition instance may appear in multiple
320
327
  combinations.
321
328
 
322
329
  Both `Client` and `AsyncClient` provide singleton and AttributeMap-instance
323
- overloads of `wait_for_attribute_equal`. They target the current run and accept
324
- only string, bool, int, or float wire values. JSON objects, bytes, and null fail
325
- before transport. Every AttributeMap and ChannelMap instance must be non-empty
330
+ overloads of `wait_for_attribute_match`. Build matches with the six
331
+ `AttributeMatch` factories. The method targets the current run and returns the
332
+ decoded matched value. String and bool support equality operators; int and
333
+ float support every operator. JSON objects, bytes, null, non-finite floats, and
334
+ invalid ordering fail before transport. Every AttributeMap and ChannelMap instance must be non-empty
326
335
  and must not contain `/`. `AttributeMap.get_map_size/get_all_instance_keys` include
327
336
  buffered sets and deletes. The matching `ChannelMap` methods are RPC-only,
328
337
  include buffered publishes, and omit empty instances. Keys are decoded and
@@ -515,6 +524,5 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#releases-monorepo-tags) for monorepo ta
515
524
 
516
525
  ## License
517
526
 
518
- [Super Durable Source License 1.0](LICENSE), with legacy portions under their
527
+ [Sustainable Use License 1.0](LICENSE), with legacy portions under their
519
528
  original terms as described in [LEGACY_NOTICES.md](LEGACY_NOTICES.md).
520
-
@@ -4,7 +4,7 @@
4
4
  # Modifications Copyright (c) 2026 Super Durable, Inc.
5
5
  #
6
6
  # Modifications after the Legacy Cutoff are licensed under the
7
- # Super Durable Source License 1.0.
7
+ # Sustainable Use License 1.0.
8
8
  # Legacy Materials remain under their original licenses.
9
9
  # See LICENSE and LEGACY_NOTICES.md.
10
10
 
@@ -19,6 +19,7 @@ from dex.attribute import (
19
19
  AttributeMapLoad,
20
20
  IndexType,
21
21
  )
22
+ from dex.attribute_match import AttributeMatch
22
23
  from dex.blob_cache import BlobCache, BlobCacheConfig, open_blob_cache
23
24
  from dex.channel import Channel, ChannelMap, ChannelMapLoad, ChannelMessage
24
25
  from dex.client import Client
@@ -36,7 +37,7 @@ from dex.codec import (
36
37
  WireKind,
37
38
  )
38
39
  from dex.condition import ConditionCombination
39
- from dex.context import AsyncContext, Context
40
+ from dex.context import AsyncContext, Context, RecoveryErrorInfo
40
41
  from dex.flow import Flow, PersistenceSchema, Registry, RPCResult, rpc
41
42
  from dex.flow_config import ActiveStepSearchMode, FlowConfig
42
43
  from dex.flow_info import (
@@ -122,6 +123,7 @@ __all__ = [
122
123
  "AttributeMap",
123
124
  "AttributeMapLoad",
124
125
  "AttributeMapNotLoadedError",
126
+ "AttributeMatch",
125
127
  "AsyncContext",
126
128
  "AsyncClient",
127
129
  "AsyncBufferedTextStream",
@@ -163,6 +165,7 @@ __all__ = [
163
165
  "LongPollTimeoutError",
164
166
  "PersistenceSchema",
165
167
  "RPCResult",
168
+ "RecoveryErrorInfo",
166
169
  "RetryAfterError",
167
170
  "RpcLockConflictError",
168
171
  "Registry",
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
  from __future__ import annotations
10
10
 
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
  from __future__ import annotations
10
10
 
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
  from __future__ import annotations
10
10
 
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
  from __future__ import annotations
10
10
 
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
  from __future__ import annotations
10
10
 
@@ -17,6 +17,7 @@ from dex._value_mapper import ValueMapper
17
17
  from dex.attribute import Attribute, AttributeMap, _apply_attribute_store_sync
18
18
  from dex.channel import Channel, ChannelMap, ChannelMessage
19
19
  from dex.codec import Codec
20
+ from dex.context import RecoveryErrorInfo
20
21
  from dex.dexpb import dex_pb2 as pb
21
22
  from dex.flow import Registry, _RegisteredFlow
22
23
  from dex.flow_result import FlowResult, flow_result_from_proto
@@ -116,6 +117,15 @@ class InvocationContext:
116
117
  def from_step_execution_id(self) -> str:
117
118
  return self._metadata.from_step_execution_id
118
119
 
120
+ @property
121
+ def recovery_error(self) -> RecoveryErrorInfo | None:
122
+ if not self._metadata.HasField("recovery_error"):
123
+ return None
124
+ return RecoveryErrorInfo(
125
+ detail=self._metadata.recovery_error.detail,
126
+ error_type=self._metadata.recovery_error.error_type,
127
+ )
128
+
119
129
  @property
120
130
  def attempt(self) -> int:
121
131
  return self._metadata.attempt
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
  class NativeBlobCache:
10
10
  def __init__(
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
 
10
10
  def require_name(name: str) -> str:
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
  from __future__ import annotations
10
10
 
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
  from __future__ import annotations
10
10
 
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
  from __future__ import annotations
10
10
 
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2026 Super Durable, Inc.
2
2
  #
3
- # Licensed under the Super Durable Source License 1.0.
3
+ # Licensed under the Sustainable Use License 1.0.
4
4
  # You may not use this file except in compliance with the License.
5
5
  # See the LICENSE file in the repository root.
6
6
  #
7
- # SPDX-License-Identifier: LicenseRef-Super-Durable-1.0
7
+ # SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
8
 
9
9
  from __future__ import annotations
10
10