drafted 1.11.22 → 1.11.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mcp/server.mjs +6 -3
- package/package.json +1 -1
package/mcp/server.mjs
CHANGED
|
@@ -2494,9 +2494,12 @@ tool('ls', 'List contents of the ACTIVE PROJECT. Use ls / after project(action="
|
|
|
2494
2494
|
try {
|
|
2495
2495
|
const params = new URLSearchParams();
|
|
2496
2496
|
params.set('path', path);
|
|
2497
|
-
//
|
|
2498
|
-
//
|
|
2499
|
-
|
|
2497
|
+
// At layer depth (/designs, /wireframes, etc.) auto-recurse so frames in sublanes
|
|
2498
|
+
// are always visible — without this, agents only see root frames and miss any frame
|
|
2499
|
+
// whose lane != "". Recursive walks force summary mode to keep payloads small.
|
|
2500
|
+
const cleanPath = (path || '/').replace(/^\/+|\/+$/g, '');
|
|
2501
|
+
const pathDepth = cleanPath ? cleanPath.split('/').length : 0;
|
|
2502
|
+
if (recursive || pathDepth === 1) {
|
|
2500
2503
|
params.set('recursive', 'true');
|
|
2501
2504
|
params.set('summary', 'true');
|
|
2502
2505
|
} else if (summary) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drafted",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.23",
|
|
4
4
|
"description": "Drafted — visual thinking surface for humans and AI agents. Renders HTML, markdown, images, and code as frames on a zoomable canvas, with MCP tools for AI agents and real-time sync for humans.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|