Skip to content

[Fleet Execution] Implement Browse and Export Script Example #255

@jules-fleet

Description

@jules-fleet

Goal Reference

This issue was generated from .fleet/goals/sdk-examples.md. The worker agent should read this file for full context including verification commands, constraints, and structural guidance.

Objective

Add a deterministic script example demonstrating how to list projects/screens and download HTML and screenshots to local files.

Code-Level Diagnosis

Code path: packages/sdk/examples/
Mechanism: The SDK currently lacks comprehensive examples demonstrating practical integrations across different form factors (Scripts, Agent Skills, CLIs, MCP).
Root cause: Missing Tier 1 script example for browsing and exporting designs.

Current Implementation

// The example directory does not currently exist.

Proposed Implementation

Files to modify: Create the missing files for the example and update the SDK README to link to the new example.

Integration (Before -> After)

+ // Create self-contained example integrating @google/stitch-sdk

Test Scenarios

  1. Validate the example builds correctly by running cd packages/sdk/examples/<example-name> && bun index.ts or checking type safety.
  2. Confirm that the README.md is updated with the new example link.
  3. Validate that any provided scripts run without runtime errors in the repository environment.

Target Files

  • packages/sdk/examples/browse-and-export/README.md
  • packages/sdk/examples/browse-and-export/index.ts
  • packages/sdk/README.md

Boundary Rules

Restrict your modifications exclusively to the files listed in the Target Files section. Ensure your source changes are entirely backward-compatible if unowned tests outside your boundary fail. Retain all existing file names and locations outside your explicitly declared target list.


Fleet Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    fleetFleet-managed issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions