Skip to content

Conversation

@sestinj
Copy link
Contributor

@sestinj sestinj commented Aug 25, 2025

Description

feat: allow/blocklisted blocks in unrollAssistant


Summary by cubic

Add allowlist and blocklist support to unrollAssistant to restrict which registry blocks can be used. Checks apply to slug-based "uses" blocks; file-based blocks are not affected and continue to work.

  • New Features
    • Added allowlistedBlocks and blocklistedBlocks options to unrollAssistant/unrollBlocks.
    • If an allowlist is provided, only those slugs are permitted; any block on the blocklist is rejected.
    • Disallowed blocks return clear errors including the owner/package slug via result.errors.
    • Defaults remain unchanged when no lists are provided.
    • Tests cover blocklisted, not-allowlisted, allowed, and file-based scenarios.

@sestinj sestinj requested a review from a team as a code owner August 25, 2025 22:15
@sestinj sestinj requested review from tingwai and removed request for a team August 25, 2025 22:15
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Aug 25, 2025
Copy link
Contributor

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

Choose a reason for hiding this comment

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

1 issue found across 2 files

React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Aug 25, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 25, 2025
@sestinj sestinj merged commit c9ecefa into main Aug 25, 2025
82 of 84 checks passed
@sestinj sestinj deleted the nate/unroll-assistant-list-blocks branch August 25, 2025 23:16
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Aug 25, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2025
@github-actions github-actions bot added the tier 2 Important feature that adds new capabilities to the platform or improves critical user journeys label Aug 25, 2025
@sestinj
Copy link
Contributor Author

sestinj commented Aug 25, 2025

🎉 This PR is included in version 1.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Aug 27, 2025

🎉 This PR is included in version 1.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer released size:L This PR changes 100-499 lines, ignoring generated files. tier 2 Important feature that adds new capabilities to the platform or improves critical user journeys

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants