fleet-python 0.2.122__tar.gz → 0.2.123__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.122/fleet_python.egg-info → fleet_python-0.2.123}/PKG-INFO +1 -1
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/cli.py +9 -2
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/daemon.py +15 -1
- {fleet_python-0.2.122 → fleet_python-0.2.123/fleet_python.egg-info}/PKG-INFO +1 -1
- {fleet_python-0.2.122 → fleet_python-0.2.123}/pyproject.toml +1 -1
- {fleet_python-0.2.122 → fleet_python-0.2.123}/LICENSE +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/README.md +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/diff_example.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/dsl_example.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/example.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/exampleResume.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/example_account.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/example_action_log.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/example_client.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/example_mcp_anthropic.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/example_mcp_openai.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/example_sync.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/example_task.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/example_tasks.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/example_verifier.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/export_tasks.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/fetch_tasks.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/gemini_example.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/import_tasks.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/iterate_verifiers.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/json_tasks_example.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/nova_act_example.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/openai_example.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/openai_simple_example.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/query_builder_example.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/quickstart.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/task_bundle_editing/download_task.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/task_bundle_editing/launch_job.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/task_bundle_editing/upload_task.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/task_bundle_editing/validate_task.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/examples/test_cdp_logging.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/base.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/client.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/env/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/env/client.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/exceptions.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/global_client.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/instance/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/instance/base.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/instance/client.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/models.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/resources/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/resources/api.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/resources/base.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/resources/browser.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/resources/mcp.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/resources/sqlite.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/tasks.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/verifiers/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/verifiers/bundler.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_async/verifiers/verifier.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/_supabase.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/gemini_cua/Dockerfile +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/gemini_cua/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/gemini_cua/agent.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/gemini_cua/mcp/main.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/gemini_cua/mcp_server/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/gemini_cua/mcp_server/main.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/gemini_cua/mcp_server/tools.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/gemini_cua/requirements.txt +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/gemini_cua/start.sh +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/orchestrator.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/types.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/agent/utils.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/auth.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/base.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/cli.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/client.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/config.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/env/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/env/client.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/eval/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/eval/uploader.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/exceptions.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/global_client.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/instance/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/instance/base.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/instance/client.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/instance/models.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/models.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/proxy/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/proxy/proxy.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/proxy/whitelist.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/resources/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/resources/api.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/resources/base.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/resources/browser.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/resources/mcp.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/resources/sqlite.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/tasks.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/api.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/install.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/merkle.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/queue.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/scrubber.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/sources.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/status.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/uploader.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/track/watcher.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/types.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/utils/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/utils/http_logging.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/utils/logging.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/utils/playwright.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/verifiers/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/verifiers/bundler.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/verifiers/code.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/verifiers/db.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/verifiers/decorator.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/verifiers/parse.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/verifiers/sql_differ.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet/verifiers/verifier.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet_python.egg-info/SOURCES.txt +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet_python.egg-info/dependency_links.txt +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet_python.egg-info/entry_points.txt +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet_python.egg-info/requires.txt +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/fleet_python.egg-info/top_level.txt +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/scripts/fix_sync_imports.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/scripts/unasync.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/setup.cfg +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/tests/__init__.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/tests/test_app_method.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/tests/test_expect_exactly.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/tests/test_expect_only.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/tests/test_instance_dispatch.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/tests/test_sqlite_resource_dual_mode.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/tests/test_sqlite_shared_memory_behavior.py +0 -0
- {fleet_python-0.2.122 → fleet_python-0.2.123}/tests/test_verifier_from_string.py +0 -0
|
@@ -10,6 +10,7 @@ import typer
|
|
|
10
10
|
from rich.console import Console
|
|
11
11
|
from rich.table import Table
|
|
12
12
|
|
|
13
|
+
from ..auth import load_credentials
|
|
13
14
|
from .api import TrackAPIClient, TrackAPIError
|
|
14
15
|
from .daemon import main as daemon_main
|
|
15
16
|
from .install import install, is_installed, uninstall
|
|
@@ -55,10 +56,16 @@ def enable() -> None:
|
|
|
55
56
|
try:
|
|
56
57
|
api = TrackAPIClient()
|
|
57
58
|
result = api.provision(device_id)
|
|
58
|
-
config["s3_prefix"] = result.get("s3_prefix", "")
|
|
59
|
-
config["s3_bucket"] = result.get("s3_bucket", "fleet-track-sessions")
|
|
60
59
|
config["team_id"] = result.get("team_id", "")
|
|
61
60
|
config["user_id"] = result.get("user_id", "")
|
|
61
|
+
# Pull email + team_name from stored credentials so the daemon can
|
|
62
|
+
# embed them in manifest.json for device → user association.
|
|
63
|
+
creds = load_credentials() or {}
|
|
64
|
+
config["email"] = creds.get("email", "")
|
|
65
|
+
config["team_name"] = creds.get("team_name", "")
|
|
66
|
+
import platform, socket
|
|
67
|
+
config["hostname"] = socket.gethostname()
|
|
68
|
+
config["platform"] = platform.system().lower()
|
|
62
69
|
CONFIG_FILE.write_text(json.dumps(config, indent=2))
|
|
63
70
|
except TrackAPIError as e:
|
|
64
71
|
console.print(f"[red]Provision failed:[/red] {e}")
|
|
@@ -92,6 +92,7 @@ class Daemon:
|
|
|
92
92
|
self._bytes_uploaded = 0
|
|
93
93
|
self._run_id = str(uuid.uuid4())[:8]
|
|
94
94
|
self._device_id: str = ""
|
|
95
|
+
self._identity: dict = {}
|
|
95
96
|
# confirmed_map: path → sha256 for every file we KNOW is on S3.
|
|
96
97
|
# Populated from the remote manifest at startup and updated only on
|
|
97
98
|
# successful upload callbacks. Used to build an honest manifest.json.
|
|
@@ -108,6 +109,15 @@ class Daemon:
|
|
|
108
109
|
write_pid()
|
|
109
110
|
cfg = _load_config()
|
|
110
111
|
self._device_id = cfg["device_id"]
|
|
112
|
+
self._identity = {
|
|
113
|
+
"user_id": cfg.get("user_id", ""),
|
|
114
|
+
"email": cfg.get("email", ""),
|
|
115
|
+
"team_id": cfg.get("team_id", ""),
|
|
116
|
+
"team_name": cfg.get("team_name", ""),
|
|
117
|
+
"device_id": self._device_id,
|
|
118
|
+
"hostname": cfg.get("hostname", ""),
|
|
119
|
+
"platform": cfg.get("platform", ""),
|
|
120
|
+
}
|
|
111
121
|
log.info("daemon starting run_id=%s pid=%s device=%s", self._run_id, os.getpid(), self._device_id)
|
|
112
122
|
|
|
113
123
|
signal.signal(signal.SIGTERM, self._handle_sigterm)
|
|
@@ -247,7 +257,11 @@ class Daemon:
|
|
|
247
257
|
confirmed = dict(self._confirmed_map)
|
|
248
258
|
|
|
249
259
|
root = MerkleTree.compute_root(confirmed)
|
|
250
|
-
manifest = json.dumps({
|
|
260
|
+
manifest = json.dumps({
|
|
261
|
+
"root_hash": root,
|
|
262
|
+
**self._identity,
|
|
263
|
+
"files": confirmed,
|
|
264
|
+
}, separators=(",", ":"))
|
|
251
265
|
try:
|
|
252
266
|
url_map = self._api.get_upload_urls(self._device_id, ["manifest.json"])
|
|
253
267
|
url = url_map.get("manifest.json")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|