feat: add queryable Assets resources#5921
Open
kof wants to merge 10 commits into
Open
Conversation
kof
added a commit
that referenced
this pull request
Jul 20, 2026
## Summary - add a **Create text file** action to the Assets toolbar and shared context/dropdown menu - validate filenames against the central editable-asset registry, create the empty file in the current asset folder, and open it in the text editor - keep simultaneous empty uploads distinct by including the filename in the upload fingerprint - keep internal Nano ID storage suffixes out of visible asset names and subsequent content revisions - show the immutable file extension beside the editable basename in Asset settings Asset querying, content hydration, structured data, bindings, generated runtime support, and MCP integration remain owned by #5921. ## Verification - Builder asset/text tests: 34 passed - SDK asset tests: 110 passed - project-build asset tests: 71 passed - asset-uploader revision tests: 5 passed - SDK, project-build, asset-uploader, and Builder typechecks - lint and package-boundary checks Ref #5824
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
This PR extends the existing Assets system resource with optional GROQ queries while preserving its fetch-all behavior by default. It adds canonical asset metadata, query-owned immutable indexes, Builder query tooling and autocomplete, selected-file content hydration, generated-app runtime support, and MCP parity.
Implementation decisions
Resource and query contract
POST /$resources/assets/querytransport only when query configuration is enabled.draft, as schema-less user data rather than built-in system policy.Canonical metadata and indexes
properties, separate from stable asset metadata.Builder and MCP
Publication and runtime
Implementation checklist
1. Contracts and compatibility
draftis conventional frontmatter rather than built-in publication behavior.2. Canonical asset metadata
asset.name.3. Query indexes and lifecycle
4. Builder query experience
5. Published applications
6. MCP parity and real-world validation
7. Test quality and final hardening
Validation completed
All implementation and validation checklist items are complete.
Closes #5919
Ref #5920