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.
Files changed (2) hide show
  1. package/mcp/server.mjs +6 -3
  2. 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
- // Recursive walks can return huge content payloads force summary mode
2498
- // so each entry stays small. Agents that need full content can read individual frames.
2499
- if (recursive) {
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.22",
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": [