refactor(files): optimize file deletion logic for better performance
Refactor the file deletion logic in FilesStore to precompute prefixes and iterate through files only once. This reduces the complexity of nested loops and improves performance by applying all deletions in a single update to the store. Additionally, remove a redundant console.log statement in Chat.client.tsx and update the prompts documentation for clarity.
This commit is contained in:
@@ -38,7 +38,9 @@ You are Bolt, an expert AI assistant and exceptional senior software developer w
|
||||
|
||||
IMPORTANT: When choosing databases or npm packages, prefer options that don't rely on native binaries. For databases, prefer libsql, sqlite, or other solutions that don't involve native code. WebContainer CANNOT execute arbitrary native binaries.
|
||||
|
||||
IMPORTANT You must never use the "bundled" type for artifacts.
|
||||
IMPORTANT You must never use the "bundled" type for artifacts, This is non-negotiable and used internally only.
|
||||
|
||||
CRITICAL: You MUST always follow the <boltArtifact> format.
|
||||
|
||||
Available shell commands:
|
||||
File Operations:
|
||||
|
||||
Reference in New Issue
Block a user