stitchwire 0.58.0 → 0.59.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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  <p align="center">
2
- <img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.58.0/docs/assets/stitchwire-mark.jpg" width="180" alt="Stitchwire" />
2
+ <img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.59.0/docs/assets/stitchwire-mark.jpg" width="180" alt="StitchWire" />
3
3
  </p>
4
4
 
5
- <h1 align="center">Stitchwire</h1>
5
+ <h1 align="center">StitchWire</h1>
6
6
 
7
7
  <p align="center">
8
8
  <strong>Broker-mediated typed RPC, bounded streams and volatile events between machines behind NAT.</strong><br/>
@@ -10,13 +10,13 @@
10
10
  </p>
11
11
 
12
12
  <p align="center">
13
- <a href="https://github.com/max-listov/stitchwire/blob/v0.58.0/LICENSE"><img src="https://img.shields.io/badge/license-MIT-2563eb" alt="MIT license" /></a>
13
+ <a href="https://github.com/max-listov/stitchwire/blob/v0.59.0/LICENSE"><img src="https://img.shields.io/badge/license-MIT-2563eb" alt="MIT license" /></a>
14
14
  <img src="https://img.shields.io/badge/runtime-Bun%20%E2%89%A51.4.4-fbf0df?logo=bun&logoColor=000" alt="Bun >= 1.4.4" />
15
15
  <img src="https://img.shields.io/badge/client-Node%20%E2%89%A522%20%7C%20Bun%20%E2%89%A51.4.4-339933" alt="Node >= 22 | Bun >= 1.4.4" />
16
16
  </p>
17
17
 
18
18
  <p align="center">
19
- <img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.58.0/docs/assets/infographic-hero.jpg" alt="Stitchwire: Node A behind NAT connects outbound over TLS through a trusted broker to Node B behind NAT" width="100%" />
19
+ <img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.59.0/docs/assets/infographic-hero.jpg" alt="StitchWire: Node A behind NAT connects outbound over TLS through a trusted broker to Node B behind NAT" width="100%" />
20
20
  </p>
21
21
 
22
22
  <p align="center">
@@ -38,10 +38,10 @@ application → local Unix door → agent → trusted broker → agent → decla
38
38
 
39
39
  ### The problem it solves
40
40
 
41
- Connecting private machines usually turns into a tangle of reverse SSH tunnels, open firewall ports and fragile ad-hoc scripts. Stitchwire replaces that mesh with one outbound-only brokered transport for typed RPC, pull-driven bounded streams and volatile pub/sub events — while services keep full ownership of their schemas, data, durable journals and business rules.
41
+ Connecting private machines usually turns into a tangle of reverse SSH tunnels, open firewall ports and fragile ad-hoc scripts. StitchWire replaces that mesh with one outbound-only brokered transport for typed RPC, pull-driven bounded streams and volatile pub/sub events — while services keep full ownership of their schemas, data, durable journals and business rules.
42
42
 
43
43
  <p align="center">
44
- <img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.58.0/docs/assets/infographic-compare.jpg" alt="Without Stitchwire: reverse SSH, open ports and ad-hoc scripts. With Stitchwire: typed RPC, bounded streams and events over one clean wire." width="100%" />
44
+ <img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.59.0/docs/assets/infographic-compare.jpg" alt="Without StitchWire: reverse SSH, open ports and ad-hoc scripts. With StitchWire: typed RPC, bounded streams and events over one clean wire." width="100%" />
45
45
  </p>
46
46
 
47
47
  ## Install
@@ -56,13 +56,13 @@ bun add -g stitchwire
56
56
  bunx stitchwire --version
57
57
  ```
58
58
 
59
- Or install the standalone bundle from GitHub Releases. It needs Bun already installed (https://bun.sh) and never installs it; it places `~/.local/bin/stitchwire` and, on macOS, `~/.local/native/darwin-<arch>.node`. It checks every file against the release `SHA256SUMS` before replacing anything; that is an integrity check against corrupted or truncated downloads, not authenticity, because the sums come from the same release:
59
+ Or install the standalone bundle from GitHub Releases. It needs Bun already installed (https://bun.sh) and never installs it; it places `~/.local/bin/stitchwire` and, on macOS, `~/.local/native/darwin-<arch>.node`. The installer verifies the Ed25519 signature on `SHA256SUMS` against its embedded public key, checks the runtime and platform files, and runs the staged binary before replacing the current installation.
60
60
 
61
61
  ```bash
62
62
  curl -fsSL https://raw.githubusercontent.com/max-listov/stitchwire/main/contrib/install.sh | bash
63
63
  ```
64
64
 
65
- > **Platform note:** Stitchwire runtime supports **Linux** and **macOS** (Unix domain sockets `0600` + `systemd` / `launchd`). Windows runtime and browser transport are not supported.
65
+ > **Platform note:** StitchWire runtime supports **Linux** and **macOS** (Unix domain sockets `0600` + `systemd` / `launchd`). Windows runtime and browser transport are not supported.
66
66
 
67
67
  ### Typed client SDK (Node ≥22 or Bun ≥1.4.4)
68
68
 
@@ -108,26 +108,27 @@ const result = await wire.invokeService({
108
108
 
109
109
  | Plane | Purpose | Key invariants |
110
110
  | --- | --- | --- |
111
- | **Declared services** | Typed HTTP-over-Unix RPC & contract streams projected from [Stitchkit](https://github.com/max-listov/stitchkit) contracts | Default-deny per caller/target/operation; opaque owner payloads; explicit byte & timeout ceilings |
111
+ | **Declared services** | Typed HTTP-over-Unix RPC & contract streams projected from [StitchKit](https://github.com/max-listov/stitchkit) contracts | Default-deny per caller/target/operation; opaque owner payloads; explicit byte & timeout ceilings |
112
112
  | **Fixed command profiles** | Constrained execution of operator-declared binaries | Fixed executable path and argv rules; never a caller-selected shell |
113
113
  | **Bounded streams** | Live stdout/NDJSON/framed feeds across nodes | Pull-driven credit backpressure, explicit terminal reason, cooperative cancellation |
114
114
  | **Volatile events** | Pub/sub fan-out with sequence continuity checks | Bounded in-memory retention, explicit gap & boot-change frames — never silent data loss |
115
115
 
116
- Runnable examples: [service](https://github.com/max-listov/stitchwire/blob/v0.58.0/examples/service/README.md) · [stream](https://github.com/max-listov/stitchwire/blob/v0.58.0/examples/stream/README.md) · [events](https://github.com/max-listov/stitchwire/blob/v0.58.0/examples/events/README.md).
116
+ Runnable examples: [service](https://github.com/max-listov/stitchwire/blob/v0.59.0/examples/service/README.md) · [stream](https://github.com/max-listov/stitchwire/blob/v0.59.0/examples/stream/README.md) · [events](https://github.com/max-listov/stitchwire/blob/v0.59.0/examples/events/README.md).
117
117
 
118
- ## StitchKit × Stitchwire
118
+ ## StitchKit × StitchWire
119
119
 
120
120
  <p align="center">
121
- <img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.58.0/docs/assets/infographic-ecosystem.jpg" alt="StitchKit and Stitchwire: define contracts once and route them across every machine" width="100%" />
121
+ <img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.59.0/docs/assets/infographic-ecosystem.jpg" alt="StitchKit and StitchWire: define contracts once and route them across every machine" width="100%" />
122
122
  </p>
123
123
 
124
124
  <p align="center">
125
- <em>Define a service contract once with <a href="https://github.com/max-listov/stitchkit">Stitchkit</a> — route it across every machine over Stitchwire.</em>
125
+ <em>Define a service contract once with <a href="https://github.com/max-listov/stitchkit">StitchKit</a> — route it across every machine over StitchWire.</em>
126
126
  </p>
127
127
 
128
- - **One contract, zero glue.** `serviceDescriptorFromContract()` derives operation IDs, exact static paths and stream framing directly from your Stitchkit contract.
129
- - **Owner ingress & caller fetch.** Mount `createServiceIngress()` on a `0600` Unix socket on the owner machine and hand `createServiceFetch()` to your existing typed Stitchkit client on the caller — preserving cancellation, byte ceilings and `serviceCaller()` identity end to end.
130
- - **Framework-optional.** The local door is plain HTTP-over-Unix, and `@stitchwire/client` works standalone without Stitchkit for raw `invokeService`, fixed command profiles, bounded streams and volatile events.
128
+ - **One contract, zero glue.** `serviceDescriptorFromContract()` derives operation IDs, exact static paths and stream framing directly from your StitchKit contract.
129
+ - **Owner ingress & caller fetch.** Mount `createServiceIngress()` on a `0600` Unix socket on the owner machine and hand `createServiceFetch()` to your existing typed StitchKit client on the caller — preserving cancellation, byte ceilings and `serviceCaller()` identity end to end.
130
+ - **Framework-optional.** The local door is plain HTTP-over-Unix, and `@stitchwire/client` works standalone without StitchKit for raw `invokeService`, fixed command profiles, bounded streams and volatile events.
131
+ - **Stitch family.** Pair [StitchKit](https://github.com/max-listov/stitchkit) contracts and StitchWire transport with [StitchMux](https://github.com/max-listov/stitchmux) for agent supervision and [StitchDevKit](https://github.com/max-listov/stitchdevkit) for typed project gates, task discipline and signed releases.
131
132
 
132
133
  ## Products and distribution
133
134
 
@@ -139,7 +140,7 @@ Runnable examples: [service](https://github.com/max-listov/stitchwire/blob/v0.58
139
140
 
140
141
  Service templates live in `contrib/`:
141
142
  - **Linux (`systemd`):** `contrib/systemd/stitchwire-agent.service`, `contrib/systemd/stitchwire-broker.service`
142
- - **macOS (`launchd`):** `contrib/launchd/com.stitchwire.agent.plist` starts the agent through a `Stitchwire.app` launcher (`contrib/launchd/stitchwire-launcher.c`), so macOS attributes local-network access to Stitchwire. `bun scripts/macos-bundle.ts` builds that bundle from a source checkout and signs it only with your own Apple **Developer ID Application** identity. Without one, delete the launcher line from `ProgramArguments` and launchd runs Bun directly; macOS then attributes the agent's network access to Bun.
143
+ - **macOS (`launchd`):** `contrib/launchd/com.stitchwire.agent.plist` starts the agent through a `Stitchwire.app` launcher (`contrib/launchd/stitchwire-launcher.c`), so macOS attributes local-network access to StitchWire. `bun scripts/macos-bundle.ts` builds that bundle from a source checkout and signs it only with your own Apple **Developer ID Application** identity. Without one, delete the launcher line from `ProgramArguments` and launchd runs Bun directly; macOS then attributes the agent's network access to Bun.
143
144
  - **Broker TLS reverse proxy:** `contrib/nginx/stitchwire-broker.conf`
144
145
 
145
146
  ## Guarantees and deliberate limits
@@ -170,15 +171,15 @@ On macOS, `bun run check` also compiles the launcher and builds the app icon, wh
170
171
 
171
172
  ## Documentation
172
173
 
173
- - [Vision](https://github.com/max-listov/stitchwire/blob/v0.58.0/docs/VISION.md) — product direction and deliberate limits
174
- - [Architecture and packaging](https://github.com/max-listov/stitchwire/blob/v0.58.0/docs/architecture/product.md) — runtime, broker, agent and planes
175
- - [Distribution and installation](https://github.com/max-listov/stitchwire/blob/v0.58.0/docs/architecture/distribution.md) — artifacts, macOS/Linux supervision and removal
176
- - [Local node enrollment](https://github.com/max-listov/stitchwire/blob/v0.58.0/docs/architecture/enrollment.md) — repeatable admission, binding and detach
177
- - [Diagnostics](https://github.com/max-listov/stitchwire/blob/v0.58.0/docs/architecture/diagnostics.md) — bounded `stitchwire doctor --json`, with the same checks and exit status as text mode; scheduling stays with the operator
178
- - [Publication inputs](https://github.com/max-listov/stitchwire/blob/v0.58.0/docs/architecture/publication.md) — clean history-free snapshots and release gates
179
- - [Architecture Decision Records](https://github.com/max-listov/stitchwire/tree/v0.58.0/docs/decisions/) — why each protocol boundary exists
180
- - [Security policy](https://github.com/max-listov/stitchwire/blob/v0.58.0/SECURITY.md) · [Contributing](https://github.com/max-listov/stitchwire/blob/v0.58.0/CONTRIBUTING.md) · [Changelog](https://github.com/max-listov/stitchwire/blob/v0.58.0/CHANGELOG.md)
174
+ - [Vision](https://github.com/max-listov/stitchwire/blob/v0.59.0/docs/VISION.md) — product direction and deliberate limits
175
+ - [Architecture and packaging](https://github.com/max-listov/stitchwire/blob/v0.59.0/docs/architecture/product.md) — runtime, broker, agent and planes
176
+ - [Distribution and installation](https://github.com/max-listov/stitchwire/blob/v0.59.0/docs/architecture/distribution.md) — artifacts, macOS/Linux supervision and removal
177
+ - [Local node enrollment](https://github.com/max-listov/stitchwire/blob/v0.59.0/docs/architecture/enrollment.md) — repeatable admission, binding and detach
178
+ - [Diagnostics](https://github.com/max-listov/stitchwire/blob/v0.59.0/docs/architecture/diagnostics.md) — bounded `stitchwire doctor --json`, with the same checks and exit status as text mode; scheduling stays with the operator
179
+ - [Publication inputs](https://github.com/max-listov/stitchwire/blob/v0.59.0/docs/architecture/publication.md) — clean history-free snapshots and release gates
180
+ - [Architecture Decision Records](https://github.com/max-listov/stitchwire/tree/v0.59.0/docs/decisions/) — why each protocol boundary exists
181
+ - [Security policy](https://github.com/max-listov/stitchwire/blob/v0.59.0/SECURITY.md) · [Contributing](https://github.com/max-listov/stitchwire/blob/v0.59.0/CONTRIBUTING.md) · [Changelog](https://github.com/max-listov/stitchwire/blob/v0.59.0/CHANGELOG.md)
181
182
 
182
183
  ## License
183
184
 
184
- [MIT](https://github.com/max-listov/stitchwire/blob/v0.58.0/LICENSE) © Max Listov
185
+ [MIT](https://github.com/max-listov/stitchwire/blob/v0.59.0/LICENSE) © Max Listov
@@ -1307,7 +1307,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1307
1307
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1308
1308
 
1309
1309
 
1310
- --- stitchkit@0.132.0: LICENSE ---
1310
+ --- stitchkit@0.135.0: LICENSE ---
1311
1311
  MIT License
1312
1312
 
1313
1313
  Copyright (c) 2026 Max Listov