@heyditto/cli 1.5.0 → 1.6.0

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
@@ -88,19 +88,43 @@ heyditto save <content> [--source <s>] [--source-context <c>]
88
88
  heyditto search <query>... [--include-public] [--filter-username <u>]
89
89
  heyditto fetch <id>... [--memory-format full|outline|blocks]
90
90
  heyditto list [--username <u>] [--limit <n>] [--offset <n>] [--source <s>]
91
+ heyditto my-memories [--limit <n>] [--offset <n>] [--source <s>]
91
92
  heyditto update <id> [--content <text>|--content-file <path>] [--title <t>]
92
93
  [--source-context <c>] [--edits-json <json>|--edits-file <path>]
93
94
  [--base-revision <n>]
94
95
  heyditto publish <id> [--title <t>] [--privacy-mode <mode>]
95
96
  heyditto unpublish (--memory-id <id>|--share-id <id>|<id>)
97
+ heyditto delete <memory-id> --confirm
96
98
  heyditto subjects <query> [--top-k <n>]
99
+ heyditto subject-edges <subject-id> [--limit <n>] [--min-weight <n>] [--kg <alias>]
97
100
  heyditto memories <subject-id>... [--query <q>]
98
101
  heyditto network <pair-id> [--limit <n>]
99
- heyditto graphs create <name> | list | add <@username> | remove <@username> | subscribers
100
- heyditto init --agent [--agent-caller <name>] [--json]
101
- heyditto status
102
+ heyditto friends
103
+ heyditto knowledge-graphs
104
+ heyditto graph-sharing (--enable|--disable) [--title <t>] [--description <d>]
105
+ heyditto graphs create <name>
106
+ heyditto graphs list
107
+ heyditto graphs available
108
+ heyditto graphs add <@username>
109
+ heyditto graphs remove <@username>
110
+ heyditto graphs subscribers
111
+ heyditto graphs sharing (--enable|--disable) [--title <t>] [--description <d>]
112
+ heyditto init --agent [--agent-caller <name>] [--subscribe <@graph>] [<@graph>...] [--json]
113
+ heyditto login [<key>] [--paste] [--stdin]
114
+ heyditto logout
115
+ heyditto status [--output <format>]
102
116
  heyditto config
103
- heyditto help
117
+ heyditto help [command]
118
+ ```
119
+
120
+ ### Help
121
+
122
+ Use `-h` or `--help` globally or after any command:
123
+
124
+ ```bash
125
+ heyditto --help
126
+ heyditto search --help
127
+ heyditto graphs add --help
104
128
  ```
105
129
 
106
130
  ### `save`
@@ -142,8 +166,13 @@ List saved memories, or public DittoHub publishes for a username.
142
166
  ```bash
143
167
  heyditto list --limit 10
144
168
  heyditto list --username peyton --limit 10 --output json
169
+ heyditto my-memories --source cli --limit 10 --output json
145
170
  ```
146
171
 
172
+ `my-memories` is the CLI wrapper for `list_my_memories`. It only lists your
173
+ saved memories, while `list --username <u>` can switch to public DittoHub
174
+ publishes for another user.
175
+
147
176
  ### `update`
148
177
 
149
178
  Edit a saved memory in place. Replace the full body with `--content` or
@@ -154,10 +183,7 @@ Block edits require the current revision returned by `save` or a previous
154
183
  ```bash
155
184
  heyditto update <memory-id> --content-file revised.md --output json
156
185
  heyditto fetch <memory-id> --memory-format outline --output json
157
- heyditto update <memory-id> \
158
- --edits-json '[{"op":"replace_text","blockId":"2","find":"old","replace":"new","expectedCount":1}]' \
159
- --base-revision 3 \
160
- --output json
186
+ heyditto update <memory-id> --edits-file edits.json --base-revision 3 --output json
161
187
  ```
162
188
 
163
189
  ### `publish` / `unpublish`
@@ -170,6 +196,15 @@ heyditto publish <memory-id> --title "Launch notes" --privacy-mode scan_and_bloc
170
196
  heyditto unpublish --share-id abc123def4 --output json
171
197
  ```
172
198
 
199
+ ### `delete`
200
+
201
+ Permanently delete a saved memory. This is destructive, so the CLI requires
202
+ `--confirm`.
203
+
204
+ ```bash
205
+ heyditto delete <memory-id> --confirm --output json
206
+ ```
207
+
173
208
  ### `subjects`
174
209
 
175
210
  Search the subject (topic) graph. Returns subject ids you can pass to `memories` or `network`.
@@ -177,8 +212,11 @@ Search the subject (topic) graph. Returns subject ids you can pass to `memories`
177
212
  ```bash
178
213
  heyditto subjects "memory architecture"
179
214
  heyditto subjects "performance" --top-k 5
215
+ heyditto subject-edges <subject-id> --limit 10 --min-weight 0.5 --output json
180
216
  ```
181
217
 
218
+ `subject-edges` is the CLI wrapper for `get_subject_edges`.
219
+
182
220
  ### `memories`
183
221
 
184
222
  Fetch memory previews scoped to specific subjects.
@@ -196,6 +234,14 @@ Traverse a memory's network (related memories via shared subjects).
196
234
  heyditto network <pair-id> --limit 30
197
235
  ```
198
236
 
237
+ ### `friends`
238
+
239
+ List Ditto friends for commands that need usernames.
240
+
241
+ ```bash
242
+ heyditto friends --output json
243
+ ```
244
+
199
245
  ### `graphs`
200
246
 
201
247
  Manage the public knowledge graphs you're subscribed to. Subscribed graphs are
@@ -206,9 +252,18 @@ your own graph or an app's graph, since those aren't subscriptions.
206
252
  ```bash
207
253
  heyditto graphs create feedback-triager # create a NEW dedicated graph you own (mint its CI key in the Ditto UI)
208
254
  heyditto graphs list # graphs you're subscribed to
255
+ heyditto graphs available # readable knowledge graphs, including main/app graphs
209
256
  heyditto graphs add @minos # subscribe to @minos's public graph
210
257
  heyditto graphs remove @minos # unsubscribe
211
258
  heyditto graphs subscribers # who's subscribed to your graph
259
+ heyditto graphs sharing --disable # disable public subscriptions to your graph
260
+ ```
261
+
262
+ Top-level aliases are also available:
263
+
264
+ ```bash
265
+ heyditto knowledge-graphs --output json
266
+ heyditto graph-sharing --enable --title "Support Graph" --description "Public support notes"
212
267
  ```
213
268
 
214
269
  ### `status`