dofs: Add bounded filesystem primitives - #79
Open
aron-cf wants to merge 6 commits into
Open
Conversation
馃 Changeset detectedLatest commit: 80d82a8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Thanks for your interest in Cloudflare Computer. This repository does not accept unsolicited pull requests. Please use one of the accepted contribution paths instead:
If a maintainer asked you to open this pull request, they can add the |
commit: |
aron-cf
marked this pull request as ready for review
August 7, 2026 15:20
Return file size and modification time from readdir, and apply limit and offset after pending write buffers are merged into stable name order.
Add readRange to WorkspaceFilesystem so callers can read a byte window without materializing or transferring the whole file.
Teach find that a question mark matches one non-separator character so its glob surface covers the pattern documented by the AI find tool.
Keep literal, case-sensitive defaults while adding regular expressions, explicit case handling, numbered context, and limit and offset controls for tool callers.
Keep the new pagination tests compliant with the repository-wide Biome import ordering check.
Record the directory, range-read, glob, and grep additions with the storage package that introduces them.
aron-cf
force-pushed
the
stack/improve-tools-01-dofs-primitives
branch
from
August 7, 2026 15:29
b85296c to
80d82a8
Compare
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.
Stack 1 of 7. Base:
main. Head:stack/improve-tools-01-dofs-primitives.The storage filesystem could not page directories after merging pending writes, expose bounded byte reads through its main facade, match single-character globs, or bound search results. Tool callers therefore had to transfer too much data or implement behavior outside the authoritative storage layer.
This change adds stable name-ordered directory pages with size and modification time, including entries held in write buffers. It exposes byte-range reads on
WorkspaceFilesystem, adds?glob matching, and extendsgrepwith fixed-string and regular-expression modes, explicit case handling, context lines, limits, and offsets. Existinggrepcallers retain literal, case-sensitive defaults.Verification
npm test --workspace @cloudflare/dofs npm run typecheck --workspace @cloudflare/dofs npm run build --workspace @cloudflare/dofsThe next stack part carries these bounded primitives through the Computer facade and AI tool adapters.