rootr-cli 0.17.2 → 0.17.3

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/bin/rootr.js CHANGED
@@ -99,6 +99,8 @@ const USAGE_KO = `Rootr CLI v${pkg.version}
99
99
  설정 우선순위: 환경변수(ROOTR_API_KEY, ROOTR_WORKSPACE, ROOTR_BASE_URL) > ~/.rootr/config.json
100
100
 
101
101
  경로 인자는 '/'로 시작해야 합니다 (예: /notes/todo.md). 그 외 값은 노드 id로 취급됩니다.
102
+
103
+ 출력 언어: 로케일을 따릅니다. 영어로 보려면 ROOTR_LANG=en, 한국어로 고정하려면 ROOTR_LANG=ko.
102
104
  `;
103
105
 
104
106
  const USAGE_EN = `Rootr CLI v${pkg.version}
package/lib/client.js CHANGED
@@ -215,9 +215,19 @@ export class RootrClient {
215
215
 
216
216
  // ---- Tree / navigation -------------------------------------------------
217
217
 
218
- async getTree() {
218
+ /**
219
+ * 트리를 받아 온다.
220
+ *
221
+ * 서버 기본 깊이는 **2단계**다 — 화면은 접힌 가지를 펼칠 때 더 불러오면 되지만,
222
+ * `rootr ls`·MCP 목록은 한 번에 받은 것이 전부라 3단계부터 통째로 안 보였다.
223
+ * "폴더만 나오고 그 안의 문서는 안 나온다"는 제보(이슈 #106)가 이것이다 —
224
+ * 문서 하위라서가 아니라 **깊이** 때문이었다. 서버 상한이 10이라 그 값을 쓴다.
225
+ */
226
+ async getTree({ depth = 10 } = {}) {
219
227
  this._requireWorkspace();
220
- const data = await this.request(`/workspaces/${encodeURIComponent(this.workspace)}/tree`);
228
+ const data = await this.request(
229
+ `/workspaces/${encodeURIComponent(this.workspace)}/tree?depth=${encodeURIComponent(depth)}`,
230
+ );
221
231
  if (Array.isArray(data)) return data;
222
232
  if (data && Array.isArray(data.nodes)) return data.nodes;
223
233
  if (data && Array.isArray(data.tree)) return data.tree;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rootr-cli",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "Official Rootr CLI + MCP server — read, write, edit and search Rootr documents from the shell or from an AI agent.",
5
5
  "type": "module",
6
6
  "bin": {