Skip to content

[chore]: bump archiver dep in browse - #3379

Merged
seanmcguire12 merged 3 commits into
cli-oxfmtfrom
bump-archiver-in-cli
Nov 3, 2026
Merged

seanmcguire12 merged 3 commits into
cli-oxfmtfrom
bump-archiver-in-cli

Conversation

@seanmcguire12

@seanmcguire12 seanmcguire12 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

what changed

  • bumps archiver dependency to 8.x.x
  • removes unused deepmerge dependency

Summary by cubic

Bumps archiver to 8.x in the browse package and removes the unused deepmerge dependency. archiver 8 no longer exports a default function, so publish.ts now uses the TarArchive class, and @types/archiver is bumped to match.

Written for commit 5d8ea53. Summary will update on new commits.

View guided diff Turn on auto-fix

@changeset-bot

changeset-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5d8ea53

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
browse Patch

Not sure what this means? Click here to learn what changesets are.

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

@seanmcguire12
seanmcguire12 changed the base branch from main to cli-oxfmt November 3, 2026 23:13
@seanmcguire12
seanmcguire12 added this pull request to stack #3380 November 3, 2026 23:13
@socket-security

socket-security Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​types/​archiver@​6.0.4 ⏵ 8.0.010010071 +186 +5100
Updatednpm/​archiver@​7.0.1 ⏵ 8.0.0991009881100

View full report

@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.

All reported issues were addressed across 170 files

Architecture diagram
sequenceDiagram
    participant CLI as browse CLI
    participant Oclif as Oclif Runtime
    participant Daemon as Driver Daemon
    participant Archiver as Archiver v8
    participant FS as File System
    
    Note over CLI,FS: Runtime Architecture - Dependency & Formatting Changes
    
    CLI->>Oclif: Execute command
    Oclif->>Oclif: Load command modules
    
    alt Driver commands (e.g., open, click, type)
        Oclif->>Daemon: Send driver request via socket
        Daemon->>Daemon: Execute browser operation
        
        alt Download/session files command
            Daemon->>Archiver: NEW: Use archiver v8 API
            Archiver->>FS: Create ZIP archive
            FS-->>Archiver: File stream
            Archiver-->>Daemon: Archive complete
        end
        
        Daemon-->>Oclif: Driver response
        Oclif-->>CLI: Output result
    end
    
    Note over CLI,FS: Formatting Pipeline
    
    CLI->>CLI: Run format:check
    CLI->>CLI: Use oxfmt with .oxfmtrc config
    alt File in packages/cli/src/**
        CLI->>CLI: Apply formatting rules
    else File in .browserbase directory
        CLI->>CLI: Skip formatting (ignored)
    end
    
    Note over CLI,FS: Dependency Management
    
    CLI->>CLI: Resolve dependencies
    alt archiver dependency
        CLI->>CLI: CHANGED: Use v8.x.x
    else deepmerge dependency
        CLI->>CLI: Removed (unused)
    end
    
    Note over CLI,FS: Error Handling
    
    Oclif->>Oclif: Command execution error
    alt CommandFailure
        Oclif->>CLI: Format error message
        CLI->>CLI: Exit with error code
    end
Loading

Reply with feedback, questions, or to request a fix.

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

Comment thread packages/cli/package.json Resolved

@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 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.
Architecture diagram
sequenceDiagram
    participant CLI as CLI Entry
    participant Publish as publish.ts
    participant Tar as TarArchive
    participant FS as File System
    participant Ignore as ignore()

    Note over CLI,Tar: New archiver 8.x integration in browse package publish flow

    CLI->>Publish: publish command invoked
    Publish->>Publish: createArchive(root)
    Publish->>FS: createWriteStream(archivePath)
    Publish->>Tar: new TarArchive({ gzip: true, gzipOptions: { level: 9 } })
    Tar-->>Publish: archive instance
    Publish->>Ignore: load .gitignore rules
    Ignore-->>Publish: ignore matcher
    Publish->>Publish: enumerate files to include
    loop each file
        Publish->>Tar: append(file, { name })
    end
    Publish->>Tar: finalize()
    Tar->>FS: stream tar+gzip output to archivePath
    FS-->>Tar: write complete
    Tar-->>Publish: archive finalized
    Publish-->>CLI: archive generated
Loading

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

@seanmcguire12
seanmcguire12 merged commit 73fdba0 into main Nov 3, 2026
60 checks passed
@seanmcguire12
seanmcguire12 deleted the bump-archiver-in-cli branch November 3, 2026 23:25
shrey150 pushed a commit that referenced this pull request Nov 13, 2026
Release Browse independently of the Stagehand SDKs. Merging this PR
publishes the CLI from the merged commit.

## 0.11.4

### Patch Changes

- [#3426](#3426)
[`f93e6d1`](f93e6d1)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Report an
error when an active browser session disconnects during command startup
instead of automatically starting a replacement.

- [#3379](#3379)
[`73fdba0`](73fdba0)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - remove
unused deepmerge dependency

- [#3330](#3330)
[`dc8eb40`](dc8eb40)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - bump zod to
4.6.6

- [#3289](#3289)
[`aa67fee`](aa67fee)
Thanks [@shrey150](https://github.com/shrey150)! - Add `--stagehand`
flag to `browse cloud extensions upload`.

- [#3439](#3439)
[`2fe947c`](2fe947c)
Thanks [@github-actions](https://github.com/apps/github-actions)! - Make
`browse doctor` fail and show the cause when the session's last browser
start failed

- [#3400](#3400)
[`ce298c6`](ce298c6)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Add token
validation to internal local Functions runtime requests

- [#3408](#3408)
[`6a56cbb`](6a56cbb)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Fix Windows
package-manager command launching for Functions and templates, and
terminate child processes when skill installation times out.

- [#3391](#3391)
[`3fbda6b`](3fbda6b)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Validate
daemon directory locations before connecting to a session.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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