@getnote/cli 1.1.0 → 1.1.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
|
@@ -25,7 +25,10 @@ getnote save <url|text|image_path> [--title <title>] [--tag <tag>]...
|
|
|
25
25
|
| `--title` | Optional title |
|
|
26
26
|
| `--tag` | Tag to apply; may be repeated |
|
|
27
27
|
|
|
28
|
-
- URL (`http://` or `https://`) → link note
|
|
28
|
+
- URL (`http://` or `https://`) → link note:
|
|
29
|
+
- **Share link** (`biji.com/note/share_note/*` or `d.biji.com/*` short link) → **sync**, returns `note_id` directly, no polling needed
|
|
30
|
+
- **Internal note link** (`biji.com/note/{note_id}`) → this is the format for linking to another note inside note content; use it in `content` field when referencing other notes. If the current note will be shared publicly, prefer using the referenced note's share link (`getnote note share <id>`) instead of the internal link format
|
|
31
|
+
- **Other URLs** → async, auto-polls until done
|
|
29
32
|
- Local image path → image note (async, auto-polls until done)
|
|
30
33
|
- Otherwise → text note (sync)
|
|
31
34
|
|
|
@@ -166,7 +169,8 @@ Returns: `share_url` (e.g. `https://biji.com/note/share_note/rBzdMlXrzgYVM`)
|
|
|
166
169
|
- Use `-o json` when parsing responses programmatically.
|
|
167
170
|
- All JSON responses follow `{"success":true,"data":{...}}` structure, **except**:
|
|
168
171
|
- `save` (text): returns `{"note_id":"..."}` directly
|
|
169
|
-
- `save` (link
|
|
172
|
+
- `save` (share link): returns `{"note_id":"...","title":"...","created_at":"...","updated_at":"..."}` directly
|
|
173
|
+
- `save` (regular link/image): returns `{"data":{"tasks":[{"task_id":"..."}],...}}`
|
|
170
174
|
- `task`: returns `{"success":true,"data":{"status":"...","note_id":"..."}}`
|
|
171
175
|
- `notes` list returns **20 per page** (no `--limit`); paginate with `--since-id`.
|
|
172
176
|
- Note IDs are int64 — always handle as strings to avoid precision loss in JavaScript.
|