Skip to content

chore(integrations): require stagehand-middleware 0.1.2 in deepagents - #3351

Merged
miguelg719 merged 2 commits into
mainfrom
chore/deepagents-middleware-0.1.2
Nov 5, 2026
Merged

miguelg719 merged 2 commits into
mainfrom
chore/deepagents-middleware-0.1.2

Conversation

@miguelg719

@miguelg719 miguelg719 commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

why

stagehand-middleware 0.1.2 is published with the screenshot artifact changes from #3350; the deepagents package and examples still locked 0.1.0.

what changed

  • stagehand-middleware>=0.1.2,<0.2 in deepagents and both examples (local, managed).
  • Relocked all three uv.lock files (0.1.0 → 0.1.2).

test plan

  • deepagents pytest (12) and ruff against the published 0.1.2

Summary by cubic

Updates stagehand-middleware from 0.1.0 to 0.1.2 in the deepagents package and both examples, and relocks the root uv.lock to pick up the screenshot artifact changes from #3350.

Written for commit db5befa. Summary will update on new commits.

View guided diff Turn on auto-fix

@changeset-bot

changeset-bot Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: db5befa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 6 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.
Architecture diagram
sequenceDiagram
    participant DeepAgents as DeepAgents Package
    participant Stagehand as Stagehand SDK
    participant Middleware as stagehand-middleware
    participant MCP as MCP Server (stagehand-deepagents-mcp)
    participant Agent as LangChain Deep Agent

    Note over DeepAgents,Middleware: Dependency Resolution (uv.lock)

    DeepAgents->>DeepAgents: pyproject.toml (stagehand>=4.3.0,<5)
    DeepAgents->>DeepAgents: pyproject.toml (stagehand-middleware>=0.1.2,<0.2)

    alt Runtime: Agent initialized
        Agent->>DeepAgents: Create browser tools
        DeepAgents->>Stagehand: Initialize browser (v4.3+)
        DeepAgents->>Middleware: NEW: version 0.1.2 screenshot artifact support
        Middleware->>Stagehand: Capture screenshot (with artifact changes)
        Stagehand-->>Middleware: Screenshot result
        Middleware-->>DeepAgents: Tool response with screenshot artifact
        
        opt MCP Server process
            Agent->>MCP: stagehand-deepagents-mcp CLI entry
            MCP->>DeepAgents: import server module
            MCP->>Middleware: Route browser actions (v0.1.2)
            Middleware-->>MCP: Processed actions
            MCP-->>Agent: Tool results
        end
    else Installation/Resolution
        DeepAgents->>DeepAgents: Fetch stagehand-middleware 0.1.2 (lockfile constraint)
        DeepAgents->>DeepAgents: Verify compatible with stagehand 4.x
    end

    Note over DeepAgents,Middleware: Constraint: >=0.1.2,<0.2 (major-version locked)
Loading

View guided diff | Turn on auto-fix | Re-trigger cubic

…leware-0.1.2

# Conflicts:
#	packages/integrations/deepagents/examples/local/uv.lock
#	packages/integrations/deepagents/examples/managed/uv.lock
#	packages/integrations/deepagents/uv.lock
@miguelg719
miguelg719 merged commit c91e167 into main Nov 5, 2026
35 of 37 checks passed
@miguelg719
miguelg719 deleted the chore/deepagents-middleware-0.1.2 branch November 5, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants