drift-ml 0.2.6__tar.gz → 0.2.7__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.
- {drift_ml-0.2.6/drift_ml.egg-info → drift_ml-0.2.7}/PKG-INFO +1 -1
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/engine_launcher.py +19 -1
- {drift_ml-0.2.6 → drift_ml-0.2.7/drift_ml.egg-info}/PKG-INFO +1 -1
- {drift_ml-0.2.6 → drift_ml-0.2.7}/pyproject.toml +1 -1
- {drift_ml-0.2.6 → drift_ml-0.2.7}/LICENSE +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/README.md +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/__init__.py +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/__main__.py +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/cli/__init__.py +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/cli/client.py +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/cli/repl.py +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/cli/session.py +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/llm_adapters/__init__.py +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/llm_adapters/base.py +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/llm_adapters/gemini_cli.py +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift/llm_adapters/local_llm.py +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift_ml.egg-info/SOURCES.txt +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift_ml.egg-info/dependency_links.txt +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift_ml.egg-info/entry_points.txt +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift_ml.egg-info/requires.txt +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/drift_ml.egg-info/top_level.txt +0 -0
- {drift_ml-0.2.6 → drift_ml-0.2.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: drift-ml
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: drift — terminal-first, chat-based AutoML. Open source. No tokens. No auth.
|
|
5
5
|
Project-URL: Homepage, https://github.com/lakshitsachdeva/intent2model
|
|
6
6
|
Project-URL: Repository, https://github.com/lakshitsachdeva/intent2model
|
|
@@ -16,7 +16,7 @@ except ImportError:
|
|
|
16
16
|
requests = None
|
|
17
17
|
|
|
18
18
|
GITHUB_REPO = "lakshitsachdeva/intent2model" # Engine binaries (same repo)
|
|
19
|
-
ENGINE_TAG = "v0.2.
|
|
19
|
+
ENGINE_TAG = "v0.2.7" # Pinned — direct URL, no API, no rate limits
|
|
20
20
|
ENGINE_PORT = os.environ.get("DRIFT_ENGINE_PORT", "8000")
|
|
21
21
|
HEALTH_URL = f"http://127.0.0.1:{ENGINE_PORT}/health"
|
|
22
22
|
|
|
@@ -119,6 +119,20 @@ def ensure_engine() -> bool:
|
|
|
119
119
|
|
|
120
120
|
bin_dir.mkdir(parents=True, exist_ok=True)
|
|
121
121
|
|
|
122
|
+
# Re-download if engine tag changed (e.g. after pipx upgrade)
|
|
123
|
+
version_file = bin_dir / ".engine-tag"
|
|
124
|
+
if bin_path.exists() and version_file.exists():
|
|
125
|
+
try:
|
|
126
|
+
if version_file.read_text().strip() != ENGINE_TAG:
|
|
127
|
+
bin_path.unlink()
|
|
128
|
+
except Exception:
|
|
129
|
+
pass
|
|
130
|
+
if bin_path.exists() and not version_file.exists():
|
|
131
|
+
try:
|
|
132
|
+
bin_path.unlink()
|
|
133
|
+
except Exception:
|
|
134
|
+
pass
|
|
135
|
+
|
|
122
136
|
if not bin_path.exists():
|
|
123
137
|
plat, arch = _get_platform_key()
|
|
124
138
|
ext = ".exe" if platform.system() == "Windows" else ""
|
|
@@ -127,6 +141,10 @@ def ensure_engine() -> bool:
|
|
|
127
141
|
try:
|
|
128
142
|
url = _get_asset_url(asset)
|
|
129
143
|
_download_file(url, bin_path)
|
|
144
|
+
try:
|
|
145
|
+
version_file.write_text(ENGINE_TAG)
|
|
146
|
+
except Exception:
|
|
147
|
+
pass
|
|
130
148
|
except Exception as e:
|
|
131
149
|
print(f"drift: Download failed: {e}", file=sys.stderr)
|
|
132
150
|
print(f"drift: Run: mkdir -p ~/.drift/bin && curl -L -o ~/.drift/bin/{asset} <url>", file=sys.stderr)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: drift-ml
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: drift — terminal-first, chat-based AutoML. Open source. No tokens. No auth.
|
|
5
5
|
Project-URL: Homepage, https://github.com/lakshitsachdeva/intent2model
|
|
6
6
|
Project-URL: Repository, https://github.com/lakshitsachdeva/intent2model
|
|
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
|