fleet-python 0.2.103__tar.gz → 0.2.104__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.
- {fleet_python-0.2.103/fleet_python.egg-info → fleet_python-0.2.104}/PKG-INFO +1 -1
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/tasks.py +12 -4
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/gemini_cua/agent.py +377 -159
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/tasks.py +4 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104/fleet_python.egg-info}/PKG-INFO +1 -1
- {fleet_python-0.2.103 → fleet_python-0.2.104}/pyproject.toml +1 -1
- {fleet_python-0.2.103 → fleet_python-0.2.104}/LICENSE +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/README.md +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/diff_example.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/dsl_example.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/example.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/exampleResume.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/example_account.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/example_action_log.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/example_client.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/example_mcp_anthropic.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/example_mcp_openai.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/example_sync.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/example_task.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/example_tasks.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/example_verifier.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/export_tasks.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/export_tasks_filtered.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/fetch_tasks.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/gemini_example.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/import_tasks.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/iterate_verifiers.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/json_tasks_example.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/nova_act_example.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/openai_example.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/openai_simple_example.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/query_builder_example.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/quickstart.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/examples/test_cdp_logging.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/base.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/client.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/env/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/env/client.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/exceptions.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/global_client.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/instance/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/instance/base.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/instance/client.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/models.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/resources/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/resources/api.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/resources/base.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/resources/browser.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/resources/mcp.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/resources/sqlite.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/verifiers/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/verifiers/bundler.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/_async/verifiers/verifier.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/gemini_cua/Dockerfile +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/gemini_cua/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/gemini_cua/mcp/main.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/gemini_cua/mcp_server/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/gemini_cua/mcp_server/main.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/gemini_cua/mcp_server/tools.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/gemini_cua/requirements.txt +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/gemini_cua/start.sh +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/orchestrator.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/types.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/agent/utils.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/base.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/cli.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/client.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/config.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/env/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/env/client.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/eval/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/eval/uploader.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/exceptions.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/global_client.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/instance/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/instance/base.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/instance/client.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/instance/models.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/models.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/proxy/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/proxy/proxy.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/proxy/whitelist.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/resources/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/resources/api.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/resources/base.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/resources/browser.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/resources/mcp.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/resources/sqlite.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/types.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/utils/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/utils/http_logging.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/utils/logging.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/utils/playwright.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/verifiers/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/verifiers/bundler.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/verifiers/code.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/verifiers/db.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/verifiers/decorator.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/verifiers/parse.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/verifiers/sql_differ.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet/verifiers/verifier.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet_python.egg-info/SOURCES.txt +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet_python.egg-info/dependency_links.txt +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet_python.egg-info/entry_points.txt +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet_python.egg-info/requires.txt +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/fleet_python.egg-info/top_level.txt +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/scripts/fix_sync_imports.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/scripts/unasync.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/setup.cfg +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/tests/__init__.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/tests/test_app_method.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/tests/test_expect_exactly.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/tests/test_expect_only.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/tests/test_instance_dispatch.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/tests/test_sqlite_resource_dual_mode.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/tests/test_sqlite_shared_memory_behavior.py +0 -0
- {fleet_python-0.2.103 → fleet_python-0.2.104}/tests/test_verifier_from_string.py +0 -0
|
@@ -346,8 +346,9 @@ def verifier_from_string(
|
|
|
346
346
|
return False
|
|
347
347
|
return target in numbers
|
|
348
348
|
|
|
349
|
-
# Create a
|
|
350
|
-
|
|
349
|
+
# Create a globals namespace with all required imports
|
|
350
|
+
exec_globals = globals().copy()
|
|
351
|
+
exec_globals.update({
|
|
351
352
|
"TASK_SUCCESSFUL_SCORE": TASK_SUCCESSFUL_SCORE,
|
|
352
353
|
"TASK_FAILED_SCORE": TASK_FAILED_SCORE,
|
|
353
354
|
"IgnoreConfig": IgnoreConfig,
|
|
@@ -358,10 +359,17 @@ def verifier_from_string(
|
|
|
358
359
|
"json": json,
|
|
359
360
|
"re": re,
|
|
360
361
|
"string": string,
|
|
361
|
-
}
|
|
362
|
+
})
|
|
363
|
+
|
|
364
|
+
# Create a local namespace for executing the code
|
|
365
|
+
local_namespace = {}
|
|
362
366
|
|
|
363
367
|
# Execute the cleaned verifier code in the namespace
|
|
364
|
-
exec(cleaned_code,
|
|
368
|
+
exec(cleaned_code, exec_globals, local_namespace)
|
|
369
|
+
|
|
370
|
+
# Merge local_namespace into exec_globals so helper functions are accessible
|
|
371
|
+
# from the main verifier function when it's called
|
|
372
|
+
exec_globals.update(local_namespace)
|
|
365
373
|
|
|
366
374
|
# Find the function that was defined (not imported)
|
|
367
375
|
# Functions defined via exec have co_filename == '<string>'
|