@getnote/cli 1.2.0 → 1.2.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.
package/package.json
CHANGED
|
@@ -61,20 +61,20 @@ Returns `status` (`pending` / `processing` / `success` / `failed`) and `note_id`
|
|
|
61
61
|
### List recent notes
|
|
62
62
|
|
|
63
63
|
```
|
|
64
|
-
getnote notes [--
|
|
64
|
+
getnote notes [--cursor <cursor>] [--all]
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
Returns 20 notes per page (fixed). No `--limit` flag.
|
|
68
68
|
|
|
69
69
|
| Flag | Description |
|
|
70
70
|
|------|-------------|
|
|
71
|
-
| `--
|
|
71
|
+
| `--cursor` | Pagination cursor (the `cursor` value from the previous page) |
|
|
72
72
|
| `--all` | Fetch all notes (auto-paginate, streams output) |
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
75
|
getnote notes
|
|
76
76
|
getnote notes --all
|
|
77
|
-
getnote notes --
|
|
77
|
+
getnote notes --cursor 1914025811879486080
|
|
78
78
|
getnote notes -o json
|
|
79
79
|
```
|
|
80
80
|
|
|
@@ -176,7 +176,7 @@ Returns: `share_url` (e.g. `https://biji.com/note/share_note/rBzdMlXrzgYVM`)
|
|
|
176
176
|
- `save` (share link): returns `{"note_id":"...","title":"...","created_at":"...","updated_at":"..."}` directly
|
|
177
177
|
- `save` (regular link/image): returns `{"data":{"tasks":[{"task_id":"..."}],...}}`
|
|
178
178
|
- `task`: returns `{"success":true,"data":{"status":"...","note_id":"..."}}`
|
|
179
|
-
- `notes` list returns **20 per page** (no `--limit`); paginate with `--
|
|
179
|
+
- `notes` list returns **20 per page** (no `--limit`); paginate with `--cursor` (the `cursor` value from the previous page).
|
|
180
180
|
- Note IDs are int64 — always handle as strings to avoid precision loss in JavaScript.
|
|
181
181
|
- Exit code `0` = success; non-zero = error. Error details go to stderr.
|
|
182
182
|
|
|
@@ -27,7 +27,7 @@ getnote search <query> [--kb <topic_id>] [--limit <n>]
|
|
|
27
27
|
|
|
28
28
|
Results are ranked by semantic relevance (high → low). Each result includes: `note_id`, `title`, `content` (excerpt), `score`, `created_at`, `note_type`.
|
|
29
29
|
|
|
30
|
-
> Note: `note_id` is only populated for `NOTE` type results
|
|
30
|
+
> Note: `note_type` is one of `NOTE`, `FILE`, `BLOGGER`, `LIVE`, `URL`, `DEDAO`. `note_id` is only populated for `NOTE` type results; other types return an empty `note_id`.
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
# Search across all notes
|