INNER CODE UNIT · Python

capture

TianGzlab/OmicsClaw · omicsclaw/surfaces/desktop/server.py:219

    def capture(
        cls,
        environ: MutableMapping[str, str],
    ) -> "_SkillEvolutionBearerAuthority":
        token_fd = str(environ.pop(_SKILL_EVOLUTION_TOKEN_FD_ENV, "") or "").strip()
        raw_environment_token = str(environ.pop(_SKILL_EVOLUTION_TOKEN_ENV, "") or "")
        environment_token = (
            raw_environment_token if raw_environment_token.strip() else ""
        )
        if token_fd:
            dedicated = _read_skill_evolution_token_fd(token_fd)
            source = "dedicated_pipe"
        elif environment_token:
            if not _is_valid_skill_evolution_dedicated_token(environment_token):
                raise RuntimeError("invalid Skill Evolution credential")
            dedicated = environment_token
            source = "dedicated_environment"
        else:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…