scitex-agent-container 0.42.1
Dependency classified hostile
Agent skill persists rules in global instructionsImport sends host profile to raw IP
SHA-256e9748cf205fe090b392e1c9fd8f81132ef839e9c62fb36d408d5adbb1a3d5e1a
Evidence
1"""Console bootstrap that protects image builds from ``PYTHONPATH`` shadowing.
2
3This package is deliberately separate from :mod:`scitex_agent_container`.
4The console script can therefore import this installed bootstrap before a
5stale checkout on ``PYTHONPATH`` selects the SAC package that performs the
6build. All non-build commands pass straight through.
7"""
8
9from __future__ import annotations
10
11import importlib.util
12import json
13import site
14import sys
15import sysconfig
16from collections.abc import Callable
17from importlib import metadata
18from pathlib import Path
19from urllib.parse import unquote, urlparse
20
21import click
22
23_DIST_NAME = "scitex-agent-container"
⋯4 lines
52:41… and value
53 }
54 candidates.update(Path(value).resolve() for value in site.getsitepackages())
55 if site.ENABLE_USER_SITE:
56 candidates.add(Path(site.getusersitepackages()).resolve())
57 return tuple(sorted(candidates))
58
59
60def _editable_authorities(paths: tuple[Path, ...]) -> set[Path]:
61 """Read editable SAC roots only from interpreter-owned dist-info."""
62 roots: set[Path] = set()
63 for path in paths:
⋯6 lines
70 continue
71 try:
72 direct_url = json.loads(raw)
73 parsed = urlparse(str(direct_url.get("url", "")))
74 editable = bool(direct_url.get("dir_info …
161:9… )
162
163 observed = _runtime_package_root(runtime_root)
164 cwd = Path.cwd() if working_dir is None else working_dir
165 cwd_authority = _checkout_package_root(cwd)
166 if cwd_authority is not None and observed != cwd_authority:
⋯5 lines
4:45… nt management.
5
6Provides a YAML-based framework for defining, managing, and orchestrating
7AI coding agent instances across container runtimes.
8
9Public surface — CLI-tree-shaped noun submodules::
10
11 import scitex_agent_container a …
⋯4 lines
30from __future__ import annotations
31
32from importlib.metadata import PackageNotFoundError as _PackageNotFoundError
33from importlib.metadata import version as _version
34from typing import TYPE_CHECKING
35
36# PA-102 §1: names in __all__ must be statically visible.
37# These imports are only evaluated …
Showing the top 5 files — 5 more files (77 regions) not shown.