INNER CODE UNIT · Python

resolve

teaql/teaql-agent-kit · tools/teaql_workspace.py:45

def resolve(config_path: Path, data: dict) -> dict:
    source = data["runtimeSource"]
    rows = {}
    errors = []
    for language in LANGUAGES:
        entry = data["runtimes"][language]
        if not isinstance(entry, dict):
            errors.append(f"{language}: configuration must be an object")
            continue
        version = entry.get("version")
        path_value = entry.get("path")
        if source == "workspace":
            if not path_value:
                errors.append(f"{language}: workspace mode requires path")
                continue
            repo = (config_path.parent / path_value).resolve()
            if not repo.is_dir():
                errors.append(f"{language}: runtime path does not exist: {repo}")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…