@joe-broadhead/messaging 0.7.0 → 0.7.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/CHANGELOG.md +45 -0
- package/dist/bin/messaging-mcp.js +649 -12
- package/dist/bin/messaging-relay.js +774 -20
- package/dist/bin/messaging.js +748 -15
- package/dist/bin/messagingd.js +785 -18
- package/dist/lib/modules/core/agent-tools.js +23 -4
- package/dist/lib/modules/core/conversation/context.js +80 -0
- package/dist/lib/modules/core/conversation/event.js +100 -0
- package/dist/lib/modules/core/conversation/ids.js +38 -0
- package/dist/lib/modules/core/conversation/link.js +35 -0
- package/dist/lib/modules/core/conversation/log.js +766 -0
- package/dist/lib/modules/core/conversation/ratchet.js +243 -0
- package/dist/lib/modules/core/conversation/seal.js +198 -0
- package/dist/lib/modules/core/index.js +10 -1
- package/dist/lib/modules/core/schema/common.js +56 -0
- package/dist/lib/modules/core/schema/conversation.js +292 -0
- package/dist/lib/modules/core/schema/errors.js +39 -0
- package/dist/lib/modules/core/schema/index.js +1 -0
- package/dist/lib/modules/core/testing.js +1 -0
- package/dist/lib/modules/core/version.js +1 -1
- package/dist/spec/messaging-v1.md +324 -6
- package/dist/types/core/agent-tools.d.ts +20 -2
- package/dist/types/core/conversation/context.d.ts +56 -0
- package/dist/types/core/conversation/event.d.ts +36 -0
- package/dist/types/core/conversation/ids.d.ts +18 -0
- package/dist/types/core/conversation/link.d.ts +16 -0
- package/dist/types/core/conversation/log.d.ts +142 -0
- package/dist/types/core/conversation/ratchet.d.ts +95 -0
- package/dist/types/core/conversation/seal.d.ts +47 -0
- package/dist/types/core/index.d.ts +8 -1
- package/dist/types/core/schema/common.d.ts +56 -0
- package/dist/types/core/schema/conversation.d.ts +1657 -0
- package/dist/types/core/schema/envelope.d.ts +6 -0
- package/dist/types/core/schema/errors.d.ts +38 -0
- package/dist/types/core/schema/index.d.ts +1 -0
- package/dist/types/core/schema/ipc/device.d.ts +6 -0
- package/dist/types/core/schema/ipc/shapes.d.ts +3 -0
- package/dist/types/core/schema/ipc/surfaces.d.ts +6 -0
- package/dist/types/core/schema/ipc.d.ts +15 -0
- package/dist/types/core/schema/relay.d.ts +12 -0
- package/dist/types/core/testing.d.ts +1 -0
- package/dist/types/core/version.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,51 @@ Versions follow [Semantic Versioning](https://semver.org); see
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.7.1] - 2026-11-09
|
|
10
|
+
|
|
11
|
+
**No store change.** A 0.7.0 home and a 0.7.0 relay database open unchanged, and a 0.7.0 messagingd or relay still
|
|
12
|
+
opens what 0.7.1 writes. 0.7.0 was the last store reset: from 0.7.0 on, stores only grow (the owner's decision of
|
|
13
|
+
8 November, when the first people other than the owner began to use Messaging).
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **A refused store has a code and an exit status of its own** (spec §8.8). messagingd and messaging-relay exit
|
|
18
|
+
**78** (`EX_CONFIG`; `STORE_REFUSED_EXIT` in `@messaging/core`) for a store they do not read, instead of 1. messagingd
|
|
19
|
+
prints one line, `messagingd: store_refused: …`; the relay's event is still `relay.store_refused`. A new error code,
|
|
20
|
+
`store_refused`, is what `messaging daemon start` reports, with its own next step, and what agent clients
|
|
21
|
+
report (`TOOL_REMEDIES`). Clients match the status or the code, never the wording. The relay's systemd unit does
|
|
22
|
+
not restart on 78.
|
|
23
|
+
- **A refusal says why** (spec §8.8): `pre-reset` (no store generation, or another: start over by moving the home
|
|
24
|
+
aside) or `newer` (a `min_reader` above the reader's schema: upgrade and keep the home). messagingd prints
|
|
25
|
+
`messagingd: store_refused: <reason>: …`; `StoreRefusedError.reason`, `reason` in `messaging --json` errors and in
|
|
26
|
+
agent tool errors carry it, each reason with its own next step. Moving the home aside is offered only for
|
|
27
|
+
`pre-reset`. The relay's event is `relay.store_refused {db, reason, message}`: **its `reason` field is now the
|
|
28
|
+
reason, and the text moved to `message`**.
|
|
29
|
+
- **A home moved aside is named `<home>.pre-reset-<UTC timestamp>`** (spec §8.8), with no version in the name, and
|
|
30
|
+
messagingd's start-over text says so.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- **A roster sync that succeeds on retry clears the error it reported.** messagingd kept the old `relay.lastError`
|
|
35
|
+
after a later sync succeeded.
|
|
36
|
+
- **The darwin executables are signed with a fixed 4 KiB page size,** so any Mac rebuilds a release byte for byte.
|
|
37
|
+
The default page size of `codesign` depends on the macOS version (docs/distribution.md).
|
|
38
|
+
- **publish.yml stages `./<tarball>`.** npm read a bare `dir/name.tgz` as a GitHub shorthand, so 0.7.0's packages
|
|
39
|
+
were staged by hand; `npm run test:pack` now refuses a stage line without `./`.
|
|
40
|
+
|
|
41
|
+
### Documentation
|
|
42
|
+
|
|
43
|
+
- The relay's operator docs give its limits and flags as built: pre-auth limits 1024 and 128, `--max-connections`,
|
|
44
|
+
`--max-buffered-bytes`, `--preauth-*`, `--metrics` and `--sth-witness`. A test fails when they drift.
|
|
45
|
+
- The README describes both identity modes: the Jelly directory and self-hosted roster teams.
|
|
46
|
+
|
|
47
|
+
### Tests
|
|
48
|
+
|
|
49
|
+
- The architecture tests enforce where SQLite, network listeners and raw sockets may be used, as AGENTS.md says.
|
|
50
|
+
- A lying relay that withholds the roster entries a signed head commits to is caught (`heads.ts`).
|
|
51
|
+
- The timing tests wait on events and bound cost in units measured on the same machine, not in wall-clock time, so
|
|
52
|
+
they pass on loaded and slow runners.
|
|
53
|
+
|
|
9
54
|
## [0.7.0] - 2026-11-08
|
|
10
55
|
|
|
11
56
|
### Store reset
|