Skip to content

Include local blocks for hub assistants #6074

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RomneyDa
Copy link
Collaborator

@RomneyDa RomneyDa commented Jun 11, 2025

Description

Adds support for local blocks to hub assistants
Achieves this by creating a simple "dud" assistant to unroll, made up of any local blocks
Moves some utils around, including retrieval of local block files and creation of a registry. This is mostly so that adding this support for JSON is simple in the future.

This should be followed by a PR to add support for JSON

@RomneyDa RomneyDa requested a review from a team as a code owner June 11, 2025 06:24
@RomneyDa RomneyDa requested review from tomasz-stefaniak and removed request for a team June 11, 2025 06:24
Copy link

cubic-dev-ai bot commented Jun 11, 2025

Your cubic subscription is currently inactive. Please reactivate your subscription to receive AI reviews and use cubic.

Copy link

netlify bot commented Jun 11, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 7a9f332
🔍 Latest deploy log https://app.netlify.com/projects/continuedev/deploys/6850577659189c0008dda561

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 11, 2025
@RomneyDa RomneyDa requested review from sestinj and removed request for tomasz-stefaniak June 11, 2025 06:29
}
const rootPath =
packageIdentifier.uriType === "file"
? dirname(getCleanUriPath(packageIdentifier.filePath))
Copy link

Choose a reason for hiding this comment

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

Unsafe URI path handling: The code assumes packageIdentifier.filePath exists but doesn't check if it's undefined. If filePath is undefined, this will cause a runtime error. Should add a null check before using filePath.


React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)

Copy link

recurseml bot commented Jun 13, 2025

😱 Found 1 issue. Time to roll up your sleeves! 😱

@sestinj
Copy link
Contributor

sestinj commented Jun 16, 2025

I think the test failures here are legit @RomneyDa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants