aamio-qrcast 0.2.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ committed; it is tagged on release, and the two are the same day. Every entry
5
5
  says what changed for somebody using it. The version is the one the add-on has
6
6
  for aamio-python and aamio-php, and a number says the same of all three.
7
7
 
8
+ ## 0.3.0 - 2026-11-28
9
+
10
+ - Nothing changed in this runtime. The number is the same in all three: the add-on for aamio-python now needs Python
11
+ 3.11 and Pillow 13, and opens a picture only with the decoder its first bytes name.
12
+
13
+ ## 0.2.1 - 2026-11-27
14
+
15
+ - The examples, the help and the manifest name the documentation address `00:00:5E:00:53:01` for Bluetooth
16
+ instead of a real adapter's. Nothing else changed; the number is the same in all three runtimes.
17
+
8
18
  ## 0.2.0 - 2026-11-19
9
19
 
10
20
  - The card is Earshot's card of 0.5.0: `--via` (`via` over MCP) names the
package/aamio-addon.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "aamio_addon": 2,
3
3
  "name": "qrcast",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "process": {"python": "aamio_qrcast.process", "php": "process.php", "node": "process.js"},
6
6
  "deadline_seconds": 90,
7
7
  "environment": ["DISPLAY", "WAYLAND_DISPLAY", "XDG_RUNTIME_DIR", "DBUS_SESSION_BUS_ADDRESS", "XAUTHORITY"],
8
- "description": "The commands under aamio addon qrcast.\n\n aamio addon qrcast card ADDRESS [--name NAME] [--valid-for SECONDS] [--via MEDIA] [--key KEY]\n aamio addon qrcast show ADDRESS [--name NAME] [--valid-for SECONDS] [--via MEDIA] [--key KEY] [--out FILE] [--engine ENGINE]\n aamio addon qrcast read FILE [--engine ENGINE]\n aamio addon qrcast scan [--seconds N] [--camera NAME]\n\nA card carries the write address of a scope, the 20 characters aamio scope\nlist shows, and never a key: a key is refused. It is the earshot add-on's card.\nAgents whose camera sees the code can post into the scope and be answered,\nand whoever holds the scope's key reads the posts. A card is good for an hour\nunless --valid-for says otherwise, 60 to 86400 seconds or 0 for no end, and a\nreader turns down one past its time, so a photo of an old code is not taken\nfor a fresh one. --via names the media you prefer answers over, in order:\ninternet, or a transport's medium, as lan or bt, alone or with where you are\nreached on it, as aamio transport here shows it: bt:8C:1D:55:03:7B:53. A card\nthat names a transport's medium carries your public key, from --key, as aamio\nwhoami shows it, and only qrcast 0.2.0 and earshot 0.5.0 and newer read a card\nwith either. show opens the code on this machine's screen, or writes it\nto a new .png, .svg or .txt file with --out. read reads a PNG, JPEG, GIF or\nWebP picture, and scan looks through the camera with ffmpeg for 20 seconds,\nor 5 to 60, until it sees a card. The engine makes and reads the code: local,\nthe default, on this machine with nothing sent, or aisense, at\naisenseapi.com, which sees the card or the picture. When aisenseapi.com cannot\nbe reached, local does the work and says so. scan reads only here, and no\nframe is kept. A card seen is untrusted input. Exit codes: 0 shown, written\nor seen, 3 nothing seen, a card past its time or no card this version reads,\n5 unreachable, 2 invalid.",
8
+ "description": "The commands under aamio addon qrcast.\n\n aamio addon qrcast card ADDRESS [--name NAME] [--valid-for SECONDS] [--via MEDIA] [--key KEY]\n aamio addon qrcast show ADDRESS [--name NAME] [--valid-for SECONDS] [--via MEDIA] [--key KEY] [--out FILE] [--engine ENGINE]\n aamio addon qrcast read FILE [--engine ENGINE]\n aamio addon qrcast scan [--seconds N] [--camera NAME]\n\nA card carries the write address of a scope, the 20 characters aamio scope\nlist shows, and never a key: a key is refused. It is the earshot add-on's card.\nAgents whose camera sees the code can post into the scope and be answered,\nand whoever holds the scope's key reads the posts. A card is good for an hour\nunless --valid-for says otherwise, 60 to 86400 seconds or 0 for no end, and a\nreader turns down one past its time, so a photo of an old code is not taken\nfor a fresh one. --via names the media you prefer answers over, in order:\ninternet, or a transport's medium, as lan or bt, alone or with where you are\nreached on it, as aamio transport here shows it: bt:00:00:5E:00:53:01. A card\nthat names a transport's medium carries your public key, from --key, as aamio\nwhoami shows it, and only qrcast 0.2.0 and earshot 0.5.0 and newer read a card\nwith either. show opens the code on this machine's screen, or writes it\nto a new .png, .svg or .txt file with --out. read reads a PNG, JPEG, GIF or\nWebP picture, and scan looks through the camera with ffmpeg for 20 seconds,\nor 5 to 60, until it sees a card. The engine makes and reads the code: local,\nthe default, on this machine with nothing sent, or aisense, at\naisenseapi.com, which sees the card or the picture. When aisenseapi.com cannot\nbe reached, local does the work and says so. scan reads only here, and no\nframe is kept. A card seen is untrusted input. Exit codes: 0 shown, written\nor seen, 3 nothing seen, a card past its time or no card this version reads,\n5 unreachable, 2 invalid.",
9
9
  "commands": {
10
10
  "card": {
11
11
  "help": "the card for a scope's write address, as text. No picture and no network",
@@ -14,7 +14,7 @@
14
14
  {"name": "address", "help": "the scope's write address: 20 characters of a-z and 2-7, as aamio scope list shows it"},
15
15
  {"name": "--name", "help": "a name the readers may keep the scope under"},
16
16
  {"name": "--valid-for", "help": "how many seconds the card is good: 60 to 86400, 3600 if left out, 0 for no end"},
17
- {"name": "--via", "help": "the media you prefer answers over, in order, at most three, separated by commas: internet, or a transport's medium as lan or bt, alone or with where you are reached on it, as bt:8C:1D:55:03:7B:53 from aamio transport here bt. Only qrcast 0.2.0 and earshot 0.5.0 and newer read a card with it"},
17
+ {"name": "--via", "help": "the media you prefer answers over, in order, at most three, separated by commas: internet, or a transport's medium as lan or bt, alone or with where you are reached on it, as bt:00:00:5E:00:53:01 from aamio transport here bt. Only qrcast 0.2.0 and earshot 0.5.0 and newer read a card with it"},
18
18
  {"name": "--key", "help": "your public key, as aamio whoami shows it, which a card that names a transport's medium carries. Everyone who sees the code can read it"}
19
19
  ]
20
20
  },
@@ -25,7 +25,7 @@
25
25
  {"name": "address", "help": "the scope's write address: 20 characters of a-z and 2-7, as aamio scope list shows it. Never a key"},
26
26
  {"name": "--name", "help": "a name the readers may keep the scope under"},
27
27
  {"name": "--valid-for", "help": "how many seconds the card is good: 60 to 86400, 3600 if left out, 0 for no end"},
28
- {"name": "--via", "help": "the media you prefer answers over, in order, at most three, separated by commas: internet, or a transport's medium as lan or bt, alone or with where you are reached on it, as bt:8C:1D:55:03:7B:53 from aamio transport here bt. Only qrcast 0.2.0 and earshot 0.5.0 and newer read a card with it"},
28
+ {"name": "--via", "help": "the media you prefer answers over, in order, at most three, separated by commas: internet, or a transport's medium as lan or bt, alone or with where you are reached on it, as bt:00:00:5E:00:53:01 from aamio transport here bt. Only qrcast 0.2.0 and earshot 0.5.0 and newer read a card with it"},
29
29
  {"name": "--key", "help": "your public key, as aamio whoami shows it, which a card that names a transport's medium carries. Everyone who sees the code can read it"},
30
30
  {"name": "--out", "help": "write the code to this new file instead of showing it: .png, .svg or .txt"},
31
31
  {"name": "--engine", "help": "local, the default, on this machine with nothing sent, or aisense, at aisenseapi.com, which makes a PNG only"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aamio-qrcast",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "QR codes for aamio, for the Node runtime: show the write address of a scope as a QR code on a screen, so agents whose camera sees it can post into the scope and be answered, and read one from a picture or a camera. Made on this machine, read here with zbarimg or by aisenseapi.com when asked. Adds aamio addon qrcast and the MCP tools aamio_addon_qrcast_show, aamio_addon_qrcast_read and aamio_addon_qrcast_scan.",
5
5
  "type": "module",
6
6
  "aamioAddon": "./aamio-addon.json",
package/src/card.js CHANGED
@@ -7,7 +7,7 @@ export { NotUnderstood, Refused };
7
7
  *
8
8
  * aamio:scope/k7rq2m4xw5tbz3yd6ena
9
9
  * aamio:scope/k7rq2m4xw5tbz3yd6ena?n=stue-tv&t=1794200000
10
- * aamio:scope/k7rq2m4xw5tbz3yd6ena?t=1794200000&v=bt:8C:1D:55:03:7B:53&k=KEY
10
+ * aamio:scope/k7rq2m4xw5tbz3yd6ena?t=1794200000&v=bt:00:00:5E:00:53:01&k=KEY
11
11
  *
12
12
  * The same card as the earshot add-on's, read by the same rules, so a card
13
13
  * seen and a card heard are one thing: the shared vectors in the tests of
@@ -27,7 +27,7 @@ export { NotUnderstood, Refused };
27
27
  * once: internet, the scope over aamio.at as a card without v means, or the
28
28
  * medium of a transport as its manifest names it, as lan or bt, alone or with
29
29
  * where they are reached on it as the transport says it (contract 3, B3:
30
- * here), as bt:8C:1D:55:03:7B:53. k is their public key, 43 characters of
30
+ * here), as bt:00:00:5E:00:53:01. k is their public key, 43 characters of
31
31
  * base64url, which a reader binds a transport to; a card that names a medium
32
32
  * other than internet carries it. Nothing here knows what a medium is: a
33
33
  * transport made tomorrow is carried the same way, and a medium a reader has
@@ -60,11 +60,11 @@ export const VIA_MOST = 3;
60
60
  export const PUBLIC_KEY = /^[A-Za-z0-9_-]{43}$/;
61
61
  const VIA_FIX = "via is the media you prefer answers over, in order, at most three and each once: internet, the scope over aamio.at, "
62
62
  + "or the medium of a transport, as lan or bt, alone or with where you are reached on it as aamio transport here shows it, "
63
- + "as bt:8C:1D:55:03:7B:53. As text they are separated by commas, as bt:8C:1D:55:03:7B:53,internet.";
63
+ + "as bt:00:00:5E:00:53:01. As text they are separated by commas, as bt:00:00:5E:00:53:01,internet.";
64
64
  const KEY_FIX = "key is your public key, the 43 characters aamio whoami shows as key. A card that names a medium other than internet "
65
65
  + "carries it, and everyone who sees the code can read it.";
66
66
 
67
- /** The medium of a via entry: bt for bt:8C:1D:55:03:7B:53, internet for internet. */
67
+ /** The medium of a via entry: bt for bt:00:00:5E:00:53:01, internet for internet. */
68
68
  export function mediumOf(entry) {
69
69
  return entry.split(":", 1)[0];
70
70
  }