@getnote/cli 1.0.4 → 1.0.6
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 +2 -0
- package/package.json +1 -1
- package/skills/getnote-kb/SKILL.md +26 -3
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: getnote-kb
|
|
3
|
-
version: 0.
|
|
3
|
+
version: 0.4.0
|
|
4
4
|
description: Manage knowledge bases in Get笔记 via the getnote CLI
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# getnote-kb Skill
|
|
8
8
|
|
|
9
|
-
Manage knowledge bases — list, create, browse notes, add/remove notes.
|
|
9
|
+
Manage knowledge bases — list, create, browse notes, add/remove notes. Also supports listing subscribed knowledge bases.
|
|
10
10
|
|
|
11
11
|
## Prerequisites
|
|
12
12
|
|
|
@@ -29,6 +29,28 @@ getnote kbs -o json
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
32
|
+
### List subscribed knowledge bases
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
getnote kbs-sub [--page <n>]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Returns knowledge bases the user has subscribed to. Supports pagination.
|
|
39
|
+
|
|
40
|
+
| Flag | Default | Description |
|
|
41
|
+
|------|---------|-------------|
|
|
42
|
+
| `--page` | 1 | Page number |
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
getnote kbs-sub
|
|
46
|
+
getnote kbs-sub --page 2
|
|
47
|
+
getnote kbs-sub -o json
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
> Use `getnote kb <topic_id>` to browse notes inside a subscribed knowledge base.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
32
54
|
### List notes in a knowledge base
|
|
33
55
|
|
|
34
56
|
```
|
|
@@ -98,7 +120,8 @@ getnote kb remove vnrOAaGY 1234567890
|
|
|
98
120
|
|
|
99
121
|
- Use `-o json` when parsing results programmatically.
|
|
100
122
|
- `kbs -o json` returns `{"success":true,"data":{"topics":[...],"total":N}}`
|
|
123
|
+
- `kbs-sub -o json` returns the same shape as `kbs -o json`.
|
|
101
124
|
- `kb <topic_id> -o json` returns `{"success":true,"data":{"notes":[...],"has_more":...}}`
|
|
102
|
-
- Get `topic_id` from `getnote kbs -o json` → `data.topics[].topic_id` field (not `id`).
|
|
125
|
+
- Get `topic_id` from `getnote kbs -o json` or `getnote kbs-sub -o json` → `data.topics[].topic_id` field (not `id`).
|
|
103
126
|
- `kb add` / `kb remove` accept multiple note IDs — prefer batching over multiple calls.
|
|
104
127
|
- Exit code `0` = success; non-zero = error. Error details go to stderr.
|