feat: add devin_blueprint and devin_snapshot_build resources - #2
Open
Abhishek21g wants to merge 1 commit into
Open
feat: add devin_blueprint and devin_snapshot_build resources#2Abhishek21g wants to merge 1 commit into
Abhishek21g wants to merge 1 commit into
Conversation
Closes CognitionAI#1 by exposing org/repo blueprints and manual snapshot builds via the v3beta1 snapshot-setup API. Includes presigned URL fetch for blueprint YAML contents and optional wait_until_complete on builds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
devin_blueprintresource for org- and repo-tier environment blueprints via the v3beta1 snapshot-setup API (closes Add a way to set org blueprints #1)devin_snapshot_buildresource to trigger manual snapshot builds after blueprint changes (mutations do not auto-build)wait_until_completeon buildsWhy
Issue #1 asks for GitOps-friendly blueprint management. Blueprints are core Devin infra — this lets platform teams track environment YAML in Terraform alongside playbooks and secrets.
Test plan
go test ./...(field coverage + client tests)TF_ACC=1 go test ./internal/provider -run Blueprint -vagainst localhost API with snapshot permissionsNotes
internal/api/snapshot_setup.go(not yet in filtered openapi.json)devin_snapshot_buildcancels in-flight builds; completed builds are removed from state onlyDevin Review