@melaya/runner 1.0.35 → 1.0.36
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.
- package/dist/pythonEnv.js +15 -0
- package/package.json +1 -1
package/dist/pythonEnv.js
CHANGED
|
@@ -30,6 +30,17 @@ const AGENTSCOPE = join(CACHE_DIR, "agentscope");
|
|
|
30
30
|
// PLUS the runner-tool extras (aiohttp, requests, python-dotenv).
|
|
31
31
|
// If you bump the agentscope pyproject deps, bump this list too —
|
|
32
32
|
// or extract from pyproject at server-side and ship via the bundle.
|
|
33
|
+
// ── TODO(arch): move this list into the server's shared-bundle response ──
|
|
34
|
+
// Right now any new Python dep required by a shared tool means:
|
|
35
|
+
// 1. add the dep to this hardcoded list
|
|
36
|
+
// 2. bump the @melaya/runner npm version
|
|
37
|
+
// 3. publish + each user reinstalls
|
|
38
|
+
// The cleaner pattern is to ship a `requirements.txt` (or a JSON list) IN
|
|
39
|
+
// the shared-bundle endpoint, alongside the .py files. The runner then
|
|
40
|
+
// reads it at venv-bootstrap time. Result: adding a tool's Python dep
|
|
41
|
+
// only needs a server deploy — runners pick it up next reconnect, same
|
|
42
|
+
// way they pick up shared/*.py changes today.
|
|
43
|
+
// Until that lands, every change to this list = a runner npm version bump.
|
|
33
44
|
const PIP_DEPS = [
|
|
34
45
|
// ── agentscope core (mirrors pyproject.toml `dependencies`) ──
|
|
35
46
|
"aioitertools",
|
|
@@ -81,6 +92,10 @@ const PIP_DEPS = [
|
|
|
81
92
|
// `scrapling install` to download Chromium — best-effort run below
|
|
82
93
|
// (failure non-fatal: AsyncFetcher fast-path still works without it).
|
|
83
94
|
"scrapling[fetchers]",
|
|
95
|
+
// Telethon — Telegram MTProto user-mode client. Used by
|
|
96
|
+
// shared.tools.telegram_user_tools. The bot-API path in
|
|
97
|
+
// shared.tools.messaging.py uses plain HTTP and needs no extra dep.
|
|
98
|
+
"telethon",
|
|
84
99
|
];
|
|
85
100
|
export function venvPython() {
|
|
86
101
|
return platform() === "win32"
|