managed-deepagents 0.9.3.dev11__py3-none-win_amd64.whl → 0.9.3.dev13__py3-none-win_amd64.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.
- managed_deepagents/_binaries/mda.exe +0 -0
- managed_deepagents/_schedule_auth.py +23 -2
- {managed_deepagents-0.9.3.dev11.dist-info → managed_deepagents-0.9.3.dev13.dist-info}/METADATA +1 -1
- {managed_deepagents-0.9.3.dev11.dist-info → managed_deepagents-0.9.3.dev13.dist-info}/RECORD +8 -8
- {managed_deepagents-0.9.3.dev11.dist-info → managed_deepagents-0.9.3.dev13.dist-info}/WHEEL +0 -0
- {managed_deepagents-0.9.3.dev11.dist-info → managed_deepagents-0.9.3.dev13.dist-info}/entry_points.txt +0 -0
- {managed_deepagents-0.9.3.dev11.dist-info → managed_deepagents-0.9.3.dev13.dist-info}/licenses/LICENSE +0 -0
- {managed_deepagents-0.9.3.dev11.dist-info → managed_deepagents-0.9.3.dev13.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
@@ -183,7 +183,7 @@ async def authorize_schedule( # noqa: C901 - one branch per cron event check
|
|
|
183
183
|
metadata = data.get("metadata")
|
|
184
184
|
payload = data.get("payload")
|
|
185
185
|
if access is None:
|
|
186
|
-
if not is_studio_auth_user(user):
|
|
186
|
+
if not (is_studio_auth_user(user) or _is_local_dev_operator(user)):
|
|
187
187
|
raise ValueError("Schedule access is not permitted")
|
|
188
188
|
await _authorize_deploy_schedule(action, data)
|
|
189
189
|
return None
|
|
@@ -219,10 +219,31 @@ async def authorize_schedule( # noqa: C901 - one branch per cron event check
|
|
|
219
219
|
return filters
|
|
220
220
|
|
|
221
221
|
|
|
222
|
+
_LOCAL_DEV_ENV = "MDA_LOCAL_DEV"
|
|
223
|
+
_LOCAL_DEV_USER = "mda:local-dev"
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def _is_local_dev_operator(user: object) -> bool:
|
|
227
|
+
"""The ``mda dev`` operator, which provisions ``schedules/`` locally.
|
|
228
|
+
|
|
229
|
+
Local builds turn the Studio auth scheme off, so ``mda dev`` reconciles
|
|
230
|
+
deploy-managed crons as ``mda:local-dev`` instead of as Studio, over the
|
|
231
|
+
handoff secret it staged. Only that verified caller counts: a request
|
|
232
|
+
without a valid secret falls back to a synthetic local *service* principal
|
|
233
|
+
whose id the client chose, so service principals are refused. Deploy never
|
|
234
|
+
sets ``MDA_LOCAL_DEV``.
|
|
235
|
+
"""
|
|
236
|
+
return (
|
|
237
|
+
os.environ.get(_LOCAL_DEV_ENV) == "1"
|
|
238
|
+
and _field(user, "mda_user_id") == _LOCAL_DEV_USER
|
|
239
|
+
and _field(user, "mda_user_kind") != "service"
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
|
|
222
243
|
async def _authorize_deploy_schedule(action: str, data: dict[str, object]) -> None:
|
|
223
244
|
# Studio identity is reachable by any workspace API key: allow only a deploy-managed
|
|
224
245
|
# create (stamped below), never an update, and leave read/search/delete unscoped so
|
|
225
|
-
# `mda deploy` can still list and tear down managed crons.
|
|
246
|
+
# `mda deploy` (and `mda dev` locally) can still list and tear down managed crons.
|
|
226
247
|
if action == "update":
|
|
227
248
|
raise ValueError("Schedule access is not permitted")
|
|
228
249
|
if action != "create":
|
{managed_deepagents-0.9.3.dev11.dist-info → managed_deepagents-0.9.3.dev13.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: managed-deepagents
|
|
3
|
-
Version: 0.9.3.
|
|
3
|
+
Version: 0.9.3.dev13
|
|
4
4
|
Summary: Managed Deep Agents — the define_deep_agent authoring interface plus the CLI that compiles and deploys a code-first Deep Agent repository to a managed LangGraph runtime.
|
|
5
5
|
Author: LangChain
|
|
6
6
|
License: MIT
|
{managed_deepagents-0.9.3.dev11.dist-info → managed_deepagents-0.9.3.dev13.dist-info}/RECORD
RENAMED
|
@@ -26,7 +26,7 @@ managed_deepagents/_memory_instructions.py,sha256=s69Shu6vGCXbynozC-SRSJeZrpH5PN
|
|
|
26
26
|
managed_deepagents/_run_input.py,sha256=heaTTLd9i9D-1blrH-GIi5KmSpQrhrD9_mrtz9bhy48,6613
|
|
27
27
|
managed_deepagents/_runtime_schedules.py,sha256=DG40VLIyDodKI0SpE8xf0-BvlkbsCLKsQQEUGxrOaD0,25241
|
|
28
28
|
managed_deepagents/_sandbox_proxy.py,sha256=h8EOnBD6F_jH_7ESsO-EzEUDuEPQNorUrIEV1LZASdQ,9567
|
|
29
|
-
managed_deepagents/_schedule_auth.py,sha256=
|
|
29
|
+
managed_deepagents/_schedule_auth.py,sha256=wxSTqmkQ_UrM4xPcbhdBO0Mvt_QfD8vcTC0-0tpNd8g,14578
|
|
30
30
|
managed_deepagents/_schedule_channel.py,sha256=P--isfzDBxJ4C2smFS-uuM3A5IwHn9byJxxVXgWDseo,998
|
|
31
31
|
managed_deepagents/_schedule_time.py,sha256=uNyULRjoD0HzPVvV-W772HPb3BYCt0fwEbbT9Ec__Jc,3710
|
|
32
32
|
managed_deepagents/_static_entry.py,sha256=vWVDXb_RwFhHIT4c8fJpUaCqxS_SAJ9Md5IKA8GDrv4,624
|
|
@@ -40,7 +40,7 @@ managed_deepagents/run_context.py,sha256=1Nc3pew_nROgKi18PAKhn7vOAed-PmxArqUTpce
|
|
|
40
40
|
managed_deepagents/runtime.py,sha256=88QmwIzEVCyq4p2BWOmw20xJJLSyemfbPneVfNnx7C0,95214
|
|
41
41
|
managed_deepagents/sandbox.py,sha256=8qaswX6F2LYJX1uGq_7XwAGHZjGOD9VQ0WISqPK_ohs,4734
|
|
42
42
|
managed_deepagents/schedules.py,sha256=XROsDs-QwCWH0yEwakIN5Rhl5aM06eZX5-JFJ-KG1To,5898
|
|
43
|
-
managed_deepagents/_binaries/mda.exe,sha256=
|
|
43
|
+
managed_deepagents/_binaries/mda.exe,sha256=X5vcYX1jshG9fTIIVUSNHFbKJ4qbVNZ5WMPo8y1G2cw,4537856
|
|
44
44
|
managed_deepagents/_channels/__init__.py,sha256=tY94zltWKNw-FIzbGjrh0cSAc2JIHCEAvcY7hzoRED0,801
|
|
45
45
|
managed_deepagents/_channels/assistant_text.py,sha256=ZLYAF1MQVE5_EN49MoPJdB8Ckf3vNPpXNBhkdA4egF0,3414
|
|
46
46
|
managed_deepagents/_channels/binding.py,sha256=DnxB7FXkbY5B3PCEAGz3JJBCCnQSdWz8PU8ze4fdcZU,5302
|
|
@@ -102,9 +102,9 @@ managed_deepagents/identity/__init__.py,sha256=YMB5p2DRyyY_82gGNVfGHjfjnUFRTtMne
|
|
|
102
102
|
managed_deepagents/identity/claims.py,sha256=prby7r_8Lww3MmoBm8PX6PsSGE3GwSHkr8mVIz_08nU,1180
|
|
103
103
|
managed_deepagents/identity/options.py,sha256=x_yMbXEFR7zXyehEjDHG2qjAlukXjrRBcQLcM6IndLM,2550
|
|
104
104
|
managed_deepagents/identity/supabase.py,sha256=8uobl3WCrQL_ieSXG8KTLf1th7Qjim9liZT50HeaJE0,6026
|
|
105
|
-
managed_deepagents-0.9.3.
|
|
106
|
-
managed_deepagents-0.9.3.
|
|
107
|
-
managed_deepagents-0.9.3.
|
|
108
|
-
managed_deepagents-0.9.3.
|
|
109
|
-
managed_deepagents-0.9.3.
|
|
110
|
-
managed_deepagents-0.9.3.
|
|
105
|
+
managed_deepagents-0.9.3.dev13.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
|
|
106
|
+
managed_deepagents-0.9.3.dev13.dist-info/METADATA,sha256=tDG2qD7cw4sHEsMWFyHcMg6RaPmnwcxuE4j5q36DwOI,33510
|
|
107
|
+
managed_deepagents-0.9.3.dev13.dist-info/WHEEL,sha256=3I5VVWZdsFlU417aCS2bMRuerS8wsfvBq99MyatBV3A,97
|
|
108
|
+
managed_deepagents-0.9.3.dev13.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
|
|
109
|
+
managed_deepagents-0.9.3.dev13.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
|
|
110
|
+
managed_deepagents-0.9.3.dev13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{managed_deepagents-0.9.3.dev11.dist-info → managed_deepagents-0.9.3.dev13.dist-info}/top_level.txt
RENAMED
|
File without changes
|