mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 10:45:45 +00:00
MCP: document.json names linked JavaScript files outside the read roots by file name
With automation read roots in force, document.json returned each entry of svg_scripts unchanged, so a JavaScript file linked from outside the read roots kept its full path in the reply. The reply copy now names such a file by its file name alone. An entry given as a URL is kept, and the stored document is not changed.
This commit is contained in:
+2
-1
@@ -227,7 +227,8 @@ the suite) keep the agent to the folders you give it:
|
||||
leaves out the link's `relative`, `size` and `modified`. This covers the art of the brushes in `unknown.brushes`
|
||||
too. A link whose file is inside them keeps its `path` but leaves out a `relative` that leads outside them. A
|
||||
stored brush entry that does not read as a brush is left out of `unknown.brushes`. `document.json` also names a data set's image
|
||||
value outside them by its file name alone, and leaves out the `folder` of `export_settings` (the settings Export
|
||||
value and a linked JavaScript file in `svg_scripts` outside them by its file name alone (a JavaScript file given
|
||||
as a URL is kept), and leaves out the `folder` of `export_settings` (the settings Export
|
||||
for Screens last used) when that folder is outside them. The document itself is not changed.
|
||||
- `plugin.list`, `plugin.safeMode`, `file.recovery.*` and `ui_inspect`'s `scriptReport` leave out the paths
|
||||
outside the read roots, also those the person or an earlier request put there. In `plugin.list`, the plug-in
|
||||
|
||||
Reference in New Issue
Block a user