pi-session-mail 0.2.0 → 0.2.2

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
@@ -6,6 +6,22 @@ follows [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.2.2] - 2026-10-02
10
+
11
+ ### Fixed
12
+
13
+ - The README links `CONTRIBUTING.md` and `SECURITY.md` on GitHub, since
14
+ neither is in the npm package and their relative links 404 on pi.dev.
15
+
16
+ ## [0.2.1] - 2026-10-02
17
+
18
+ ### Fixed
19
+
20
+ - `/mailbox` refuses with `mailbox: this session has no mailbox address; the
21
+ mailbox is off` when this session's mailbox is off (an unusable session id,
22
+ or a mail root it cannot create). Before, it showed the session id as the
23
+ address, failed a send with a raw error, and still pruned.
24
+
9
25
  ## [0.2.0] - 2026-10-02
10
26
 
11
27
  ### Added
@@ -102,6 +118,8 @@ author's dotfiles; the changes below are against that copy.
102
118
  - CI on Node 22.19 and 24: lint, typecheck, tests, and a check of the
103
119
  published file list.
104
120
 
105
- [Unreleased]: https://github.com/gvanderclay/pi-session-mail/compare/v0.2.0...HEAD
121
+ [Unreleased]: https://github.com/gvanderclay/pi-session-mail/compare/v0.2.2...HEAD
122
+ [0.2.2]: https://github.com/gvanderclay/pi-session-mail/compare/v0.2.1...v0.2.2
123
+ [0.2.1]: https://github.com/gvanderclay/pi-session-mail/compare/v0.2.0...v0.2.1
106
124
  [0.2.0]: https://github.com/gvanderclay/pi-session-mail/compare/v0.1.0...v0.2.0
107
125
  [0.1.0]: https://github.com/gvanderclay/pi-session-mail/releases/tag/v0.1.0
package/README.md CHANGED
@@ -470,10 +470,10 @@ while the package is at 0.x.
470
470
 
471
471
  ## More
472
472
 
473
- - [CONTRIBUTING.md](CONTRIBUTING.md) explains how to set up, test and propose a
473
+ - [CONTRIBUTING.md](https://github.com/gvanderclay/pi-session-mail/blob/main/CONTRIBUTING.md) explains how to set up, test and propose a
474
474
  change.
475
475
  - [CHANGELOG.md](CHANGELOG.md) lists what changed in each release.
476
- - [SECURITY.md](SECURITY.md) explains how to report a security problem.
476
+ - [SECURITY.md](https://github.com/gvanderclay/pi-session-mail/blob/main/SECURITY.md) explains how to report a security problem.
477
477
 
478
478
  ## License
479
479
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-session-mail",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "A file mailbox between Pi sessions on the same machine",
5
5
  "keywords": [
6
6
  "pi-package",
package/src/index.ts CHANGED
@@ -610,7 +610,11 @@ export default function mailbox(pi: ExtensionAPI) {
610
610
  description:
611
611
  "Show this session's mailbox address and name, send a request: /mailbox <name or id> <text>, or remove closed sessions' empty mailbox folders: /mailbox prune",
612
612
  handler: async (args, context) => {
613
- const me = context.sessionManager.getSessionId();
613
+ const me = address;
614
+ if (me === undefined) {
615
+ context.ui.notify("mailbox: this session has no mailbox address; the mailbox is off", "error");
616
+ return;
617
+ }
614
618
  const trimmed = args.trim();
615
619
  if (trimmed === "") {
616
620
  const current = context.sessionManager.getSessionName?.() || undefined;