feat(files): scoped search, in-place edits, and ranged reads for agent memory filesystems - #7393
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThe PR expands workspace-file operations with scoped folder selection, precise in-place edits, ranged reads, and corresponding API, CLI, workflow, forking, migration, test, and documentation updates.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/workspace-files/application/edit-workspace-file-content.ts | Introduces the typed application use case for authorized, conflict-aware in-place workspace-file edits. |
| apps/sim/lib/workspace-files/application/search-workspace-file-content.ts | Adds folder-scoped workspace-file content search and scoped index-coverage reporting. |
| apps/sim/lib/workspace-files/application/read-workspace-file-text.ts | Adds optional line windows and associated range metadata to text extraction. |
| apps/sim/lib/workspace-files/application/edit-workspace-file-content.test.ts | Covers edit behavior using a corrected session principal fixture and precisely typed edit helper. |
| apps/sim/ee/workspace-forking/lib/remap/remap-references.ts | Extends fork reference remapping to preserve workspace file-folder scopes. |
| apps/sim/lib/api/contracts/v2/files.ts | Aligns V2 file contracts with scoped search, ranged reads, folder operations, and partial edits. |
| packages/db/migrations/0320_striped_shatterstar.sql | Adds the database migration supporting the new workspace-file folder and reference behavior. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
Client[Workflow, API, or CLI client] --> Scope[Resolve workspace and folder scope]
Scope --> Search[Search indexed file content]
Scope --> Read[Read selected files and line ranges]
Scope --> Edit[Apply exact or anchor-based edit]
Scope --> Manage[Create, move, delete, or restore folders]
Search --> Result[Scoped results and coverage status]
Read --> Result
Edit --> Result
Manage --> Result
Fork[Workspace fork or sync] --> Mapping[Map files and folder paths]
Mapping --> Scope
Reviews (20): Last reviewed commit: "fix(files): keep replacement content lit..." | Re-trigger Greptile
|
@cubic review |
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
|
@cubic review |
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
|
@cubic review |
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
|
@cubic review |
c360562 to
e05944c
Compare
|
@cubic-dev-ai review this PR |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 135 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Fix all with cubic | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 135 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Fix all with cubic | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 136 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Fix all with cubic | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 137 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Re-trigger cubic
Summary
Validation