@dreamlake/dreamlake-cli 0.97.0 → 0.97.1

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.
@@ -69,13 +69,13 @@ export function nodesApi(t) {
69
69
  return {
70
70
  list: (query = {}) => call(t, "GET", "/nodes", undefined, query),
71
71
  children: (query) => call(t, "GET", "/nodes/children", undefined, query),
72
- descendants: (id, query = {}) => call(t, "GET", `/nodes/${seg(id)}/descendants`, undefined, { includeArchived: false, ...query }),
72
+ descendants: (id, query = {}) => call(t, "GET", `/nodes/${seg(id)}/descendants`, undefined, { ...query, includeArchived: query.includeArchived ?? false }),
73
73
  /** Only folder nodes are archivable; the server enforces kind and write access. */
74
74
  archive: (id) => call(t, "PATCH", `/nodes/${seg(id)}`, { archived: true }),
75
75
  unarchive: (id) => call(t, "PATCH", `/nodes/${seg(id)}`, { archived: false }),
76
76
  lookup: (query) => call(t, "GET", "/nodes/lookup", undefined, query),
77
77
  episodes: (id, query = {}) => call(t, "GET", `/nodes/${seg(id)}/episodes`, undefined, query),
78
- contents: (id, query = {}) => call(t, "GET", `/nodes/${seg(id)}/contents`, undefined, query),
78
+ contents: (id, query = {}) => call(t, "GET", `/nodes/${seg(id)}/contents`, undefined, { ...query, includeArchived: query.includeArchived ?? false }),
79
79
  update: (id, input) => call(t, "PATCH", `/nodes/${seg(id)}`, input),
80
80
  delete: (id) => call(t, "DELETE", `/nodes/${seg(id)}`),
81
81
  download: (id) => call(t, "GET", `/nodes/${seg(id)}/download`),
@@ -124,7 +124,7 @@ export async function fetchAllContents(remote, token, nodeId, kind, options = {}
124
124
  for (;;) {
125
125
  const data = await requestJson(remote, `/nodes/${nodeId}/contents`, {
126
126
  token,
127
- query: { page, pageSize: 500, kind: kind ?? undefined, ...options },
127
+ query: { page, pageSize: 500, kind: kind ?? undefined, ...options, includeArchived: options.includeArchived ?? false },
128
128
  });
129
129
  const batch = data.files ?? [];
130
130
  files.push(...batch);
@@ -1 +1 @@
1
- export declare const VERSION = "0.97.0";
1
+ export declare const VERSION = "0.97.1";
@@ -6,4 +6,4 @@
6
6
  // value means a binary that re-installs the same version forever.
7
7
  //
8
8
  // Editing this by hand does nothing for a release; bump package.json.
9
- export const VERSION = "0.97.0";
9
+ export const VERSION = "0.97.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamlake/dreamlake-cli",
3
- "version": "0.97.0",
3
+ "version": "0.97.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dreamlake-ai/dreamlake-cli.git"
@@ -35,13 +35,13 @@
35
35
  "node": ">=18"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@dreamlake/dreamlake-cli-darwin-arm64": "0.97.0",
39
- "@dreamlake/dreamlake-cli-darwin-x64": "0.97.0",
40
- "@dreamlake/dreamlake-cli-linux-x64": "0.97.0",
41
- "@dreamlake/dreamlake-cli-linux-arm64": "0.97.0",
42
- "@dreamlake/dreamlake-cli-linux-x64-musl": "0.97.0",
43
- "@dreamlake/dreamlake-cli-linux-arm64-musl": "0.97.0",
44
- "@dreamlake/dreamlake-cli-win32-x64": "0.97.0",
45
- "@dreamlake/dreamlake-cli-win32-arm64": "0.97.0"
38
+ "@dreamlake/dreamlake-cli-darwin-arm64": "0.97.1",
39
+ "@dreamlake/dreamlake-cli-darwin-x64": "0.97.1",
40
+ "@dreamlake/dreamlake-cli-linux-x64": "0.97.1",
41
+ "@dreamlake/dreamlake-cli-linux-arm64": "0.97.1",
42
+ "@dreamlake/dreamlake-cli-linux-x64-musl": "0.97.1",
43
+ "@dreamlake/dreamlake-cli-linux-arm64-musl": "0.97.1",
44
+ "@dreamlake/dreamlake-cli-win32-x64": "0.97.1",
45
+ "@dreamlake/dreamlake-cli-win32-arm64": "0.97.1"
46
46
  }
47
47
  }