Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.6 KB

File metadata and controls

31 lines (25 loc) · 1.6 KB

Pyodide runtime bundle for the Agent OS Python sidecar.

Bundled runtime files:

  • pyodide.mjs
  • pyodide.asm.js
  • pyodide.asm.wasm
  • pyodide-lock.json
  • python_stdlib.zip

Bundled offline package wheels:

  • numpy-2.2.5-cp313-cp313-pyodide_2025_0_wasm32.whl
  • pandas-2.3.3-cp313-cp313-pyodide_2025_0_wasm32.whl
  • python_dateutil-2.9.0.post0-py2.py3-none-any.whl
  • pytz-2025.2-py2.py3-none-any.whl
  • six-1.17.0-py2.py3-none-any.whl

Bundle size as vendored in this directory:

  • Core Pyodide runtime: 12,283,621 bytes
  • Offline package wheels: 8,347,517 bytes
  • Total: 20,631,138 bytes (19.68 MiB)

python-runner.mjs points both indexURL and packageBaseUrl at this local directory so pyodide.loadPackage() stays offline and never falls back to the CDN for the preloaded packages.

Debug timing output:

  • Set AGENT_OS_PYTHON_WARMUP_DEBUG=1 on a Python execution request to emit __AGENT_OS_PYTHON_WARMUP_METRICS__: JSON lines on stderr.
  • The Rust execution engine emits a phase:"prewarm" line that reports whether warmup executed or reused the cached compile-cache path, plus the measured warmup duration in milliseconds.
  • python-runner.mjs emits a phase:"startup" line just before guest code runs, including total startup time, loadPyodide() time, package-load time, package count, and whether the source was inline code, a file, or prewarm-only.

Startup targets:

  • Cold start target: first request in a fresh cache should keep the combined prewarm plus startup path under 3000ms on commodity hardware.
  • Warm start target: cached follow-up requests should keep the phase:"startup" time under 500ms.