@getnote/cli 1.1.0 → 1.1.2

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/README.md CHANGED
@@ -20,7 +20,7 @@ npm install -g @getnote/cli
20
20
 
21
21
  **第一步:安装**
22
22
  ```bash
23
- npm install -g @getnote/cli
23
+ # 已完成,如上
24
24
  ```
25
25
 
26
26
  **(可选)安装 AI Agent Skill**
@@ -192,6 +192,9 @@ getnote kb create <名称> 新建知识库
192
192
 
193
193
  getnote kb add <topic_id> <note_id> [note_id...] 加入知识库
194
194
  getnote kb remove <topic_id> <note_id> [note_id...] 移出知识库
195
+ getnote kb live-follow <url> 订阅得到直播课,直播结束后 AI 摘要自动入库
196
+
197
+ getnote kbs-sub 获取我订阅的知识库列表
195
198
  ```
196
199
 
197
200
  ---
@@ -239,10 +242,42 @@ make install
239
242
 
240
243
  ---
241
244
 
245
+ ## 🚀 进阶用法:用笔记内链实践柳比歇夫时间日志法
246
+
247
+ 柳比歇夫时间日志法的核心是**每天记录自己把时间花在了哪里**,事后统计、复盘、改进。
248
+
249
+ 结合 Get笔记内链,可以用脚本自动串联:
250
+
251
+ ```bash
252
+ # 每天早上新建当天日志,内链到关联项目笔记
253
+ $ getnote save "今天工作日志 - 以下是进展:\n参考:biji.com/note/{note_id}" --tag 日志
254
+
255
+ # 每周查看本周日志,复盘时间分配
256
+ $ getnote search "工作日志" --limit 7 -o json
257
+ ```
258
+
259
+ **内链格式**:在笔记正文里用 `https://biji.com/note/{note_id}` 引用其他笔记。示例:
260
+
261
+ ```
262
+ 参考上次的讨论:https://biji.com/note/1234567890000000001
263
+ ```
264
+
265
+ ---
266
+
267
+ ## 🆕 更新日志
268
+
269
+ | 日期 | 版本 | 新能力 | 适合怎么用 |
270
+ |------|------|--------|------------|
271
+ | 2026-04-23 | **v1.1.1** | 1. 笔记内链<br>2. 保存分享链接自动变笔记 | 1. 用内链串联每天的工作日志和项目笔记,实践时间日志法<br>2. 收到别人发来的分享链接直接存入笔记 |
272
+ | 2026-04-16 | **v1.1.0** | 1. `getnote note share`:生成分享链接<br>2. `getnote kb live-follow`:订阅得到直播 | 1. 把笔记一键分享给朋友<br>2. 在知识库里订阅得到直播课,直播结束后 AI 摘要自动入库 |
273
+ | 2026-04-03 | **v1.0.x** | 1. `getnote kb bloggers/lives`:查看博主和直播列表<br>2. `getnote update`:自动升级 | 1. 查看订阅博主的内容更新和直播摘要<br>2. 直接运行 `getnote update` 升级到最新版 |
274
+
275
+ ---
276
+
242
277
  ## 相关链接
243
278
 
244
279
  - [Get笔记官网](https://biji.com)
245
- - [开放平台文档](https://openapi.biji.com/docs)
280
+ - [开放平台文档](https://www.biji.com/openapi)
246
281
  - [问题反馈](https://github.com/iswalle/getnote-cli/issues)
247
282
 
248
283
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getnote/cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "CLI tool for Get笔记 — manage notes and knowledge bases from the terminal",
5
5
  "keywords": [
6
6
  "getnote",
@@ -26,4 +26,4 @@
26
26
  "skills/",
27
27
  "README.md"
28
28
  ]
29
- }
29
+ }
@@ -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 (async, auto-polls until done)
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/image): returns `{"data":{"tasks":[{"task_id":"..."}],...}}`
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.