managed-deepagents 0.10.3.dev5__py3-none-win_amd64.whl → 0.10.3.dev7__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 +16 -6
- {managed_deepagents-0.10.3.dev5.dist-info → managed_deepagents-0.10.3.dev7.dist-info}/METADATA +1 -1
- {managed_deepagents-0.10.3.dev5.dist-info → managed_deepagents-0.10.3.dev7.dist-info}/RECORD +8 -8
- {managed_deepagents-0.10.3.dev5.dist-info → managed_deepagents-0.10.3.dev7.dist-info}/WHEEL +0 -0
- {managed_deepagents-0.10.3.dev5.dist-info → managed_deepagents-0.10.3.dev7.dist-info}/entry_points.txt +0 -0
- {managed_deepagents-0.10.3.dev5.dist-info → managed_deepagents-0.10.3.dev7.dist-info}/licenses/LICENSE +0 -0
- {managed_deepagents-0.10.3.dev5.dist-info → managed_deepagents-0.10.3.dev7.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
@@ -375,9 +375,14 @@ async def authorize_schedule( # noqa: C901 - one branch per cron event check
|
|
|
375
375
|
metadata = data.get("metadata")
|
|
376
376
|
payload = data.get("payload")
|
|
377
377
|
if access is None:
|
|
378
|
-
|
|
378
|
+
from managed_deepagents._identity_auth import is_local_dev_unscoped_user # noqa: PLC0415
|
|
379
|
+
|
|
380
|
+
operator = is_studio_auth_user(user) or _is_local_dev_operator(user)
|
|
381
|
+
if not (operator or is_local_dev_unscoped_user(user)):
|
|
379
382
|
raise ValueError("Schedule access is not permitted")
|
|
380
|
-
|
|
383
|
+
if action == "delete" and not operator:
|
|
384
|
+
return {"mda_managed_by": "api"}
|
|
385
|
+
return await _authorize_studio_schedule(action, data, deploy=operator)
|
|
381
386
|
filters = {"mda_schedule_owner": access["owner"], "mda_schedule_assistant": access["assistant"]}
|
|
382
387
|
if action in {"update", "delete"}:
|
|
383
388
|
filters["mda_managed_by"] = "runtime"
|
|
@@ -476,11 +481,13 @@ def _is_local_dev_operator(user: object) -> bool:
|
|
|
476
481
|
)
|
|
477
482
|
|
|
478
483
|
|
|
479
|
-
async def _authorize_studio_schedule(
|
|
484
|
+
async def _authorize_studio_schedule(
|
|
485
|
+
action: str, data: dict[str, object], *, deploy: bool
|
|
486
|
+
) -> FilterType | None:
|
|
480
487
|
# Studio identity is reachable by any workspace API key. It may create a deploy-managed
|
|
481
488
|
# cron or an untagged one, which is stamped "api" and is the only kind it may update.
|
|
482
|
-
# Read/search
|
|
483
|
-
# list and tear down managed crons.
|
|
489
|
+
# Read/search stay unscoped, and delete too for the operator, so `mda deploy` (and
|
|
490
|
+
# `mda dev` locally) can still list and tear down managed crons.
|
|
484
491
|
if action == "update":
|
|
485
492
|
return _authorize_api_schedule_update(data)
|
|
486
493
|
if action != "create":
|
|
@@ -496,8 +503,11 @@ async def _authorize_studio_schedule(action: str, data: dict[str, object]) -> Fi
|
|
|
496
503
|
):
|
|
497
504
|
raise ValueError("Schedule access is not permitted")
|
|
498
505
|
api = not any(map(is_managed_key, metadata))
|
|
506
|
+
# Plain `mda dev` callers get API crons only; `schedules/` stays the operator's.
|
|
499
507
|
if not api and (
|
|
500
|
-
|
|
508
|
+
not deploy
|
|
509
|
+
or metadata.get("mda_managed") is not True
|
|
510
|
+
or metadata.get("mda_managed_by") != "deploy"
|
|
501
511
|
):
|
|
502
512
|
raise ValueError("Schedule access is not permitted")
|
|
503
513
|
assistant = payload["assistant_id"]
|
{managed_deepagents-0.10.3.dev5.dist-info → managed_deepagents-0.10.3.dev7.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: managed-deepagents
|
|
3
|
-
Version: 0.10.3.
|
|
3
|
+
Version: 0.10.3.dev7
|
|
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.10.3.dev5.dist-info → managed_deepagents-0.10.3.dev7.dist-info}/RECORD
RENAMED
|
@@ -35,7 +35,7 @@ managed_deepagents/_run_input.py,sha256=VdIysM5tIFx8Fjmbr3dkNIHYovcHmSC-wtwRuqYo
|
|
|
35
35
|
managed_deepagents/_run_local.py,sha256=pKGh_JKUW8RaTFy9EpBor893KCjBV2cCJZzsiBCeaWA,2852
|
|
36
36
|
managed_deepagents/_runtime_schedules.py,sha256=EDYtFxpbj4jZjV5-1mgWZn598g86NsgvsC_pEa2rGKk,30377
|
|
37
37
|
managed_deepagents/_sandbox_proxy.py,sha256=AFrcC07nTHaAQhGCDttncv3SkGL5h1JBcfxv7Psgn6c,9835
|
|
38
|
-
managed_deepagents/_schedule_auth.py,sha256=
|
|
38
|
+
managed_deepagents/_schedule_auth.py,sha256=m8QB-d8AL4eIsdeK_brJ5Mm4qZHP8NxaZwluYXvQZQg,26918
|
|
39
39
|
managed_deepagents/_schedule_channel.py,sha256=r0EWl4OrBJRnwKETHjKdScYIfdi0lrUEGdajX6FGIdQ,1109
|
|
40
40
|
managed_deepagents/_schedule_time.py,sha256=uNyULRjoD0HzPVvV-W772HPb3BYCt0fwEbbT9Ec__Jc,3710
|
|
41
41
|
managed_deepagents/_static_entry.py,sha256=QgvrnBLue6elOHSWdIFosFEfYMp4V9YDwBlZSe_NyQA,635
|
|
@@ -53,7 +53,7 @@ managed_deepagents/run_context.py,sha256=IayZdcpPrKVss70Hro8qI-EWtL94HZt4JKefzec
|
|
|
53
53
|
managed_deepagents/runtime.py,sha256=M5-XlwkTfWV6Gyl4w9vClFFF0GvOWZEc6-_wPyxn5W0,136847
|
|
54
54
|
managed_deepagents/sandbox.py,sha256=cS66-vFcARsbHR3fH5jvWd4qF-MAjiGqRe-_Kocsqtg,4693
|
|
55
55
|
managed_deepagents/schedules.py,sha256=z_OlmZ7hW7LdvWLem-BiA131nHwFvUDSW_0-ObzU_G4,6039
|
|
56
|
-
managed_deepagents/_binaries/mda.exe,sha256=
|
|
56
|
+
managed_deepagents/_binaries/mda.exe,sha256=iQZx-XUnXGHdAGpbrGcyn2jCgKEC7nSKjNtv1iabQUU,5157888
|
|
57
57
|
managed_deepagents/_channels/__init__.py,sha256=mMgqza7EWRjhJM0lXlFd-W6wBYZrFkpLQ4_30Bpij7k,249
|
|
58
58
|
managed_deepagents/_channels/actor.py,sha256=3d_1-ia6vwVjXkw7PYn5gg6BjnlPwRXW4nW2C5vAO7c,5203
|
|
59
59
|
managed_deepagents/_channels/assistant_text.py,sha256=nf00-KJXNev-e_TkAK_8SBI3J9TiOis1GkGV_zT5048,8472
|
|
@@ -156,9 +156,9 @@ managed_deepagents/identity/__init__.py,sha256=uZUKDHtfBc0n-T2xoJEFMqMplmXwAK7hb
|
|
|
156
156
|
managed_deepagents/identity/claims.py,sha256=prby7r_8Lww3MmoBm8PX6PsSGE3GwSHkr8mVIz_08nU,1180
|
|
157
157
|
managed_deepagents/identity/options.py,sha256=x_yMbXEFR7zXyehEjDHG2qjAlukXjrRBcQLcM6IndLM,2550
|
|
158
158
|
managed_deepagents/identity/supabase.py,sha256=8uobl3WCrQL_ieSXG8KTLf1th7Qjim9liZT50HeaJE0,6026
|
|
159
|
-
managed_deepagents-0.10.3.
|
|
160
|
-
managed_deepagents-0.10.3.
|
|
161
|
-
managed_deepagents-0.10.3.
|
|
162
|
-
managed_deepagents-0.10.3.
|
|
163
|
-
managed_deepagents-0.10.3.
|
|
164
|
-
managed_deepagents-0.10.3.
|
|
159
|
+
managed_deepagents-0.10.3.dev7.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
|
|
160
|
+
managed_deepagents-0.10.3.dev7.dist-info/METADATA,sha256=DaesUoVTSNkE_pijLrvuX5z_XofDpNGXy2zclioNCfc,95067
|
|
161
|
+
managed_deepagents-0.10.3.dev7.dist-info/WHEEL,sha256=bhMFZwp6VMtrbl2Ck6PlXryKaCggO1NzYn_HcFbBF1I,97
|
|
162
|
+
managed_deepagents-0.10.3.dev7.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
|
|
163
|
+
managed_deepagents-0.10.3.dev7.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
|
|
164
|
+
managed_deepagents-0.10.3.dev7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{managed_deepagents-0.10.3.dev5.dist-info → managed_deepagents-0.10.3.dev7.dist-info}/top_level.txt
RENAMED
|
File without changes
|