memorysync-cli 1.0.2__py3-none-any.whl
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.
- memorysync_cli/__init__.py +13 -0
- memorysync_cli/__main__.py +9 -0
- memorysync_cli/_version.py +1 -0
- memorysync_cli/args.py +220 -0
- memorysync_cli/commands/__init__.py +6 -0
- memorysync_cli/commands/admin.py +354 -0
- memorysync_cli/commands/init.py +109 -0
- memorysync_cli/commands/memory.py +629 -0
- memorysync_cli/commands/source.py +132 -0
- memorysync_cli/commands/tooling.py +238 -0
- memorysync_cli/completions.py +150 -0
- memorysync_cli/config.py +147 -0
- memorysync_cli/credentials.py +259 -0
- memorysync_cli/errors.py +110 -0
- memorysync_cli/http.py +257 -0
- memorysync_cli/main.py +325 -0
- memorysync_cli/output.py +311 -0
- memorysync_cli/registry.json +612 -0
- memorysync_cli/registry.py +101 -0
- memorysync_cli-1.0.2.dist-info/METADATA +158 -0
- memorysync_cli-1.0.2.dist-info/RECORD +24 -0
- memorysync_cli-1.0.2.dist-info/WHEEL +4 -0
- memorysync_cli-1.0.2.dist-info/entry_points.txt +3 -0
- memorysync_cli-1.0.2.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,612 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "memorysync",
|
|
3
|
+
"summary": "Agent memory from your terminal.",
|
|
4
|
+
"global_flags": [
|
|
5
|
+
{
|
|
6
|
+
"name": "--json",
|
|
7
|
+
"description": "Agent mode: one JSON envelope on stdout, no colour, no spinners."
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "--agent",
|
|
11
|
+
"description": "Alias for --json."
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "--profile",
|
|
15
|
+
"short": "-p",
|
|
16
|
+
"value": "name",
|
|
17
|
+
"description": "Use a named profile from the config file."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "--api-key",
|
|
21
|
+
"value": "key",
|
|
22
|
+
"description": "Override the stored key for this invocation."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "--base-url",
|
|
26
|
+
"value": "url",
|
|
27
|
+
"description": "Override the API base URL."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "--user",
|
|
31
|
+
"short": "-u",
|
|
32
|
+
"value": "id",
|
|
33
|
+
"description": "End user the memory belongs to. Required by the API for key auth."
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "--project",
|
|
37
|
+
"value": "id",
|
|
38
|
+
"description": "Project to scope this call to."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "--output",
|
|
42
|
+
"short": "-o",
|
|
43
|
+
"value": "text|json|table|yaml|quiet",
|
|
44
|
+
"description": "Output format."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "--yes",
|
|
48
|
+
"short": "-y",
|
|
49
|
+
"description": "Skip confirmation prompts. Required in non-interactive shells."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "--dry-run",
|
|
53
|
+
"description": "Show what would happen and change nothing."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "--timeout",
|
|
57
|
+
"value": "ms",
|
|
58
|
+
"description": "Per-request timeout in milliseconds. Default 60000."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "--no-color",
|
|
62
|
+
"description": "Disable colour. Also honours NO_COLOR."
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "--quiet",
|
|
66
|
+
"short": "-q",
|
|
67
|
+
"description": "Suppress human-readable chrome."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "--verbose",
|
|
71
|
+
"short": "-v",
|
|
72
|
+
"description": "Print request and timing detail to stderr."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "--version",
|
|
76
|
+
"description": "Print the version and exit."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "--help",
|
|
80
|
+
"short": "-h",
|
|
81
|
+
"description": "Show help for the command."
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"output_formats": [
|
|
85
|
+
"text",
|
|
86
|
+
"json",
|
|
87
|
+
"table",
|
|
88
|
+
"yaml",
|
|
89
|
+
"quiet"
|
|
90
|
+
],
|
|
91
|
+
"commands": [
|
|
92
|
+
{
|
|
93
|
+
"name": "init",
|
|
94
|
+
"summary": "Store a credential and pick a default user and project.",
|
|
95
|
+
"description": "Prompts for an API key, verifies it against the API, then writes a profile. The key is never written to the config file in plain text: it goes to the OS keychain where one is reachable, and otherwise to an encrypted file readable only by you.",
|
|
96
|
+
"usage": "memorysync init [--api-key <key>] [--user <id>] [--project <id>] [--force]",
|
|
97
|
+
"flags": [
|
|
98
|
+
{
|
|
99
|
+
"name": "--api-key",
|
|
100
|
+
"value": "key",
|
|
101
|
+
"description": "Skip the prompt and use this key."
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "--user",
|
|
105
|
+
"short": "-u",
|
|
106
|
+
"value": "id",
|
|
107
|
+
"description": "Default end user for later commands."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "--project",
|
|
111
|
+
"value": "id",
|
|
112
|
+
"description": "Default project."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "--profile",
|
|
116
|
+
"short": "-p",
|
|
117
|
+
"value": "name",
|
|
118
|
+
"description": "Profile to create. Default \"default\"."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "--force",
|
|
122
|
+
"description": "Overwrite an existing profile without asking."
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"examples": [
|
|
126
|
+
"memorysync init",
|
|
127
|
+
"memorysync init --api-key ms_live_xxx --user alice --force"
|
|
128
|
+
],
|
|
129
|
+
"requires_auth": false
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "add",
|
|
133
|
+
"summary": "Store a durable fact about a user.",
|
|
134
|
+
"description": "Text is run through extraction, so filler is discarded and near-duplicates are merged. A \"skipped\" result is normal and not an error. Reads stdin when no text argument is given, so it composes with pipes.",
|
|
135
|
+
"usage": "memorysync add [text] [--user <id>] [--metadata <json>]",
|
|
136
|
+
"flags": [
|
|
137
|
+
{
|
|
138
|
+
"name": "--user",
|
|
139
|
+
"short": "-u",
|
|
140
|
+
"value": "id",
|
|
141
|
+
"description": "End user this memory belongs to. Falls back to the configured default."
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "--metadata",
|
|
145
|
+
"short": "-m",
|
|
146
|
+
"value": "json",
|
|
147
|
+
"description": "Labels to store alongside the memory."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "--file",
|
|
151
|
+
"short": "-f",
|
|
152
|
+
"value": "path",
|
|
153
|
+
"description": "Read the text from a file."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "--source",
|
|
157
|
+
"value": "name",
|
|
158
|
+
"description": "Where this came from. Default \"cli\"."
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "--no-dedupe",
|
|
162
|
+
"description": "Store even when similar content already exists."
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "--wait",
|
|
166
|
+
"description": "Poll until the memory is searchable before exiting."
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "--dry-run",
|
|
170
|
+
"description": "Report what would be stored, and store nothing."
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"examples": [
|
|
174
|
+
"memorysync add \"Prefers TypeScript over JavaScript\" --user alice",
|
|
175
|
+
"echo \"Ships on Fridays\" | memorysync add --user alice",
|
|
176
|
+
"memorysync add --file note.txt --user alice --wait"
|
|
177
|
+
],
|
|
178
|
+
"requires_auth": true,
|
|
179
|
+
"consumes_quota": "add_requests"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "search",
|
|
183
|
+
"summary": "Search memory in natural language.",
|
|
184
|
+
"usage": "memorysync search <query> [--user <id>] [--limit <n>]",
|
|
185
|
+
"flags": [
|
|
186
|
+
{
|
|
187
|
+
"name": "--user",
|
|
188
|
+
"short": "-u",
|
|
189
|
+
"value": "id",
|
|
190
|
+
"description": "End user this memory belongs to. Falls back to the configured default."
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "--limit",
|
|
194
|
+
"short": "-k",
|
|
195
|
+
"value": "n",
|
|
196
|
+
"description": "Maximum results, 1 to 50. Default 5."
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "--no-rerank",
|
|
200
|
+
"description": "Skip the rerank pass. Faster, less precise."
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "--context",
|
|
204
|
+
"description": "Print the assembled context block instead of a result list."
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "--explain",
|
|
208
|
+
"description": "Include scoring detail for each result."
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"examples": [
|
|
212
|
+
"memorysync search \"language preference\" --user alice",
|
|
213
|
+
"memorysync search \"open questions\" --user alice -o json | jq '.data[].text'"
|
|
214
|
+
],
|
|
215
|
+
"requires_auth": true,
|
|
216
|
+
"consumes_quota": "retrieval_requests"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "list",
|
|
220
|
+
"summary": "List a user's memories, newest first.",
|
|
221
|
+
"usage": "memorysync list [--user <id>] [--limit <n>]",
|
|
222
|
+
"flags": [
|
|
223
|
+
{
|
|
224
|
+
"name": "--user",
|
|
225
|
+
"short": "-u",
|
|
226
|
+
"value": "id",
|
|
227
|
+
"description": "End user this memory belongs to. Falls back to the configured default."
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "--limit",
|
|
231
|
+
"value": "n",
|
|
232
|
+
"description": "Maximum memories to return. Default 20."
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"examples": [
|
|
236
|
+
"memorysync list --user alice --limit 50 -o table"
|
|
237
|
+
],
|
|
238
|
+
"requires_auth": true,
|
|
239
|
+
"consumes_quota": "retrieval_requests"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "get",
|
|
243
|
+
"summary": "Fetch one memory by id.",
|
|
244
|
+
"usage": "memorysync get <memory-id> [--user <id>]",
|
|
245
|
+
"flags": [
|
|
246
|
+
{
|
|
247
|
+
"name": "--user",
|
|
248
|
+
"short": "-u",
|
|
249
|
+
"value": "id",
|
|
250
|
+
"description": "End user this memory belongs to. Falls back to the configured default."
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "--history",
|
|
254
|
+
"description": "Include the revision history."
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"examples": [
|
|
258
|
+
"memorysync get m_60632 --user alice"
|
|
259
|
+
],
|
|
260
|
+
"requires_auth": true
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "update",
|
|
264
|
+
"summary": "Change a memory's labels or importance.",
|
|
265
|
+
"usage": "memorysync update <memory-id> [--metadata <json>] [--importance <n>]",
|
|
266
|
+
"flags": [
|
|
267
|
+
{
|
|
268
|
+
"name": "--user",
|
|
269
|
+
"short": "-u",
|
|
270
|
+
"value": "id",
|
|
271
|
+
"description": "End user this memory belongs to. Falls back to the configured default."
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "--metadata",
|
|
275
|
+
"short": "-m",
|
|
276
|
+
"value": "json",
|
|
277
|
+
"description": "Replace the metadata with this JSON."
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "--importance",
|
|
281
|
+
"value": "n",
|
|
282
|
+
"description": "Importance from 0 to 1."
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "--dry-run",
|
|
286
|
+
"description": "Show the change without applying it."
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"examples": [
|
|
290
|
+
"memorysync update m_60632 --metadata '{\"priority\":\"high\"}' --user alice"
|
|
291
|
+
],
|
|
292
|
+
"requires_auth": true
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "delete",
|
|
296
|
+
"summary": "Delete memories.",
|
|
297
|
+
"description": "Deleting is two-step by design: without --yes it previews and exits without changing anything, so an ambiguous command cannot clear a scope. Only memories are ever affected. No form of this command can delete an account, a project or an API key.",
|
|
298
|
+
"usage": "memorysync delete <memory-id...> [--user <id>] [--all] [--yes]",
|
|
299
|
+
"flags": [
|
|
300
|
+
{
|
|
301
|
+
"name": "--user",
|
|
302
|
+
"short": "-u",
|
|
303
|
+
"value": "id",
|
|
304
|
+
"description": "End user this memory belongs to. Falls back to the configured default."
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "--all",
|
|
308
|
+
"description": "Delete every memory for that one user, and nothing else. Needs --yes."
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "--yes",
|
|
312
|
+
"short": "-y",
|
|
313
|
+
"description": "Confirm the deletion."
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "--dry-run",
|
|
317
|
+
"description": "Preview only. Implied when --yes is absent."
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"examples": [
|
|
321
|
+
"memorysync delete m_60632 --user alice --yes",
|
|
322
|
+
"memorysync delete --all --user alice # previews, deletes nothing"
|
|
323
|
+
],
|
|
324
|
+
"requires_auth": true
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "import",
|
|
328
|
+
"summary": "Bulk load memories from a JSON or JSONL file.",
|
|
329
|
+
"description": "Each record needs a text field, and may carry its own user and metadata. Validates the whole file before sending anything, and reports per-row errors with line numbers rather than failing on the first bad row.",
|
|
330
|
+
"usage": "memorysync import <file> [--user <id>] [--batch-size <n>]",
|
|
331
|
+
"flags": [
|
|
332
|
+
{
|
|
333
|
+
"name": "--user",
|
|
334
|
+
"short": "-u",
|
|
335
|
+
"value": "id",
|
|
336
|
+
"description": "End user this memory belongs to. Falls back to the configured default."
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"name": "--batch-size",
|
|
340
|
+
"value": "n",
|
|
341
|
+
"description": "Records per request. Default 50."
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "--continue-on-error",
|
|
345
|
+
"description": "Keep going after a failed batch."
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "--dry-run",
|
|
349
|
+
"description": "Validate the file and report what would be sent."
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"examples": [
|
|
353
|
+
"memorysync import memories.jsonl --user alice --dry-run"
|
|
354
|
+
],
|
|
355
|
+
"requires_auth": true,
|
|
356
|
+
"consumes_quota": "add_requests"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "export",
|
|
360
|
+
"summary": "Write a user's memories to a file or stdout.",
|
|
361
|
+
"usage": "memorysync export [--user <id>] [--out <path>]",
|
|
362
|
+
"flags": [
|
|
363
|
+
{
|
|
364
|
+
"name": "--user",
|
|
365
|
+
"short": "-u",
|
|
366
|
+
"value": "id",
|
|
367
|
+
"description": "End user this memory belongs to. Falls back to the configured default."
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "--out",
|
|
371
|
+
"value": "path",
|
|
372
|
+
"description": "Write here instead of stdout."
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "--format",
|
|
376
|
+
"value": "json|jsonl|csv",
|
|
377
|
+
"description": "Serialization. Default jsonl."
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"examples": [
|
|
381
|
+
"memorysync export --user alice --format jsonl --out backup.jsonl"
|
|
382
|
+
],
|
|
383
|
+
"requires_auth": true,
|
|
384
|
+
"consumes_quota": "retrieval_requests"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "quota",
|
|
388
|
+
"summary": "Show plan usage and when the cycle resets.",
|
|
389
|
+
"description": "Worth checking when writes appear to succeed but nothing is stored. Over a plan limit the API returns success with an empty result rather than an error, so an assistant never reports billing state to an end user. This command is how you see that from the outside.",
|
|
390
|
+
"usage": "memorysync quota",
|
|
391
|
+
"requires_auth": true
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "status",
|
|
395
|
+
"summary": "Check the credential, the API and the active scope.",
|
|
396
|
+
"usage": "memorysync status",
|
|
397
|
+
"requires_auth": true
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "doctor",
|
|
401
|
+
"summary": "Diagnose setup problems and say how to fix them.",
|
|
402
|
+
"description": "Checks credential storage and file permissions, DNS, TLS, API reachability, clock skew, quota headroom, project binding and Node version, then prints the first thing worth fixing.",
|
|
403
|
+
"usage": "memorysync doctor",
|
|
404
|
+
"requires_auth": false
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "whoami",
|
|
408
|
+
"summary": "Print the identity and scope in use.",
|
|
409
|
+
"usage": "memorysync whoami",
|
|
410
|
+
"requires_auth": true
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "project",
|
|
414
|
+
"summary": "List and select projects.",
|
|
415
|
+
"usage": "memorysync project <list|use> [id]",
|
|
416
|
+
"examples": [
|
|
417
|
+
"memorysync project list",
|
|
418
|
+
"memorysync project use proj_8de0eb70b4f64e10"
|
|
419
|
+
],
|
|
420
|
+
"requires_auth": true,
|
|
421
|
+
"subcommands": [
|
|
422
|
+
{
|
|
423
|
+
"name": "list",
|
|
424
|
+
"summary": "List projects in the tenant.",
|
|
425
|
+
"requires_auth": true
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "use",
|
|
429
|
+
"summary": "Set the default project for this profile.",
|
|
430
|
+
"requires_auth": true
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"name": "source",
|
|
436
|
+
"summary": "Inspect and control connected knowledge sources.",
|
|
437
|
+
"description": "GitHub, Slack, Notion, Google Drive, OneDrive, Granola, Amazon S3 and crawled sites. No competitor exposes connectors from a CLI, so this has no equivalent elsewhere.",
|
|
438
|
+
"usage": "memorysync source <list|status|sync|pause|resume> [id]",
|
|
439
|
+
"examples": [
|
|
440
|
+
"memorysync source list",
|
|
441
|
+
"memorysync source status github"
|
|
442
|
+
],
|
|
443
|
+
"requires_auth": true,
|
|
444
|
+
"subcommands": [
|
|
445
|
+
{
|
|
446
|
+
"name": "list",
|
|
447
|
+
"summary": "List connected sources.",
|
|
448
|
+
"requires_auth": true
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "status",
|
|
452
|
+
"summary": "Show sync state and last run for one source.",
|
|
453
|
+
"requires_auth": true
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "sync",
|
|
457
|
+
"summary": "Trigger a sync now.",
|
|
458
|
+
"requires_auth": true
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "pause",
|
|
462
|
+
"summary": "Pause syncing.",
|
|
463
|
+
"requires_auth": true
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "resume",
|
|
467
|
+
"summary": "Resume syncing.",
|
|
468
|
+
"requires_auth": true
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "event",
|
|
474
|
+
"summary": "Track asynchronous ingestion.",
|
|
475
|
+
"usage": "memorysync event <status|wait> <memory-id>",
|
|
476
|
+
"examples": [
|
|
477
|
+
"memorysync event wait m_60632 --timeout 60000"
|
|
478
|
+
],
|
|
479
|
+
"requires_auth": true,
|
|
480
|
+
"subcommands": [
|
|
481
|
+
{
|
|
482
|
+
"name": "status",
|
|
483
|
+
"summary": "Report where a memory is in the pipeline.",
|
|
484
|
+
"requires_auth": true
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "wait",
|
|
488
|
+
"summary": "Block until a memory is searchable or the timeout passes.",
|
|
489
|
+
"requires_auth": true
|
|
490
|
+
}
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"name": "config",
|
|
495
|
+
"summary": "Read and edit local configuration and profiles.",
|
|
496
|
+
"usage": "memorysync config <show|get|set|unset|profiles|use-profile|delete-profile|path>",
|
|
497
|
+
"examples": [
|
|
498
|
+
"memorysync config show",
|
|
499
|
+
"memorysync config use-profile staging"
|
|
500
|
+
],
|
|
501
|
+
"requires_auth": false,
|
|
502
|
+
"subcommands": [
|
|
503
|
+
{
|
|
504
|
+
"name": "show",
|
|
505
|
+
"summary": "Print the active config with secrets redacted."
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "get",
|
|
509
|
+
"summary": "Print one value."
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "set",
|
|
513
|
+
"summary": "Set one value."
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "unset",
|
|
517
|
+
"summary": "Remove one value."
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "profiles",
|
|
521
|
+
"summary": "List profiles."
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "use-profile",
|
|
525
|
+
"summary": "Switch the active profile."
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"name": "delete-profile",
|
|
529
|
+
"summary": "Remove a profile and its stored key."
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"name": "path",
|
|
533
|
+
"summary": "Print the config file location."
|
|
534
|
+
}
|
|
535
|
+
]
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "mcp",
|
|
539
|
+
"summary": "Connect MemorySync MCP to your AI clients.",
|
|
540
|
+
"description": "Delegates to memorysync-mcp-install, so one tool sets up both the API and MCP.",
|
|
541
|
+
"usage": "memorysync mcp <install|list|remove>",
|
|
542
|
+
"examples": [
|
|
543
|
+
"memorysync mcp list",
|
|
544
|
+
"memorysync mcp install"
|
|
545
|
+
],
|
|
546
|
+
"requires_auth": false,
|
|
547
|
+
"subcommands": [
|
|
548
|
+
{
|
|
549
|
+
"name": "install",
|
|
550
|
+
"summary": "Write MCP config for every detected client."
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"name": "list",
|
|
554
|
+
"summary": "Show which clients were detected."
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "remove",
|
|
558
|
+
"summary": "Remove the MemorySync MCP entries again."
|
|
559
|
+
}
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"name": "completion",
|
|
564
|
+
"summary": "Print a shell completion script.",
|
|
565
|
+
"usage": "memorysync completion <bash|zsh|fish|powershell>",
|
|
566
|
+
"examples": [
|
|
567
|
+
"memorysync completion zsh > \"${fpath[1]}/_memorysync\""
|
|
568
|
+
],
|
|
569
|
+
"requires_auth": false,
|
|
570
|
+
"subcommands": [
|
|
571
|
+
{
|
|
572
|
+
"name": "bash",
|
|
573
|
+
"summary": "Bash completion script."
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "zsh",
|
|
577
|
+
"summary": "Zsh completion script."
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"name": "fish",
|
|
581
|
+
"summary": "Fish completion script."
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"name": "powershell",
|
|
585
|
+
"summary": "PowerShell completion script."
|
|
586
|
+
}
|
|
587
|
+
]
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "help",
|
|
591
|
+
"summary": "Show help. With --json, print the whole command tree.",
|
|
592
|
+
"usage": "memorysync help [command] [--json]",
|
|
593
|
+
"requires_auth": false
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"name": "version",
|
|
597
|
+
"summary": "Print the version.",
|
|
598
|
+
"usage": "memorysync version",
|
|
599
|
+
"requires_auth": false
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
"exit_codes": {
|
|
603
|
+
"OK": 0,
|
|
604
|
+
"FAILURE": 1,
|
|
605
|
+
"USAGE": 2,
|
|
606
|
+
"AUTH": 3,
|
|
607
|
+
"QUOTA": 4,
|
|
608
|
+
"NETWORK": 5,
|
|
609
|
+
"NOT_FOUND": 6,
|
|
610
|
+
"INTERRUPTED": 130
|
|
611
|
+
}
|
|
612
|
+
}
|