Skip to content

Fix Artifact Schemas: Align with v1alpha API#85

Merged
davideast merged 2 commits intomainfrom
fix-artifact-schemas-3830261771133263914
Feb 25, 2026
Merged

Fix Artifact Schemas: Align with v1alpha API#85
davideast merged 2 commits intomainfrom
fix-artifact-schemas-3830261771133263914

Conversation

@davideast
Copy link
Collaborator

This PR aligns the SDK's artifact schemas with the v1alpha API.
Specifically:

  • RestMediaArtifact now uses mimeType instead of format.
  • RestBashOutputArtifact now uses output instead of stdout and stderr.

The MediaArtifact and BashArtifact classes have been updated to consume these new fields while maintaining backward compatibility for the public SDK surface (format and stdout properties are still populated).
Existing tests have been updated to match the new schema.


PR created automatically by Jules for task 3830261771133263914 started by @davideast

Fixes #79

* types.ts:
    * Update `RestMediaArtifact` to use `mimeType` instead of `format`.
    * Update `RestBashOutputArtifact` to use `output` instead of `stdout`/`stderr`.
* artifacts.ts:
    * Update `MediaArtifact` constructor to map `mimeType` to `format`.
    * Update `BashArtifact` constructor to map `output` to `stdout`.
* tests:
    * Update `mappers.test.ts` and `artifacts.test.ts` to reflect the schema changes.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

* Align SDK artifact schemas with v1alpha API (mimeType, output).
* Update `RestMediaArtifact` to use `mimeType` instead of `format`.
* Update `RestBashOutputArtifact` to use `output` instead of `stdout`/`stderr`.
* Update `MediaArtifact` and `BashArtifact` constructors to map new fields to old properties for backward compatibility.
* Fix MCP test helpers to use new `BashArtifact` constructor signature.
* Update core tests to reflect schema changes.

Fixes #79

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@davideast davideast merged commit 53cec77 into main Feb 25, 2026
3 checks passed
@davideast davideast deleted the fix-artifact-schemas-3830261771133263914 branch February 25, 2026 16:32
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.

1 participant