@yuiseki/gyazocli 0.5.0 → 0.5.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/README.md +13 -2
- package/dist/index.js +1 -1
- package/dist/mcp.js +20 -14
- package/docs/ADR/003-cli-structure.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,15 +122,26 @@ results back from the detail endpoint to confirm the filter had applied:
|
|
|
122
122
|
|
|
123
123
|
| Operator | Matches |
|
|
124
124
|
| --- | --- |
|
|
125
|
+
| `has:exif` | photographs rather than screenshots |
|
|
126
|
+
| `has:location` | captures with coordinates |
|
|
125
127
|
| `address:広島`, `address:Hiroshima`, `address:730-0041` | the reverse-geocoded address of a capture with GPS, in any language or case, postal codes included |
|
|
126
128
|
| `app:"Gyazo Android"` | the application the capture came from |
|
|
127
129
|
| `title:`, `url:`, `desc:` | the page it was captured from |
|
|
128
130
|
| `ocr:` | the text in the image |
|
|
129
131
|
| `type:png` | the file type |
|
|
130
|
-
| `has:location` | only captures with coordinates |
|
|
131
|
-
| `has:exif` | only captures with EXIF, which is not the same thing |
|
|
132
132
|
| `since:2026-08-30 until:2026-08-31` | the upload date |
|
|
133
133
|
| `-address:広島` | negation |
|
|
134
|
+
| `OR` | alternation; terms are ANDed otherwise |
|
|
135
|
+
|
|
136
|
+
To narrow to photographs, reach for `has:exif`. The application does not tell
|
|
137
|
+
them apart: `app:"Gyazo Android"` includes screenshots and screen recordings
|
|
138
|
+
from the same phone, and one page of `app:"Gyazo Android" -has:exif` came back
|
|
139
|
+
as 68 gif and 30 png against 2 jpg.
|
|
140
|
+
|
|
141
|
+
`has:exif` and `has:location` overlap without either containing the other. A
|
|
142
|
+
photo taken indoors has EXIF and no coordinates; 86 captures here carry
|
|
143
|
+
coordinates without the EXIF flag. `has:exif OR has:location` is the widest
|
|
144
|
+
reading of "a photo".
|
|
134
145
|
|
|
135
146
|
There is no coordinate or radius search. `location:`, `geo:`, `near:`,
|
|
136
147
|
`bbox:`, `city:`, `lat:` and the like all return nothing, exactly as an
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ program
|
|
|
26
26
|
.name('gyazo')
|
|
27
27
|
.description('Gyazo Memory CLI for AI Secretary')
|
|
28
28
|
.option('--mcp-server', 'run as a Model Context Protocol server over stdio')
|
|
29
|
-
.version('0.5.
|
|
29
|
+
.version('0.5.1');
|
|
30
30
|
(0, config_1.registerConfigCommand)(program);
|
|
31
31
|
(0, list_1.registerListCommand)(program);
|
|
32
32
|
(0, get_1.registerGetCommand)(program);
|
package/dist/mcp.js
CHANGED
|
@@ -34,20 +34,26 @@ const collections_1 = require("./services/collections");
|
|
|
34
34
|
*/
|
|
35
35
|
const SEARCH_QUERY_DESCRIPTION = [
|
|
36
36
|
'Search keyword, up to 200 characters. Bare words match the OCR text, title and',
|
|
37
|
-
'description.',
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
37
|
+
'description. Terms are ANDed; OR in capitals is honoured, and a leading - negates.',
|
|
38
|
+
'To narrow to photographs rather than screenshots, use has:exif. The application is',
|
|
39
|
+
'not the distinction: app:"Gyazo Android" includes screenshots and screen recordings',
|
|
40
|
+
'from the same phone, and of one such page 68 were gif and 30 png against 2 jpg.',
|
|
41
|
+
'has:location narrows to captures with coordinates. It is not a subset of has:exif',
|
|
42
|
+
'and does not contain it either: a photo taken indoors has EXIF and no coordinates,',
|
|
43
|
+
'and some photos carry coordinates without the EXIF flag, so has:exif OR has:location',
|
|
44
|
+
'is the widest reading of "a photo".',
|
|
45
|
+
'address: matches the reverse-geocoded address of a capture with GPS, in any language',
|
|
46
|
+
'and case, and matches postal codes too, so address:広島 and address:Hiroshima and',
|
|
47
|
+
'address:730-0041 all find the same photos.',
|
|
48
|
+
'Also: app: the application it came from; title:, url: and desc: the page it was',
|
|
49
|
+
'captured from; ocr: the text in the image; type: the file type, as type:png; since:',
|
|
50
|
+
'and until: bound the upload date, as since:2026-08-30 until:2026-08-31. Quote a value',
|
|
51
|
+
'that contains spaces.',
|
|
52
|
+
'There is no coordinate or radius search: location:, geo:, near:, bbox:, city: and the',
|
|
53
|
+
'like all return nothing. To search by place, use address: with a place name.',
|
|
54
|
+
'An operator Gyazo does not know returns nothing rather than matching as text, so an',
|
|
55
|
+
'invented operator looks exactly like "no such captures". If nothing suitable comes',
|
|
56
|
+
'back, rephrase the query rather than giving up on the first attempt.',
|
|
51
57
|
].join(' ');
|
|
52
58
|
function serverVersion() {
|
|
53
59
|
// The published tarball always contains package.json, and dist/ sits one
|