-
Notifications
You must be signed in to change notification settings - Fork 3k
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
base: main
Are you sure you want to change the base?
Conversation
Your cubic subscription is currently inactive. Please reactivate your subscription to receive AI reviews and use cubic. |
✅ Deploy Preview for continuedev canceled.
|
} | ||
const rootPath = | ||
packageIdentifier.uriType === "file" | ||
? dirname(getCleanUriPath(packageIdentifier.filePath)) |
There was a problem hiding this comment.
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)
😱 Found 1 issue. Time to roll up your sleeves! 😱 |
I think the test failures here are legit @RomneyDa |
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