digitalkin 0.3.2.dev13__py3-none-any.whl → 0.3.2.dev15__py3-none-any.whl
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.
- digitalkin/__version__.py +1 -1
- digitalkin/services/filesystem/default_filesystem.py +1 -1
- digitalkin/services/filesystem/filesystem_strategy.py +4 -2
- digitalkin/services/filesystem/grpc_filesystem.py +8 -2
- {digitalkin-0.3.2.dev13.dist-info → digitalkin-0.3.2.dev15.dist-info}/METADATA +1 -1
- {digitalkin-0.3.2.dev13.dist-info → digitalkin-0.3.2.dev15.dist-info}/RECORD +9 -9
- {digitalkin-0.3.2.dev13.dist-info → digitalkin-0.3.2.dev15.dist-info}/WHEEL +0 -0
- {digitalkin-0.3.2.dev13.dist-info → digitalkin-0.3.2.dev15.dist-info}/licenses/LICENSE +0 -0
- {digitalkin-0.3.2.dev13.dist-info → digitalkin-0.3.2.dev15.dist-info}/top_level.txt +0 -0
digitalkin/__version__.py
CHANGED
|
@@ -212,7 +212,7 @@ class DefaultFilesystem(FilesystemStrategy):
|
|
|
212
212
|
def get_file(
|
|
213
213
|
self,
|
|
214
214
|
file_id: str,
|
|
215
|
-
context:
|
|
215
|
+
context: Literal["mission", "setup"] = "mission", # noqa: ARG002
|
|
216
216
|
*,
|
|
217
217
|
include_content: bool = False,
|
|
218
218
|
) -> FilesystemRecord:
|
|
@@ -33,7 +33,9 @@ class FilesystemRecord(BaseModel):
|
|
|
33
33
|
class FileFilter(BaseModel):
|
|
34
34
|
"""Filter criteria for querying files."""
|
|
35
35
|
|
|
36
|
-
context:
|
|
36
|
+
context: Literal["mission", "setup"] = Field(
|
|
37
|
+
default="mission", description="The context of the files (mission or setup)"
|
|
38
|
+
)
|
|
37
39
|
names: list[str] | None = Field(default=None, description="Filter by file names (exact matches)")
|
|
38
40
|
file_ids: list[str] | None = Field(default=None, description="Filter by file IDs")
|
|
39
41
|
file_types: (
|
|
@@ -131,7 +133,7 @@ class FilesystemStrategy(BaseStrategy, ABC):
|
|
|
131
133
|
def get_file(
|
|
132
134
|
self,
|
|
133
135
|
file_id: str,
|
|
134
|
-
context:
|
|
136
|
+
context: Literal["mission", "setup"] = "mission",
|
|
135
137
|
*,
|
|
136
138
|
include_content: bool = False,
|
|
137
139
|
) -> FilesystemRecord:
|
|
@@ -90,12 +90,19 @@ class GrpcFilesystem(FilesystemStrategy, GrpcClientWrapper, GrpcErrorHandlerMixi
|
|
|
90
90
|
Returns:
|
|
91
91
|
filesystem_pb2.FileFilter: The converted FileFilter proto message
|
|
92
92
|
"""
|
|
93
|
+
context_id = "unknown"
|
|
94
|
+
match filters.context:
|
|
95
|
+
case "setup":
|
|
96
|
+
context_id = self.setup_id
|
|
97
|
+
case "mission":
|
|
98
|
+
context_id = self.mission_id
|
|
93
99
|
return filesystem_pb2.FileFilter(
|
|
94
100
|
**filters.model_dump(exclude={"file_types", "status"}),
|
|
95
101
|
file_types=[self._file_type_to_enum(file_type) for file_type in filters.file_types]
|
|
96
102
|
if filters.file_types
|
|
97
103
|
else None,
|
|
98
104
|
status=self._file_status_to_enum(filters.status) if filters.status else None,
|
|
105
|
+
context=context_id,
|
|
99
106
|
)
|
|
100
107
|
|
|
101
108
|
def __init__(
|
|
@@ -162,7 +169,7 @@ class GrpcFilesystem(FilesystemStrategy, GrpcClientWrapper, GrpcErrorHandlerMixi
|
|
|
162
169
|
def get_file(
|
|
163
170
|
self,
|
|
164
171
|
file_id: str,
|
|
165
|
-
context:
|
|
172
|
+
context: Literal["mission", "setup"] = "mission",
|
|
166
173
|
*,
|
|
167
174
|
include_content: bool = False,
|
|
168
175
|
) -> FilesystemRecord:
|
|
@@ -298,7 +305,6 @@ class GrpcFilesystem(FilesystemStrategy, GrpcClientWrapper, GrpcErrorHandlerMixi
|
|
|
298
305
|
Returns:
|
|
299
306
|
tuple[list[FilesystemRecord], int]: List of files and total count
|
|
300
307
|
"""
|
|
301
|
-
context_id = "unspecified"
|
|
302
308
|
match filters.context:
|
|
303
309
|
case "setup":
|
|
304
310
|
context_id = self.setup_id
|
|
@@ -7,7 +7,7 @@ base_server/mock/__init__.py,sha256=YZFT-F1l_TpvJYuIPX-7kTeE1CfOjhx9YmNRXVoi-jQ,
|
|
|
7
7
|
base_server/mock/mock_pb2.py,sha256=sETakcS3PAAm4E-hTCV1jIVaQTPEAIoVVHupB8Z_k7Y,1843
|
|
8
8
|
base_server/mock/mock_pb2_grpc.py,sha256=BbOT70H6q3laKgkHfOx1QdfmCS_HxCY4wCOX84YAdG4,3180
|
|
9
9
|
digitalkin/__init__.py,sha256=7LLBAba0th-3SGqcpqFO-lopWdUkVLKzLZiMtB-mW3M,162
|
|
10
|
-
digitalkin/__version__.py,sha256=
|
|
10
|
+
digitalkin/__version__.py,sha256=UXz39XjMGBN8ihUTeUoa1hmsph_yYsSHufRaJHP4Fws,196
|
|
11
11
|
digitalkin/logger.py,sha256=8ze_tjt2G6mDTuQcsf7-UTXWP3UHZ7LZVSs_iqF4rX4,4685
|
|
12
12
|
digitalkin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
digitalkin/core/__init__.py,sha256=FJRcJ-B1Viyn-38L8XpOpZ8KOnf1I7PCDOAmKXLQhqc,71
|
|
@@ -88,9 +88,9 @@ digitalkin/services/cost/cost_strategy.py,sha256=MpPX33P_S5b2by6F4zT-rcyeRuh2V4N
|
|
|
88
88
|
digitalkin/services/cost/default_cost.py,sha256=XE7kNFde8NmbulU9m1lc3mi-vHFkbaJf0XHUc0D4UHE,3945
|
|
89
89
|
digitalkin/services/cost/grpc_cost.py,sha256=2xJ3baTNubCnawpbNftTuFVnPpDZPouSrUWe1cVlInE,5272
|
|
90
90
|
digitalkin/services/filesystem/__init__.py,sha256=BhwMl_BUvM0d65fmglkp0SVwn3RfYiUOKJgIMnOCaGM,381
|
|
91
|
-
digitalkin/services/filesystem/default_filesystem.py,sha256=
|
|
92
|
-
digitalkin/services/filesystem/filesystem_strategy.py,sha256=
|
|
93
|
-
digitalkin/services/filesystem/grpc_filesystem.py,sha256=
|
|
91
|
+
digitalkin/services/filesystem/default_filesystem.py,sha256=WQbU-Bsi9r-28VqhKbrplce3otzjSKS-5iqKEpGWdQU,15117
|
|
92
|
+
digitalkin/services/filesystem/filesystem_strategy.py,sha256=zibVLvX_IBQ-kgh-KYzHdszDeiHFPEAZszu_k99x1GQ,9487
|
|
93
|
+
digitalkin/services/filesystem/grpc_filesystem.py,sha256=bdjAagsBedY45v41b-9tJh1UWM62vGN9teSVijHq5rU,12373
|
|
94
94
|
digitalkin/services/identity/__init__.py,sha256=InkeyLgFYYwItx8mePA8HpfacOMWZwwuc0G4pWtKq9s,270
|
|
95
95
|
digitalkin/services/identity/default_identity.py,sha256=Y2auZHrGSZTIN5D8HyjLvLcNbYFM1CNUE23x7p5VIGw,386
|
|
96
96
|
digitalkin/services/identity/identity_strategy.py,sha256=skappBbds1_qa0Gr24FGrNX1N0_OYhYT1Lh7dUaAirE,429
|
|
@@ -122,7 +122,7 @@ digitalkin/utils/dynamic_schema.py,sha256=5-B3dBGlCYYv6uRJkgudtc0ZpBOTYxl0yKedDG
|
|
|
122
122
|
digitalkin/utils/llm_ready_schema.py,sha256=JjMug_lrQllqFoanaC091VgOqwAd-_YzcpqFlS7p778,2375
|
|
123
123
|
digitalkin/utils/package_discover.py,sha256=sa6Zp5Kape1Zr4iYiNrnZxiHDnqM06ODk6yfWHom53w,13465
|
|
124
124
|
digitalkin/utils/schema_splitter.py,sha256=KMvYRHDHlwdhh_c6FJxkWvLStZo9Kbj-jd3pIGPZfxk,9317
|
|
125
|
-
digitalkin-0.3.2.
|
|
125
|
+
digitalkin-0.3.2.dev15.dist-info/licenses/LICENSE,sha256=Ies4HFv2r2hzDRakJYxk3Y60uDFLiG-orIgeTpstnIo,20327
|
|
126
126
|
modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
127
127
|
modules/archetype_with_tools_module.py,sha256=PXTS6IXmC_OjxTmVrL_pYVI0MKwXjD5I1UJO_2xa10Q,7632
|
|
128
128
|
modules/cpu_intensive_module.py,sha256=GZlirQDZdYuXrI46sv1q4RNAHZjL4EptHVQTvgK9zz8,8363
|
|
@@ -137,7 +137,7 @@ monitoring/digitalkin_observability/prometheus.py,sha256=gDmM9ySaVwPAe7Yg84pLxmE
|
|
|
137
137
|
monitoring/tests/test_metrics.py,sha256=ugnYfAwqBPO6zA8z4afKTlyBWECTivacYSN-URQCn2E,5856
|
|
138
138
|
services/filesystem_module.py,sha256=U4dgqtuDadaXz8PJ1d_uQ_1EPncBqudAQCLUICF9yL4,7421
|
|
139
139
|
services/storage_module.py,sha256=Wz2MzLvqs2D_bnBBgtnujYcAKK2V2KFMk8K21RoepSE,6972
|
|
140
|
-
digitalkin-0.3.2.
|
|
141
|
-
digitalkin-0.3.2.
|
|
142
|
-
digitalkin-0.3.2.
|
|
143
|
-
digitalkin-0.3.2.
|
|
140
|
+
digitalkin-0.3.2.dev15.dist-info/METADATA,sha256=XYJQ68LW34K4PFvn5wjmE-b1N8fa0ZI9WVOZWc_4cWs,29725
|
|
141
|
+
digitalkin-0.3.2.dev15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
142
|
+
digitalkin-0.3.2.dev15.dist-info/top_level.txt,sha256=AYVIesKrO0jnedQ-Muog9JBehG81WeTCNeOFoJgwsgE,51
|
|
143
|
+
digitalkin-0.3.2.dev15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|