diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aae368..e0fb36e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,22 @@ All notable changes to this project are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Changed + +- Updated the tested Claude Agent SDK to `0.2.179`, Antigravity to `0.1.23`, + and the exactly coupled Codex SDK and CLI to `0.167.0`. Raised the Codex + upper bound to `<0.168` after inspecting the exact candidate versions. + +### Fixed + +- SDK evolution now collects official release notes for Claude's bundled CLI, + verifies its version against the inspected SDK distribution, and blocks on + incomplete or contradictory runtime evidence. +- Implementation snapshots distinguish a public class replaced by an alias + from a removed name, including in isolated candidate environments. + ## 0.5.5 - 2026-10-22 ### Changed diff --git a/docs/sdk-evolution-agent.md b/docs/sdk-evolution-agent.md index c788536..e805a07 100644 --- a/docs/sdk-evolution-agent.md +++ b/docs/sdk-evolution-agent.md @@ -173,18 +173,31 @@ files and Python AST definitions, compares adjacent releases, and writes the result to `implementation_diffs.json`. History also includes the exact locked baseline and candidate when they fall outside the latest three releases, so the changes between the installed baseline and the recent releases remain -visible. Claude probes construct permission, budget, session, MCP and schema -options; Codex probes construct configuration and validated thread/turn wire +visible. Module-level capitalized alias assignments are fingerprinted alongside +class and function definitions, so replacing a class with an alias is +distinguished from deleting the name. These are static source observations, +not proof that a conditional assignment is present at runtime. Claude probes +construct permission, budget, session, MCP and schema options; Codex probes +construct configuration and validated thread/turn wire parameters, including permissions, reasoning effort and structured output. These checks complement real-adapter regression tests and live runtime checks; they do not establish behavior inside opaque executables. -Source is never copied into the report; +Implementation source is never copied into the report; only paths, counts, sizes, and hashes are retained. Candidate inspection is opt-in because it executes freshly downloaded upstream code; historical inspection uses the same explicit consent. Without the flag, missing trend evidence is reported as `no-transition` rather than being replaced with dependency advice. +For a Claude SDK update, release evidence also covers its bundled Claude Code +CLI. The runner matches each SDK tag's CLI-version file against the fingerprint +of the exact inspected distribution, then records official CLI release notes +between the baseline and candidate. The SDK's own note status remains separate: +CLI notes do not turn an absent SDK changelog entry into a match. Missing or +contradictory version mappings, an incomplete release index, and missing CLI +release text block promotion. The CLI remains opaque even when its release +notes are available. + ## Upstream Implementation Trends `direction_analysis.json` is an implementation-trend report. It answers what diff --git a/docs/sdk-upgrade-2026-11-07.md b/docs/sdk-upgrade-2026-11-07.md new file mode 100644 index 0000000..d0ed85d --- /dev/null +++ b/docs/sdk-upgrade-2026-11-07.md @@ -0,0 +1,52 @@ +# November 7 SDK integration review + +This review starts at `32dbd8c` and compares the locked SDKs with independently +published candidates. It updates Claude Agent SDK `0.2.172` to `0.2.179`, +Codex SDK and its exactly required CLI `0.163.0` to `0.167.0`, and Antigravity +`0.1.22` to `0.1.23`. The Codex upper bound becomes `<0.168`; the other SDK +ranges already admit their candidates. + +## Upstream changes and integration decisions + +| Observed change | Existing behavior and decision | +| --- | --- | +| Claude's `HookMatcher` adds an `on_failure` option, and the bundled Claude Code CLI moves from `2.1.308` to `2.1.319`. The CLI release history includes fixes affecting non-interactive sessions, MCP, permissions, and failure reporting. | The adapter does not register SDK hook callbacks and continues to pass task permissions, MCP servers, sessions, and result messages to the SDK. Keep those mappings and the SDK-owned CLI behavior; do not claim hook support from this update. The SDK's `0.2.179` release itself contains no change notes. | +| Codex's generated app-server protocol adds lifecycle fields and image input/result variants. Its former `ImageGenerationThreadItem` class is replaced by an alias to `ResultThreadItem`; the name remains available. The handwritten Python client is unchanged. | The adapter does not depend on that generated class name. Its task, session, permission, and tool-audit mappings continue to consume the SDK's supported results. Preserve exact SDK/CLI coupling and best-effort audit coverage; do not infer binary internals from artifact fingerprints. | +| Antigravity adds workflow tool execution and custom instruction titles, and moves path and structure conversion helpers into shared modules. | The adapter passes its system prompt as a string and continues using `Agent.chat` and the SDK's configuration and policy interfaces. Workflow orchestration remains vendor-owned, although callers can enable its built-in workflow tool. The local workflow regression exercises nested tool filtering with the adapter's actual allow-list and deny-list configurations. | +| Claude Code release notes are published separately from the SDK, and a static class-definition scan can mistake a replacement alias for a removed name. | The evolution runner now verifies the bundled CLI version against the exact inspected SDK distribution, records the official CLI release interval separately from SDK notes, and blocks incomplete or contradictory evidence. Both snapshot paths record capitalized module-level aliases alongside definitions. These static observations do not prove runtime behavior. | + +## Evidence and limits + +The pre-update evidence includes all four exact baseline-to-candidate API diffs, +13 recent implementation snapshots, and behavior probes for each transition. +The three adapter-contract comparisons pass; the Codex CLI distribution probe +changes only its version details. The current resolver excludes Codex `0.167.0` +until the upper bound is widened, while the prospective resolver selects the +exact SDK/CLI pair. The Claude SDK changelog has no matching `0.2.179` entry; +separate official Claude Code releases cover the bundled CLI interval. + +The Antigravity workflow test uses the real `0.1.23` native harness and a local +fake OpenAI-compatible model endpoint. A positive control creates a temporary +file when the adapter's selected tools permit it; the same nested call is +refused for both an allow-list excluding file creation and a deny-list naming +it. This is a local semantic check of those cases, not a live provider test or +a claim about all possible tools and policies. + +Final-lock verification on Python 3.10 passed the lock check, Ruff, and mypy. +The core suite passed 587 tests with 27 skips; the all-extras suite passed 611 +tests with three live-provider skips and 90.37% coverage. A separate live call +through the locked Codex SDK and bundled CLI verified structured output, +session resume, retained context, and process reuse. The post-update evolution +run also passed its review through that SDK/CLI pair without an executable +override. + +Claude's bundled CLI, the Codex executable, and Antigravity's native harness +are opaque in the inspected distributions. API/configuration probes and source +fingerprints cannot establish all runtime behavior. Live Claude and Antigravity +provider calls were not run; the workflow check above uses the local harness and +a fake model endpoint. + +Sources: [Claude SDK release](https://github.com/anthropics/claude-agent-sdk-python/releases/tag/v0.2.179), +[Claude Code CLI release](https://github.com/anthropics/claude-code/releases/tag/v2.1.319), +[Codex release](https://github.com/openai/codex/releases/tag/rust-v0.167.0), +and [Antigravity release notes](https://github.com/google-antigravity/antigravity-sdk-python/discussions/273). diff --git a/examples/sdk_evolution_agent/cli.py b/examples/sdk_evolution_agent/cli.py index 52393ec..d164378 100644 --- a/examples/sdk_evolution_agent/cli.py +++ b/examples/sdk_evolution_agent/cli.py @@ -237,7 +237,9 @@ async def run_agent( _progress("collecting release notes and executable behavior probes") release_notes = [ to_jsonable(item) - for item in collect_release_notes(evidence.get("packages", []), update_versions) + for item in collect_release_notes( + evidence.get("packages", []), update_versions, snapshots=snapshots + ) ] behavior = to_jsonable( collect_behavior_evidence( diff --git a/examples/sdk_evolution_agent/models.py b/examples/sdk_evolution_agent/models.py index e2b648d..51a3b81 100644 --- a/examples/sdk_evolution_agent/models.py +++ b/examples/sdk_evolution_agent/models.py @@ -152,6 +152,28 @@ class ImplementationDiff: limitations: tuple[str, ...] = () +@dataclass(frozen=True) +class BundledRuntimeRelease: + """An official release note for a runtime bundled inside an SDK.""" + + version: str + url: str + notes: str + + +@dataclass(frozen=True) +class BundledRuntimeEvidence: + """Provenance and release notes for an SDK's exact bundled runtime.""" + + name: str + from_version: str | None + to_version: str | None + status: str + sources: tuple[SourceRef, ...] = () + releases: tuple[BundledRuntimeRelease, ...] = () + unavailable_reason: str = "" + + @dataclass(frozen=True) class ReleaseNoteEvidence: """Release-note evidence collected for one package interval.""" @@ -164,6 +186,7 @@ class ReleaseNoteEvidence: summaries: tuple[str, ...] = () checked_urls: tuple[str, ...] = () unavailable_reason: str = "" + bundled_runtime: BundledRuntimeEvidence | None = None @dataclass(frozen=True) diff --git a/examples/sdk_evolution_agent/release_notes.py b/examples/sdk_evolution_agent/release_notes.py index 2e742c5..28ccbbe 100644 --- a/examples/sdk_evolution_agent/release_notes.py +++ b/examples/sdk_evolution_agent/release_notes.py @@ -2,7 +2,9 @@ from __future__ import annotations +import ast import gzip +import hashlib import json import os import re @@ -11,7 +13,15 @@ import urllib.request from collections.abc import Callable, Mapping, Sequence -from examples.sdk_evolution_agent.models import ReleaseNoteEvidence, SourceRef +from packaging.version import Version + +from examples.sdk_evolution_agent.models import ( + ApiSnapshot, + BundledRuntimeEvidence, + BundledRuntimeRelease, + ReleaseNoteEvidence, + SourceRef, +) ReleaseNoteFetcher = Callable[[str], str] @@ -88,6 +98,7 @@ def collect_release_notes( update_versions: Mapping[str, str], *, fetcher: ReleaseNoteFetcher | None = None, + snapshots: Sequence[ApiSnapshot] | None = None, ) -> tuple[ReleaseNoteEvidence, ...]: """Collect primary-source release-note evidence for update candidates.""" @@ -219,6 +230,11 @@ def collect_release_notes( status = "unavailable" unavailable_reason = "no release-note source configured" + bundled_runtime = None + if name == "claude-agent-sdk" and snapshots is not None: + bundled_runtime = _collect_claude_bundled_runtime( + from_version, to_version, snapshots=snapshots, fetcher=fetcher + ) evidence.append( ReleaseNoteEvidence( package=name, @@ -229,11 +245,188 @@ def collect_release_notes( summaries=tuple(_dedupe(summaries)[:8]), checked_urls=tuple(checked_urls), unavailable_reason=unavailable_reason, + bundled_runtime=bundled_runtime, ) ) return tuple(evidence) +def _collect_claude_bundled_runtime( + from_version: str | None, + to_version: str, + *, + snapshots: Sequence[ApiSnapshot], + fetcher: ReleaseNoteFetcher, +) -> BundledRuntimeEvidence: + """Resolve CLI versions from exact SDK snapshots, then collect their releases. + + The upstream SDK tag is only accepted when its version file has + the same fingerprint as the inspected distribution. A release index or tag + that cannot be reconciled is evidence of a gap, not an empty changelog. + """ + + sources: list[SourceRef] = [] + versions: list[str] = [] + try: + for sdk_version in (from_version, to_version): + if not sdk_version or not re.fullmatch(r"[0-9A-Za-z][0-9A-Za-z.+-]*", sdk_version): + raise ValueError(f"invalid or missing Claude SDK version: {sdk_version!r}") + snapshot = next( + ( + item + for item in snapshots + if item.package == "claude-agent-sdk" + and item.version == sdk_version + and not item.import_error + ), + None, + ) + if snapshot is None: + raise ValueError(f"missing exact SDK snapshot for {sdk_version}") + version_file = next( + ( + item + for item in snapshot.implementation_files + if item.path == "claude_agent_sdk/_cli_version.py" + ), + None, + ) + if version_file is None: + raise ValueError(f"missing bundled CLI version fingerprint for SDK {sdk_version}") + url = ( + "https://raw.githubusercontent.com/anthropics/claude-agent-sdk-python/" + f"v{urllib.parse.quote(sdk_version, safe='')}/src/claude_agent_sdk/_cli_version.py" + ) + _progress(f"checking bundled Claude CLI version from SDK {sdk_version}") + try: + content = fetcher(url) + digest = hashlib.sha256(content.encode("utf-8")).hexdigest() + if digest != version_file.sha256: + raise ValueError( + f"bundled CLI version fingerprint mismatch for SDK {sdk_version}" + ) + cli_version = _claude_cli_version(content) + except Exception as exc: + sources.append( + SourceRef( + kind="sdk-runtime-version", + label="Claude SDK bundled CLI version", + url=url, + version=sdk_version, + available=False, + note=str(exc), + ) + ) + raise + sources.append( + SourceRef( + kind="sdk-runtime-version", + label="Claude SDK bundled CLI version", + url=url, + version=sdk_version, + note="Source fingerprint matches the inspected SDK distribution.", + ) + ) + versions.append(cli_version) + + baseline, candidate = (Version(value) for value in versions) + if candidate < baseline: + raise ValueError("candidate bundled CLI version is older than the baseline") + if candidate == baseline: + return BundledRuntimeEvidence( + "claude-code", versions[0], versions[1], "not-needed", tuple(sources) + ) + + releases: dict[Version, BundledRuntimeRelease] = {} + covered_baseline = False + for page in range(1, 6): + url = ( + "https://api.github.com/repos/anthropics/claude-code/releases" + f"?per_page=100&page={page}" + ) + _progress(f"checking bundled Claude CLI release notes, page {page}") + try: + rows = json.loads(fetcher(url)) + if not isinstance(rows, list): + raise ValueError("release index is not a list") + except Exception as exc: + sources.append( + SourceRef( + kind="release-index", + label="Claude Code releases", + url=url, + available=False, + note=str(exc), + ) + ) + raise + sources.append(SourceRef(kind="release-index", label="Claude Code releases", url=url)) + for row in rows: + if not isinstance(row, Mapping): + raise ValueError("release index contains a malformed entry") + if row.get("draft") or row.get("prerelease"): + continue + tag = str(row.get("tag_name") or "") + if not re.fullmatch(r"v?\d+\.\d+\.\d+", tag): + continue + release_version = Version(tag.lstrip("v")) + if release_version <= baseline: + covered_baseline = True + if baseline < release_version <= candidate: + release_url = f"https://github.com/anthropics/claude-code/releases/tag/{tag}" + release = BundledRuntimeRelease( + version=str(release_version), + url=release_url, + notes=str(row.get("body") or "").strip(), + ) + if release_version in releases and releases[release_version] != release: + raise ValueError(f"contradictory CLI releases for {release_version}") + releases[release_version] = release + if covered_baseline or len(rows) < 100: + covered_baseline = True + break + + missing = [str(version) for version, release in releases.items() if not release.notes] + problems = [] + if not covered_baseline: + problems.append("release-index pagination did not reach the baseline") + if candidate not in releases: + problems.append(f"candidate CLI release {candidate} not found") + if missing: + problems.append("release notes missing for " + ", ".join(sorted(missing))) + return BundledRuntimeEvidence( + name="claude-code", + from_version=versions[0], + to_version=versions[1], + status="incomplete" if problems else "found", + sources=tuple(sources), + releases=tuple(releases[key] for key in sorted(releases)), + unavailable_reason="; ".join(problems), + ) + except Exception as exc: + return BundledRuntimeEvidence( + name="claude-code", + from_version=versions[0] if versions else None, + to_version=versions[1] if len(versions) > 1 else None, + status="unavailable", + sources=tuple(sources), + unavailable_reason=str(exc), + ) + + +def _claude_cli_version(content: str) -> str: + tree = ast.parse(content) + for node in tree.body: + if isinstance(node, ast.Assign) and any( + isinstance(target, ast.Name) and target.id == "__cli_version__" + for target in node.targets + ): + value = ast.literal_eval(node.value) + if isinstance(value, str) and re.fullmatch(r"\d+\.\d+\.\d+", value): + return value + raise ValueError("SDK bundled CLI version is missing or unsupported") + + def fetch_url_text(url: str) -> str: """Fetch a release-note source as text.""" diff --git a/examples/sdk_evolution_agent/report.py b/examples/sdk_evolution_agent/report.py index c23f7eb..a9452dd 100644 --- a/examples/sdk_evolution_agent/report.py +++ b/examples/sdk_evolution_agent/report.py @@ -154,6 +154,19 @@ def render_markdown_report( for item in release_notes if isinstance(item, dict) and item.get("to_version") ] + for item in release_notes: + if not isinstance(item, dict): + continue + bundled = item.get("bundled_runtime") + if isinstance(bundled, dict): + release_lines.append( + "- {name} (bundled): {status} ({from_version} -> {to_version})".format( + name=bundled.get("name"), + status=bundled.get("status"), + from_version=bundled.get("from_version"), + to_version=bundled.get("to_version"), + ) + ) behavior_summary = assess_behavior_payload( behavior, expectations=behavior_expectations_from_evidence(evidence), diff --git a/examples/sdk_evolution_agent/snapshots.py b/examples/sdk_evolution_agent/snapshots.py index 6760db4..2ddd591 100644 --- a/examples/sdk_evolution_agent/snapshots.py +++ b/examples/sdk_evolution_agent/snapshots.py @@ -584,6 +584,25 @@ def visit(node: ast.AST, parents: tuple[str, ...] = ()) -> None: ) ) visit(child, (*parents, child.name)) + elif ( + not parents + and isinstance(child, (ast.Assign, ast.AnnAssign)) + and isinstance(child.value, (ast.Name, ast.Attribute)) + ): + targets = child.targets if isinstance(child, ast.Assign) else [child.target] + fingerprint = hashlib.sha256( + ast.dump(child, include_attributes=False).encode("utf-8") + ).hexdigest() + for target in targets: + if isinstance(target, ast.Name) and target.id[:1].isupper(): + definitions.append( + ImplementationDefinition( + name=f"{path}:{target.id}", + kind="alias", + path=path, + sha256=fingerprint, + ) + ) else: visit(child, parents) @@ -657,6 +676,23 @@ def visit(node, parents=()): "sha256": fingerprint, }) visit(child, (*parents, child.name)) + elif ( + not parents + and isinstance(child, (ast.Assign, ast.AnnAssign)) + and isinstance(child.value, (ast.Name, ast.Attribute)) + ): + targets = child.targets if isinstance(child, ast.Assign) else [child.target] + fingerprint = hashlib.sha256( + ast.dump(child, include_attributes=False).encode("utf-8") + ).hexdigest() + for target in targets: + if isinstance(target, ast.Name) and target.id[:1].isupper(): + definitions.append({ + "name": f"{path}:{target.id}", + "kind": "alias", + "path": path, + "sha256": fingerprint, + }) else: visit(child, parents) diff --git a/examples/sdk_evolution_agent/stages.py b/examples/sdk_evolution_agent/stages.py index 5aeb528..50f0805 100644 --- a/examples/sdk_evolution_agent/stages.py +++ b/examples/sdk_evolution_agent/stages.py @@ -567,6 +567,35 @@ def with_release_note_guard( for item in release_notes if item.get("to_version") and item.get("status") == "unavailable" ] + for item in release_notes: + runtime = item.get("bundled_runtime") + if item.get("package") != "claude-agent-sdk" or not item.get("to_version"): + continue + if not isinstance(runtime, Mapping) or runtime.get("status") not in { + "found", + "not-needed", + }: + failed.append("claude-agent-sdk bundled claude-code") + elif runtime.get("status") == "not-needed" and ( + not runtime.get("from_version") + or runtime.get("from_version") != runtime.get("to_version") + ): + failed.append("claude-agent-sdk bundled claude-code") + elif runtime.get("status") == "found": + releases = runtime.get("releases") + if ( + not runtime.get("from_version") + or not runtime.get("to_version") + or not isinstance(releases, list) + or not any( + isinstance(release, Mapping) + and release.get("version") == runtime.get("to_version") + and isinstance(release.get("notes"), str) + and bool(release["notes"].strip()) + for release in releases + ) + ): + failed.append("claude-agent-sdk bundled claude-code") if not failed: return dict(architecture) result = dict(architecture) @@ -970,6 +999,8 @@ def _stage_system_prompt(stage: str, schema: JsonSchema) -> str: "evidence, remains a hard blocker. Release-note status found " "is direct release-note evidence. Status no-matching-version is source " "coverage with explicit uncertainty, not unavailable evidence." + " Bundled runtime release notes are separate from SDK release notes; " + "unavailable or incomplete bundled-runtime evidence is a hard blocker." ) if stage == "review": prompt += " The review status must be exactly pass or reject." diff --git a/pyproject.toml b/pyproject.toml index e5e8218..b684823 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,12 +48,12 @@ dependencies = ["jsonschema>=4.18,<5", "tomli>=2,<3; python_version < '3.11'"] claude = ["claude-agent-sdk>=0.2.87,<0.3"] # 0.157.1 is the minimum SDK and CLI pair for native named profiles. Earlier # bundled CLIs do not enforce every profile rule needed by restricted runtimes. -codex = ["openai-codex>=0.157.1,<0.164"] +codex = ["openai-codex>=0.157.1,<0.168"] antigravity = ["google-antigravity>=0.1.2,<0.2"] all = [ "claude-agent-sdk>=0.2.87,<0.3", "google-antigravity>=0.1.2,<0.2", - "openai-codex>=0.157.1,<0.164", + "openai-codex>=0.157.1,<0.168", ] [project.urls] diff --git a/src/agent_runtime_kit/compatibility.py b/src/agent_runtime_kit/compatibility.py index 609ef87..782923a 100644 --- a/src/agent_runtime_kit/compatibility.py +++ b/src/agent_runtime_kit/compatibility.py @@ -66,17 +66,17 @@ def __post_init__(self) -> None: package="claude-agent-sdk", module="claude_agent_sdk", version_specifier=">=0.2.87,<0.3", - tested_version="0.2.172", + tested_version="0.2.179", ), RuntimeCompatibility( kind=AgentRuntimeKind.CODEX_AGENT_SDK, extra="codex", package="openai-codex", module="openai_codex", - version_specifier=">=0.157.1,<0.164", - tested_version="0.163.0", + version_specifier=">=0.157.1,<0.168", + tested_version="0.167.0", tested_runtime_dependencies=( - PackageVersion(package="openai-codex-cli-bin", version="0.163.0"), + PackageVersion(package="openai-codex-cli-bin", version="0.167.0"), ), ), RuntimeCompatibility( @@ -85,7 +85,7 @@ def __post_init__(self) -> None: package="google-antigravity", module="google.antigravity", version_specifier=">=0.1.2,<0.2", - tested_version="0.1.22", + tested_version="0.1.23", ), ) diff --git a/tests/_antigravity_workflow_probe.py b/tests/_antigravity_workflow_probe.py new file mode 100644 index 0000000..047762b --- /dev/null +++ b/tests/_antigravity_workflow_probe.py @@ -0,0 +1,146 @@ +"""Run a local Antigravity workflow against a deterministic model stub.""" + +from __future__ import annotations + +import asyncio +import json +import sys +import threading +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer +from pathlib import Path +from typing import Any + +from google.antigravity import Agent, LocalOpenAIAgentConfig + +from agent_runtime_kit import AgentTask, PermissionMode, PermissionProfile +from agent_runtime_kit.adapters.antigravity import AntigravityAgentRuntime, _capability_policy + + +async def _run_case( + root: Path, name: str, permissions: PermissionProfile, *, allowed: bool +) -> None: + workspace = root / name + workspace.mkdir() + marker = workspace / "created.txt" + workflow = workspace / "workflow.py" + workflow.write_text( + "try:\n" + f" result = await call_tool('write_file', path={str(marker)!r}, content='marker')\n" + " log('RESULT: ' + str(result))\n" + "except Exception as exc:\n" + " log('ERROR: ' + str(exc))\n", + encoding="utf-8", + ) + + class Handler(BaseHTTPRequestHandler): + calls = 0 + + def log_message(self, _format: str, *args: Any) -> None: + pass + + def do_POST(self) -> None: + self.rfile.read(int(self.headers.get("Content-Length", "0"))) + type(self).calls += 1 + if type(self).calls == 1: + arguments = json.dumps( + { + "ScriptPath": str(workflow), + "Description": "Check workflow permissions", + "WaitMsBeforeAsync": 10000, + "toolSummary": "Permission check", + "toolAction": "Checking permissions", + } + ) + delta = { + "role": "assistant", + "tool_calls": [ + { + "index": 0, + "id": "call_1", + "type": "function", + "function": {"name": "run_workflow", "arguments": arguments}, + } + ], + } + finish = "tool_calls" + else: + delta = {"role": "assistant", "content": "Finished."} + finish = "stop" + chunks = [ + { + "id": "fake", + "object": "chat.completion.chunk", + "created": 1, + "model": "fake", + "choices": [{"index": 0, "delta": delta, "finish_reason": None}], + }, + { + "id": "fake", + "object": "chat.completion.chunk", + "created": 1, + "model": "fake", + "choices": [{"index": 0, "delta": {}, "finish_reason": finish}], + }, + ] + data = "".join(f"data: {json.dumps(chunk)}\n\n" for chunk in chunks) + data += "data: [DONE]\n\n" + self.send_response(200) + self.send_header("Content-Type", "text/event-stream") + self.end_headers() + self.wfile.write(data.encode()) + + server = ThreadingHTTPServer(("127.0.0.1", 0), Handler) + thread = threading.Thread(target=server.serve_forever, daemon=True) + thread.start() + try: + runtime = AntigravityAgentRuntime(api_key="unused", data_dir=workspace) + task = AgentTask(goal="Check permissions", permissions=permissions) + capabilities, policies = _capability_policy(runtime.kind, task, runtime._load_sdk()) + config = LocalOpenAIAgentConfig( + model="fake", + base_url=f"http://127.0.0.1:{server.server_port}/v1", + workspaces=[str(workspace)], + app_data_dir=str(workspace / "app"), + save_dir=str(workspace / "sessions"), + capabilities=capabilities, + policies=policies, + ) + async with Agent(config) as agent: + result = await agent.beta.run_workflow(script_path=str(workflow)) + if allowed: + assert marker.read_text(encoding="utf-8") == "marker", result.output + else: + assert not marker.exists(), result.output + assert "ERROR:" in result.output, result.output + print(f"{name}: {'allowed' if allowed else 'refused'}") + finally: + server.shutdown() + server.server_close() + thread.join() + + +async def _main(root: Path) -> None: + await _run_case( + root, + "allowed", + PermissionProfile( + mode=PermissionMode.PERMISSIVE, allowed_tools=("run_workflow", "create_file") + ), + allowed=True, + ) + await _run_case( + root, + "allowlist", + PermissionProfile(mode=PermissionMode.PERMISSIVE, allowed_tools=("run_workflow",)), + allowed=False, + ) + await _run_case( + root, + "denylist", + PermissionProfile(mode=PermissionMode.PERMISSIVE, disallowed_tools=("create_file",)), + allowed=False, + ) + + +if __name__ == "__main__": + asyncio.run(asyncio.wait_for(_main(Path(sys.argv[1])), timeout=90)) diff --git a/tests/test_antigravity_workflow_contract.py b/tests/test_antigravity_workflow_contract.py new file mode 100644 index 0000000..c87338b --- /dev/null +++ b/tests/test_antigravity_workflow_contract.py @@ -0,0 +1,46 @@ +"""The real workflow harness must honor adapter-owned tool filters.""" + +from __future__ import annotations + +import importlib.metadata +import os +import subprocess +import sys +from pathlib import Path + +import pytest +from packaging.version import Version + + +def test_programmatic_workflow_calls_honor_tool_filters(tmp_path: Path) -> None: + try: + version = importlib.metadata.version("google-antigravity") + except importlib.metadata.PackageNotFoundError: + pytest.skip("Antigravity extra is not installed") + if Version(version) < Version("0.1.23"): + pytest.skip("Programmatic workflow tool calls require Antigravity 0.1.23+") + + home = tmp_path / "home" + home.mkdir() + root = Path(__file__).resolve().parents[1] + env = { + "HOME": str(home), + "PATH": os.environ.get("PATH", ""), + "PYTHONPATH": str(root / "src"), + "TMPDIR": str(tmp_path), + } + for key in ("SYSTEMROOT", "WINDIR", "COMSPEC", "PATHEXT"): + if key in os.environ: + env[key] = os.environ[key] + result = subprocess.run( + [sys.executable, str(root / "tests/_antigravity_workflow_probe.py"), str(tmp_path)], + env=env, + capture_output=True, + text=True, + timeout=100, + check=False, + ) + assert result.returncode == 0, result.stdout + result.stderr + assert "allowed: allowed" in result.stdout + assert "allowlist: refused" in result.stdout + assert "denylist: refused" in result.stdout diff --git a/tests/test_sdk_evolution_agent.py b/tests/test_sdk_evolution_agent.py index edd354a..3c983be 100644 --- a/tests/test_sdk_evolution_agent.py +++ b/tests/test_sdk_evolution_agent.py @@ -3745,7 +3745,8 @@ def forbidden_candidate(package: str, version: str) -> ApiSnapshot: "examples.sdk_evolution_agent.cli.snapshot_candidate_in_venv", forbidden_candidate ) monkeypatch.setattr( - "examples.sdk_evolution_agent.cli.collect_release_notes", lambda packages, updates: [] + "examples.sdk_evolution_agent.cli.collect_release_notes", + lambda packages, updates, *, snapshots=None: [], ) monkeypatch.setattr( "examples.sdk_evolution_agent.cli.collect_behavior_evidence", @@ -3889,7 +3890,7 @@ async def test_run_agent_autonomous_pr_path( ) monkeypatch.setattr( "examples.sdk_evolution_agent.cli.collect_release_notes", - lambda packages, updates: [], + lambda packages, updates, *, snapshots=None: [], ) monkeypatch.setattr( "examples.sdk_evolution_agent.cli.collect_behavior_evidence", diff --git a/tests/test_sdk_evolution_alias_snapshots.py b/tests/test_sdk_evolution_alias_snapshots.py new file mode 100644 index 0000000..13f6fbf --- /dev/null +++ b/tests/test_sdk_evolution_alias_snapshots.py @@ -0,0 +1,57 @@ +"""Source snapshots distinguish a replaced class from a removed public name.""" + +from __future__ import annotations + +import json +import os +import subprocess +import sys +from pathlib import Path + +import pytest + +sys.path.insert(0, str(Path(__file__).resolve().parents[1])) + +from examples.sdk_evolution_agent.snapshots import ( + _SNAPSHOT_SCRIPT, + diff_implementation_snapshots, + snapshot_current_api, +) + + +def test_public_class_replaced_by_alias_is_changed_in_both_snapshot_paths( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch +) -> None: + package = tmp_path / "alias_snapshot_sdk" + package.mkdir() + source = package / "__init__.py" + source.write_text("class OldType:\n pass\n", encoding="utf-8") + monkeypatch.syspath_prepend(str(tmp_path)) + before = snapshot_current_api("alias-snapshot-sdk", version="1.0") + source.write_text( + "class NewType:\n pass\n\nOldType = NewType\n\n" + "def factory():\n PrivateLocal = NewType\n return PrivateLocal\n", + encoding="utf-8", + ) + after = snapshot_current_api("alias-snapshot-sdk", version="2.0") + diff = diff_implementation_snapshots(before, after) + old_name = "alias_snapshot_sdk/__init__.py:OldType" + + assert old_name in diff.definitions_changed + assert old_name not in diff.definitions_removed + assert any( + item.name == old_name and item.kind == "alias" for item in after.implementation_definitions + ) + assert not any("PrivateLocal" in item.name for item in after.implementation_definitions) + + env = dict(os.environ, PYTHONPATH=str(tmp_path)) + result = subprocess.run( + [sys.executable, "-c", _SNAPSHOT_SCRIPT, "alias-snapshot-sdk", "2.0", "alias_snapshot_sdk"], + env=env, + check=True, + capture_output=True, + text=True, + ) + isolated = json.loads(result.stdout)["implementation_definitions"] + assert any(item["name"] == old_name and item["kind"] == "alias" for item in isolated) + assert not any("PrivateLocal" in item["name"] for item in isolated) diff --git a/tests/test_sdk_evolution_bundled_release_notes.py b/tests/test_sdk_evolution_bundled_release_notes.py new file mode 100644 index 0000000..de5f7c6 --- /dev/null +++ b/tests/test_sdk_evolution_bundled_release_notes.py @@ -0,0 +1,220 @@ +"""Exact bundled-runtime release evidence for the SDK evolution agent.""" + +from __future__ import annotations + +import hashlib +import json +import sys +from collections.abc import Callable +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parents[1])) + +from examples.sdk_evolution_agent.models import ApiSnapshot, ImplementationFile, to_jsonable +from examples.sdk_evolution_agent.release_notes import collect_release_notes +from examples.sdk_evolution_agent.stages import with_release_note_guard + + +def _snapshot(sdk_version: str, cli_source: str) -> ApiSnapshot: + content = cli_source.encode() + return ApiSnapshot( + package="claude-agent-sdk", + version=sdk_version, + module="claude_agent_sdk", + implementation_files=( + ImplementationFile( + path="claude_agent_sdk/_cli_version.py", + kind="python", + sha256=hashlib.sha256(content).hexdigest(), + size=len(content), + ), + ), + ) + + +def _collect(fetcher: Callable[[str], str]): + return collect_release_notes( + [{"name": "claude-agent-sdk", "locked_version": "0.2.1"}], + {"claude-agent-sdk": "0.2.2"}, + fetcher=fetcher, + snapshots=[ + _snapshot("0.2.1", '__cli_version__ = "2.1.1"\n'), + _snapshot("0.2.2", '__cli_version__ = "2.1.3"\n'), + ], + )[0] + + +def test_bundled_cli_evidence_preserves_missing_sdk_notes_and_covers_interval() -> None: + requests: list[str] = [] + + def fetcher(url: str) -> str: + requests.append(url) + if "/v0.2.1/" in url: + return '__cli_version__ = "2.1.1"\n' + if "/v0.2.2/" in url: + return '__cli_version__ = "2.1.3"\n' + if "api.github.com/repos/anthropics/claude-code/releases?" in url: + return json.dumps( + [ + { + "tag_name": "v2.1.4", + "body": "newer", + "html_url": "https://github.com/anthropics/claude-code/releases/tag/v2.1.4", + }, + { + "tag_name": "v2.1.3", + "body": "MCP tasks changed", + "html_url": "https://github.com/anthropics/claude-code/releases/tag/v2.1.3", + }, + { + "tag_name": "v2.1.2", + "body": "Permission handling changed", + "html_url": "https://github.com/anthropics/claude-code/releases/tag/v2.1.2", + }, + { + "tag_name": "v2.1.1", + "body": "baseline", + "html_url": "https://github.com/anthropics/claude-code/releases/tag/v2.1.1", + }, + ] + ) + return "Official SDK source without a matching entry" + + notes = _collect(fetcher) + + assert notes.status == "no-matching-version" + runtime = notes.bundled_runtime + assert runtime is not None + assert (runtime.from_version, runtime.to_version, runtime.status) == ("2.1.1", "2.1.3", "found") + assert [release.version for release in runtime.releases] == ["2.1.2", "2.1.3"] + assert "MCP tasks changed" in runtime.releases[-1].notes + assert any("v0.2.2/" in url for url in requests) + + +def test_unverified_bundled_version_blocks_promotion() -> None: + def fetcher(url: str) -> str: + if "/v0.2.1/" in url: + return '__cli_version__ = "2.1.1"\n' + if "/v0.2.2/" in url: + return '__cli_version__ = "9.9.9"\n' + if "api.github.com/repos/anthropics/claude-code/releases?" in url: + raise AssertionError("Unverified versions must never select release evidence") + return "Official SDK source without a matching entry" + + notes = _collect(fetcher) + runtime = notes.bundled_runtime + assert runtime is not None + assert runtime.status == "unavailable" + assert "fingerprint" in runtime.unavailable_reason.lower() + guarded = with_release_note_guard( + { + "findings": [], + "safe_to_implement": True, + "manual_design_required": False, + "uncertainty": [], + }, + [to_jsonable(notes)], + ) + assert guarded["safe_to_implement"] is False + assert guarded["manual_design_required"] is True + + +def test_missing_bundled_cli_release_body_blocks_promotion() -> None: + def fetcher(url: str) -> str: + if "/v0.2.1/" in url: + return '__cli_version__ = "2.1.1"\n' + if "/v0.2.2/" in url: + return '__cli_version__ = "2.1.3"\n' + if "api.github.com/repos/anthropics/claude-code/releases?" in url: + return json.dumps( + [ + { + "tag_name": "v2.1.3", + "body": "", + "html_url": "https://github.com/anthropics/claude-code/releases/tag/v2.1.3", + }, + { + "tag_name": "v2.1.1", + "body": "baseline", + "html_url": "https://github.com/anthropics/claude-code/releases/tag/v2.1.1", + }, + ] + ) + return "Official SDK source without a matching entry" + + notes = _collect(fetcher) + runtime = notes.bundled_runtime + assert runtime is not None + assert runtime.status == "incomplete" + guarded = with_release_note_guard( + { + "findings": [], + "safe_to_implement": True, + "manual_design_required": False, + "uncertainty": [], + }, + [to_jsonable(notes)], + ) + assert guarded["safe_to_implement"] is False + assert guarded["manual_design_required"] is True + + +def test_release_guard_blocks_missing_bundled_runtime_evidence() -> None: + guarded = with_release_note_guard( + {"findings": [], "safe_to_implement": True, "manual_design_required": False}, + [{"package": "claude-agent-sdk", "to_version": "0.2.2", "status": "found"}], + ) + assert guarded["safe_to_implement"] is False + assert guarded["manual_design_required"] is True + + +def test_release_index_is_paginated_until_baseline_is_covered() -> None: + requests: list[str] = [] + + def fetcher(url: str) -> str: + requests.append(url) + if "/v0.2.1/" in url: + return '__cli_version__ = "2.1.1"\n' + if "/v0.2.2/" in url: + return '__cli_version__ = "2.1.3"\n' + if "&page=1" in url: + return json.dumps( + [{"tag_name": f"v3.0.{n}", "body": "newer"} for n in range(99)] + + [{"tag_name": "v2.1.3", "body": "candidate"}] + ) + if "&page=2" in url: + return json.dumps( + [ + {"tag_name": "v2.1.2", "body": "intermediate"}, + {"tag_name": "v2.1.1", "body": "baseline"}, + ] + ) + return "Official SDK source without a matching entry" + + runtime = _collect(fetcher).bundled_runtime + assert runtime is not None + assert runtime.status == "found" + assert [release.version for release in runtime.releases] == ["2.1.2", "2.1.3"] + assert any("page=2" in url for url in requests) + + +def test_release_guard_rejects_found_status_without_candidate_notes() -> None: + guarded = with_release_note_guard( + {"findings": [], "safe_to_implement": True, "manual_design_required": False}, + [ + { + "package": "claude-agent-sdk", + "to_version": "0.2.2", + "status": "no-matching-version", + "bundled_runtime": { + "name": "claude-code", + "status": "found", + "from_version": "2.1.1", + "to_version": "2.1.3", + "releases": [{"version": "2.1.2", "notes": "older notes"}], + }, + } + ], + ) + assert guarded["safe_to_implement"] is False + assert guarded["manual_design_required"] is True diff --git a/uv.lock b/uv.lock index 52c29ef..28a36b2 100644 --- a/uv.lock +++ b/uv.lock @@ -69,8 +69,8 @@ requires-dist = [ { name = "google-antigravity", marker = "extra == 'all'", specifier = ">=0.1.2,<0.2" }, { name = "google-antigravity", marker = "extra == 'antigravity'", specifier = ">=0.1.2,<0.2" }, { name = "jsonschema", specifier = ">=4.18,<5" }, - { name = "openai-codex", marker = "extra == 'all'", specifier = ">=0.157.1,<0.164" }, - { name = "openai-codex", marker = "extra == 'codex'", specifier = ">=0.157.1,<0.164" }, + { name = "openai-codex", marker = "extra == 'all'", specifier = ">=0.157.1,<0.168" }, + { name = "openai-codex", marker = "extra == 'codex'", specifier = ">=0.157.1,<0.168" }, { name = "tomli", marker = "python_full_version < '3.11'", specifier = ">=2,<3" }, ] provides-extras = ["claude", "codex", "antigravity", "all"] @@ -384,7 +384,7 @@ wheels = [ [[package]] name = "claude-agent-sdk" -version = "0.2.172" +version = "0.2.179" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, @@ -393,13 +393,13 @@ dependencies = [ { name = "sniffio" }, { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/6a/26/06c543b684df0065e3afdd525bfdf37877cb05e41e4a9185fcbb4b2fdd0b/claude_agent_sdk-0.2.172.tar.gz", hash = "sha256:d20c8f4fd12880821338ddb918418ef0b2f97c10d5806491e7e2eb766b437725", size = 398738, upload-time = "2026-10-22T05:22:08.724Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f2/cf/4e6cb9c949abd667c077cd07909bfbf9b6f1c19dff326b9f6dafc716c185/claude_agent_sdk-0.2.179.tar.gz", hash = "sha256:97b29d785bb9c9e868c3d7e7458fb68ea7ceaec8c830273d6ad316da014a974d", size = 400216, upload-time = "2026-11-06T17:56:01.69Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e1/7f/d7d10f38b5fe0e669dd51dffac7ec5dc3aa78d8b2748480f188c8039086f/claude_agent_sdk-0.2.172-py3-none-macosx_11_0_arm64.whl", hash = "sha256:8068f84286925cf15240441fee7e698e6a82c3571a80e306f28d251e882496b2", size = 115999146, upload-time = "2026-10-22T05:22:14.218Z" }, - { url = "https://files.pythonhosted.org/packages/36/ab/5cb79753ae601b091c0af563d733f124b7cf479914ffa1bff081b7950d99/claude_agent_sdk-0.2.172-py3-none-macosx_11_0_x86_64.whl", hash = "sha256:898757e2404290b6f3be48e7e7698fdf9fb1a81ed77b9c21263b0ba506689ab5", size = 121683387, upload-time = "2026-10-22T05:22:18.605Z" }, - { url = "https://files.pythonhosted.org/packages/2c/c7/02302bde98e27c305f5ddfd64d24ec6d5e08fbd66a6996e76313056cc36b/claude_agent_sdk-0.2.172-py3-none-manylinux_2_17_aarch64.whl", hash = "sha256:a56860aec16e95bad73d2ce62d9843152d4e0381885651ef72667adb17eca874", size = 125691281, upload-time = "2026-10-22T05:22:24.099Z" }, - { url = "https://files.pythonhosted.org/packages/75/93/ea014f37770e8b1f4ade32d961da7d58407a910feab7e619a153a7fdf71d/claude_agent_sdk-0.2.172-py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:94c8b9346433654f337bb50f16c51ec690ad73193bd92fb01fd63d81421fe0a6", size = 126061828, upload-time = "2026-10-22T05:22:29.717Z" }, - { url = "https://files.pythonhosted.org/packages/1c/15/31a7cd64b8d531498d1c110c55a070fe74854148cab77d3ecc462487e371/claude_agent_sdk-0.2.172-py3-none-win_amd64.whl", hash = "sha256:48a0439d390334211e6d6351e69aaa5408d351b77e4eb5d1bf161b205a11963b", size = 129519248, upload-time = "2026-10-22T05:22:34.457Z" }, + { url = "https://files.pythonhosted.org/packages/4a/e4/da356f282abbdfc348864a424ef39d892d4681516150785d8402008940a2/claude_agent_sdk-0.2.179-py3-none-macosx_11_0_arm64.whl", hash = "sha256:28b40c646eb696316ca9d0531bb5f1179d1df4cd76fa630440170c91fbb788f0", size = 139333276, upload-time = "2026-11-06T17:56:09.546Z" }, + { url = "https://files.pythonhosted.org/packages/03/79/8a37f953154916f81cae43873685afa2a11296fcff2a5191998126d26709/claude_agent_sdk-0.2.179-py3-none-macosx_11_0_x86_64.whl", hash = "sha256:ce95a42db94fa023f97a51982beeb95230d73be1e6c5babc77f2b635469c4759", size = 146623781, upload-time = "2026-11-06T17:56:20.409Z" }, + { url = "https://files.pythonhosted.org/packages/3c/e7/5429f36dd8a83c2835b6f50e7921b7cf05680007b19f520ed32a458d237f/claude_agent_sdk-0.2.179-py3-none-manylinux_2_17_aarch64.whl", hash = "sha256:26b1fb00ac0c2a19af08071bdd20fde579410cb7dbf0d8281feaa834ba5b91db", size = 150981993, upload-time = "2026-11-06T17:56:33.426Z" }, + { url = "https://files.pythonhosted.org/packages/00/16/972f8bbe1d471bc38b93bdea1744b6931b3e6e5bc7f3f647f07c98346622/claude_agent_sdk-0.2.179-py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:834159329beca83e1a1bd63815a5461b5ef5e8e039a8719fcc77df7c2a83296d", size = 151361548, upload-time = "2026-11-06T17:56:40.202Z" }, + { url = "https://files.pythonhosted.org/packages/0f/5b/25020ae125ea7f58b14f9cbf1d0c1f46c61628c3947ccfbd8c8032946b24/claude_agent_sdk-0.2.179-py3-none-win_amd64.whl", hash = "sha256:f9ac74aec7847f2e0474d710ec5ddcc8c0e1898b1d5f54f60a96c7a39bb6d7cc", size = 153067067, upload-time = "2026-11-06T17:56:56.516Z" }, ] [[package]] @@ -606,7 +606,7 @@ wheels = [ [[package]] name = "google-antigravity" -version = "0.1.22" +version = "0.1.23" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "absl-py" }, @@ -618,12 +618,12 @@ dependencies = [ { name = "websockets" }, ] wheels = [ - { url = "https://files.pythonhosted.org/packages/16/2d/fd1cb2cf1f610726914087a89960a95a33ed47e9804a00e598debc0280aa/google_antigravity-0.1.22-py3-none-macosx_11_0_arm64.whl", hash = "sha256:1db8f5ef2eb3a821c7780d8a5c634c4d9b90d401a02de6d640c2fa69a2545b62", size = 39099505, upload-time = "2026-10-13T22:50:42.872Z" }, - { url = "https://files.pythonhosted.org/packages/79/50/71bbc9adabf36eb700f3a7a12ad71b35286d362c15e202b9b9b0d0830f0b/google_antigravity-0.1.22-py3-none-macosx_11_0_x86_64.whl", hash = "sha256:86a31782a68da8eabdb59a7d0c4a38412c7f034029ac4b8e4eb61606c374b99d", size = 41282858, upload-time = "2026-10-13T22:50:47.149Z" }, - { url = "https://files.pythonhosted.org/packages/d6/67/a2ccde504e1dae0dbb05d12e4e42bb96f68e39ab65c1e10e1af379ff52a6/google_antigravity-0.1.22-py3-none-manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:c9b6c028b63b2a2d76efcd0a6529fc29a39de9b02fc0b80a5b01ca6f4f225a76", size = 39917887, upload-time = "2026-10-13T22:50:51.631Z" }, - { url = "https://files.pythonhosted.org/packages/93/65/23f0fd95def63d18ea292f212f158fb4ca31aeedd97a601a9e243babd20f/google_antigravity-0.1.22-py3-none-manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl", hash = "sha256:f57c82b64360c3ac9bc65744b8a4aee2dc355acb97194bad811a3a5071574861", size = 43831201, upload-time = "2026-10-13T22:50:58.573Z" }, - { url = "https://files.pythonhosted.org/packages/e5/f8/a58f98b4905e3085ce8010c03fc88b64daaf2a194eb8cc3e6f10c9153042/google_antigravity-0.1.22-py3-none-win_amd64.whl", hash = "sha256:adf95c8d91987e795b5f7fbd47f73f48ac456c03228d18ca6b540586589687c6", size = 45227258, upload-time = "2026-10-13T22:51:06.76Z" }, - { url = "https://files.pythonhosted.org/packages/97/64/21332de87da45fad082992b912786542d296b901782d5a92008420fd01e2/google_antigravity-0.1.22-py3-none-win_arm64.whl", hash = "sha256:7eca5b13bd7513ed1549345f53a64c9cd16fef3e00b6042170b88957bb0deba9", size = 41166245, upload-time = "2026-10-13T22:51:14.57Z" }, + { url = "https://files.pythonhosted.org/packages/78/1e/71a0db889bdc339ae2ddbf7875366959660dc108c803c6b17242fcca41bc/google_antigravity-0.1.23-py3-none-macosx_11_0_arm64.whl", hash = "sha256:92dc71a52afde0ff8424534e728cc6e168489773b61457b88dcd1c634af4ff6c", size = 40142117, upload-time = "2026-10-28T16:50:40.579Z" }, + { url = "https://files.pythonhosted.org/packages/fe/8d/2f489370d5c47c887ba5c9107f009f428eb6b7b9e2e5e96df0f4c8ace29c/google_antigravity-0.1.23-py3-none-macosx_11_0_x86_64.whl", hash = "sha256:5a99fd8993f13f03e43a7da9ba62b4114c05d952f6f933e86f33c3fc79e80b8e", size = 42390102, upload-time = "2026-10-28T16:50:44.189Z" }, + { url = "https://files.pythonhosted.org/packages/55/74/fe20c9b0301c9fd3fdaf4f4f92ed43fd3f1ab59c7c6b64ebbc793ec04578/google_antigravity-0.1.23-py3-none-manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:17b2d26575ef168bb3ccd74ddf39ebfe4c528ea426e4bedee8621ea7a41cf527", size = 41215880, upload-time = "2026-10-28T16:50:48.235Z" }, + { url = "https://files.pythonhosted.org/packages/9a/53/ea087398e44a3deb216a7a87bb88832b182a4a66489ec6cb43db22b5abda/google_antigravity-0.1.23-py3-none-manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl", hash = "sha256:6b1dfa14090ce8cf10395074eecab2bf20cb49ceed3a2603d39803951c9884e2", size = 45219152, upload-time = "2026-10-28T16:50:56.987Z" }, + { url = "https://files.pythonhosted.org/packages/47/77/53b2c4bd11df1ace856fd67ad2e378151193eb2f99e10dc6e6f46087fb82/google_antigravity-0.1.23-py3-none-win_amd64.whl", hash = "sha256:e587980e3e220b7f24fcddbaa8af55a7b46a9e59443c13e782458718a67c2fba", size = 46149708, upload-time = "2026-10-28T16:51:09.079Z" }, + { url = "https://files.pythonhosted.org/packages/48/c1/af3a1354977e8d16fd3bbd2e4c9a5bd55f5963578d33eaa37b61965a7e66/google_antigravity-0.1.23-py3-none-win_arm64.whl", hash = "sha256:cbbcbf920b433b2c6db7ea9ed5b4b234a72f574647effa5e3e67f0d97c1793df", size = 42115847, upload-time = "2026-10-28T16:51:24.113Z" }, ] [[package]] @@ -949,31 +949,31 @@ wheels = [ [[package]] name = "openai-codex" -version = "0.163.0" +version = "0.167.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "openai-codex-cli-bin" }, { name = "packaging" }, { name = "pydantic" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/50/65/efc3c33f3f6c7c11a65110ab39034a8769d7aba87bc6f71f8f1451fc9651/openai_codex-0.163.0.tar.gz", hash = "sha256:c6e622dd866a6ce601c5a564572ac1e9e63859e894d263e166505f74a9bfa717", size = 90884, upload-time = "2026-10-15T21:50:52.303Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7e/d7/da3969d1b6efd7dcac810a06062d02c623429c83a73d1299203b387e59ab/openai_codex-0.167.0.tar.gz", hash = "sha256:6007d9d82b651f81f159a6a652e1c526fb8b3f6a26d4c38cd1fb647e0ec46229", size = 94963, upload-time = "2026-11-06T01:53:38.063Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d8/9e/423922a79df8dc61ed668a4b2d6d46e75a6e754f5a18cf967188aa85e97e/openai_codex-0.163.0-py3-none-any.whl", hash = "sha256:d151e3ff8188bc2c07a962855d598b93bf87a49ec3440810e45a5f2e1167d99e", size = 99039, upload-time = "2026-10-15T21:50:50.773Z" }, + { url = "https://files.pythonhosted.org/packages/8a/8f/7b72095c54899ad980e62b241d92c465c2e36b41fb7261430742b8f589ad/openai_codex-0.167.0-py3-none-any.whl", hash = "sha256:753f17a7ad94720698f7182cc9dbb76906b38d21d728bfa87ac44e110493a815", size = 101500, upload-time = "2026-11-06T01:53:36.442Z" }, ] [[package]] name = "openai-codex-cli-bin" -version = "0.163.0" +version = "0.167.0" source = { registry = "https://pypi.org/simple" } wheels = [ - { url = "https://files.pythonhosted.org/packages/da/15/d83ddbe97e5eb691e77afed6772c01fc8878fedd68aac129d56c312048fa/openai_codex_cli_bin-0.163.0-py3-none-macosx_10_9_x86_64.whl", hash = "sha256:6b4a9e614e30442f9c2b804604b7fba12f218627f709fe5ba1960c01dac15ca1", size = 136246260, upload-time = "2026-10-15T21:49:06.132Z" }, - { url = "https://files.pythonhosted.org/packages/d1/c2/a26dc89782bb9fd94d6efeee1d22677084aba89c28fcb34c4699e490dfb1/openai_codex_cli_bin-0.163.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:dd0e6570930167f0e15ec94c5fb494a4a5a9dceb0a97113176c7b47c826cda05", size = 125132575, upload-time = "2026-10-15T21:49:12.601Z" }, - { url = "https://files.pythonhosted.org/packages/ed/50/5d60d97ebfa2f238fcc209d1764077a11d24eebd028f8a80bd0a180e1125/openai_codex_cli_bin-0.163.0-py3-none-manylinux_2_17_aarch64.whl", hash = "sha256:bb2b0d117eeb02608738cf2bcdf51f6a036343d0028272e11a94e72b0d23b141", size = 132956731, upload-time = "2026-10-15T21:49:19.442Z" }, - { url = "https://files.pythonhosted.org/packages/5f/64/eb70467d717510b78da54e2ae604a1b5348c17f535086e2825a283e540e2/openai_codex_cli_bin-0.163.0-py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:76db41fb07fdf9ddacbe892b48d21dfde270031ec0f5666b5e558114355f006d", size = 142400402, upload-time = "2026-10-15T21:49:30.322Z" }, - { url = "https://files.pythonhosted.org/packages/bb/45/19ae331c0a84e1e98f1297dcd35df487042bb3d2e2d1cdbd16036f440d79/openai_codex_cli_bin-0.163.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:64eca5277cf5158e43f78a231e51d7650d42071d5555b86de29cfffc86b700e1", size = 149819513, upload-time = "2026-10-15T21:49:38.227Z" }, - { url = "https://files.pythonhosted.org/packages/5c/c0/d7075139c0791ecc38df00e31c343e3434bc0852b49ac344a67804385e48/openai_codex_cli_bin-0.163.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:0e2984865a16661eddf431ff26d5effd24fa00175b9e8b7a7e2c889276707cca", size = 159434059, upload-time = "2026-10-15T21:49:46.891Z" }, - { url = "https://files.pythonhosted.org/packages/a3/0e/ac903da78d517bb0c4f83ad52dd44a7eefddf23c806e147adc123e4e1d3c/openai_codex_cli_bin-0.163.0-py3-none-win_amd64.whl", hash = "sha256:b759f212cc0deec6da9f297800797232c73d3f0d963842deaa02df965ee0b8b6", size = 153991643, upload-time = "2026-10-15T21:49:56.522Z" }, - { url = "https://files.pythonhosted.org/packages/f3/e8/acbc8fdf8a0160a807b0e8be249ab7d4077bd00679e8ee825c4afdafc82d/openai_codex_cli_bin-0.163.0-py3-none-win_arm64.whl", hash = "sha256:64c7d113e1bf6cefa87159c1d21115654a716e1b505295d8520aa91e399ad115", size = 142706698, upload-time = "2026-10-15T21:50:06.963Z" }, + { url = "https://files.pythonhosted.org/packages/32/7d/a8b20d99b1049d3a3247d45fedbeedbb19b154717769d3c3d6b3bbab0367/openai_codex_cli_bin-0.167.0-py3-none-macosx_10_9_x86_64.whl", hash = "sha256:0d14545d50329d85d70f30a411eff5fa45335b48ec319b3b540ec9ce94c84778", size = 171858811, upload-time = "2026-11-06T01:51:56.897Z" }, + { url = "https://files.pythonhosted.org/packages/75/f3/7f43b80b1c57bb0786325c921ba38d74931a244eae3c9aad576b399b687d/openai_codex_cli_bin-0.167.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:b1dc0cb9997f6a69ecabd17968026d295d2d4c8f0ad3af86171401af8c1f52b8", size = 158056877, upload-time = "2026-11-06T01:52:03.709Z" }, + { url = "https://files.pythonhosted.org/packages/3b/95/5ddd2a31d397b7a40b031e213d1eb24559de3e012844dbf4f1bc224272d6/openai_codex_cli_bin-0.167.0-py3-none-manylinux_2_17_aarch64.whl", hash = "sha256:91c317a33e122f5c836667a02e39401ec683cebff624057448953e0d477b17d7", size = 170989422, upload-time = "2026-11-06T01:52:10.279Z" }, + { url = "https://files.pythonhosted.org/packages/3a/d4/74c0be75c877b391b2d8ed79fef91e2129d696a1348ebc8e366a31f3f22a/openai_codex_cli_bin-0.167.0-py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:be588b0645c54859f2ae085db06aa7e669ec7e6ecb3f3047f2fe000213e8422e", size = 183159597, upload-time = "2026-11-06T01:52:17.516Z" }, + { url = "https://files.pythonhosted.org/packages/d4/af/2b32d02818f8281b3cef68bb97f689e148ee939d3d223c1386b7b6f59e52/openai_codex_cli_bin-0.167.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:df2c0ab6d610d8479f7c150e7c2e25e288c7ec165595f692afcde12f629db23e", size = 187857434, upload-time = "2026-11-06T01:52:24.909Z" }, + { url = "https://files.pythonhosted.org/packages/53/60/8af0b758a46df2532b87e73ab839b2f15edb0da20c52e11b6dc3fd9958b6/openai_codex_cli_bin-0.167.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:7822801a44ba82f253cde5085635e39116d713a0b298c5f7ad678ada1e5db7a3", size = 200187609, upload-time = "2026-11-06T01:52:34.251Z" }, + { url = "https://files.pythonhosted.org/packages/3b/45/76d887f892c87263ca5574cc27f550aa77534f8b65c8113c3d17250985be/openai_codex_cli_bin-0.167.0-py3-none-win_amd64.whl", hash = "sha256:1367c910a02ce33a4a100681cb8f9c1466bed50534d2f35ea6d70e0c031db17f", size = 193435218, upload-time = "2026-11-06T01:52:43.906Z" }, + { url = "https://files.pythonhosted.org/packages/60/56/0611da58c26ef602b30154e54cce0fd0cd369f5defc9d4073ed9b8e1405d/openai_codex_cli_bin-0.167.0-py3-none-win_arm64.whl", hash = "sha256:2f13595f5d2130d43397406568a83ba99d36a8a1def1c5492551c0507bb460e3", size = 179126975, upload-time = "2026-11-06T01:52:54.39Z" }, ] [[package]]