byollm 0.1.0-alpha.99 → 0.1.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 CHANGED
@@ -1,125 +1,11 @@
1
- > [!WARNING]
2
- > **Alpha (`0.1.0-alpha.99`) — under active development. Don't use this yet.**
1
+ <!-- release-note 0.1.1 -->
2
+ > **`0.1.1` is documentation only — nothing to upgrade.** `PROTOCOL_VERSION`
3
+ > is still `2`, so a 0.1.0 party and a 0.1.1 party talk to each other in both
4
+ > directions. No dependency, schema, wire field or on-disk shape moved.
3
5
  >
4
- > Install it deliberately: `npx byollm@latest`, or `npm install byollm@latest`.
5
- >
6
- > The protocol is v0 and **will** change without a deprecation path, this has
7
- > never run outside its own test suite, and nothing here has production miles.
8
- > Read it, take the ideas, tell us what's wrong — but don't put it in front of
9
- > your users.
10
- >
11
- > npm assigns `latest` on a first publish and won't let it be removed, so a
12
- > bare install resolves here too. This notice is the only guard — deliberately
13
- > not an npm deprecation, which would read as *abandoned* rather than *early*.
14
- > Ask for `@alpha` explicitly so your lockfile records that you meant to.>
15
- > **`alpha.15` is a breaking wire change, and it breaks daemons and relays —
16
- > not app authors.** If you call `app.enqueue(...)` and read results, nothing
17
- > in your code changes. If you run a daemon or an upstream, every package must
18
- > move together: a mixed pair refuses on both sides, because both ends parse
19
- > `.strict()`.
20
- >
21
- > What moved, all of it reconciling the frozen `byollm_009` with its code:
22
- > `JobStub` gains `site` (the site's identity key id) and loses
23
- > `audienceAllow`; `ResultRequest` gains `leaseId`; `HeartbeatResponse` loses
24
- > `leases`, which nothing read; `WireErrorCode` gains `not-ready`,
25
- > `clock-skew` and `forbidden`, and `403` is `forbidden` rather than
26
- > `unauthorized`. `RESULT_PROVENANCE` is superseded by
27
- > `PROVENANCE_NAMES_DEVICE`. See `byollm_009` Amendment A.>
28
- > **`alpha.16` is a breaking wire change — daemons and relays again, not app
29
- > authors.** `app.enqueue(...)` and reading results are unchanged. All five
30
- > packages move together: both ends parse `.strict()`, so a mixed pair
31
- > refuses.
32
- >
33
- > What moved, all of it Tier 2 of `cloud_008`: `model`, `backendClass` and
34
- > `durationMs` come off `ResultRequest` and are sealed **inside** the result
35
- > envelope as `SealedOutcome = { outcome, ran }` — so a daemon can no longer
36
- > declare a model it did not sign, and a relay carries neither.
37
- > `HeartbeatResponse` loses `leases` (nothing read it) and now reports real
38
- > cancellations instead of an empty list. `WireErrorCode` gains `forbidden`
39
- > for 403, leaving `unauthorized` at exactly 401. The relay gained a
40
- > site-plane `cancel` endpoint, honours `stub.deadlineAt`, honours
41
- > `stub.audience`, and remembers a refusal.>
42
- > **`alpha.17` is additive** — no wire change. It exports `ReleaseReason`,
43
- > which `RoutingStore.releaseLeases` names and the package did not export, so
44
- > the interface was unimplementable outside this repo.>
45
- > **`alpha.18` is a breaking wire change — daemons and relays, not app
46
- > authors.** `app.enqueue(...)` and reading results are unchanged. All five
47
- > packages move together.
48
- >
49
- > The **bearer token is gone**: off `PairPollResponse`, off the runner row,
50
- > off the daemon's pairings file, out of the adapter's schema. It was minted,
51
- > hashed and stored on two disks and never sent, looked up or compared —
52
- > `REQUESTS_SIGNED_NOT_BEARER` was enforced by signatures the whole time. If
53
- > you run the Supabase adapter, apply
54
- > `20260819000000_drop_runner_token.sql`; `byollm_approve_pairing` now takes
55
- > one argument. A pairings file written by an older daemon still loads.
56
- >
57
- > `model`, `backendClass` and `durationMs` moved **inside** the sealed result
58
- > (`SealedOutcome = { outcome, ran }`), so a daemon cannot declare a model it
59
- > did not sign and a relay carries none of them. Writing a `RoutingStore`?
60
- > `releaseLeases` takes an optional `reason` and `complete` requires
61
- > `leaseId`, and **an implementation that ignores either still typechecks** —
62
- > run the store contract tests.>
63
- > **`alpha.19` is additive on the wire and a behaviour change in every
64
- > store.** `ResultResponse` gains an optional `duplicate`. Nothing is removed,
65
- > so an older daemon keeps working — but the *order* two rules are checked in
66
- > has changed, and a `RoutingStore` implementation must change with it.
67
- >
68
- > `complete` now checks **terminal state before holder**, scoped to the device
69
- > that finished the job: a replay from that device is answered `duplicate:
70
- > true` with a 2xx, and anyone else gets exactly the refusal they would get
71
- > for a job that is not terminal. Previously `RESULT_IDEMPOTENT` held only
72
- > because the lease is nulled on success, so the holder check tripped first —
73
- > deleting the idempotency branch failed no test. Run the store contract
74
- > tests; the compiler cannot see this.
75
- >
76
- > **`alpha.3` is a breaking change.** A config naming `openai-http` with a
77
- > remote base URL and an offer scope wider than `private` is narrowed to `private`
78
- > until you acknowledge the spend and set a daily ceiling:
79
- > `byollm offer <backend> public --cap <cents>`. Local base URLs are
80
- > unaffected. `byollm backends` shows the cost class per route.
81
-
82
- <!-- release-note 0.1.0-alpha.21 -->
83
- > [!NOTE]
84
- > **`0.1.0-alpha.20` is not a complete release — do not pin it.** Four
85
- > packages published and `@byollm/server` did not: a Sigstore
86
- > transparency-log 409 on its provenance attestation. The workflow's
87
- > "already published" guard correctly refuses to resume a partial publish,
88
- > so `0.1.0-alpha.21` is that release, whole.
89
- >
90
- > If you run the Supabase adapter, `alpha.21` needs
91
- > `20260819010000_completed_by_lease_id.sql`: alpha.19 shipped §3.6's
92
- > ordering without the column it stores the grant in.
93
-
94
- <!-- release-note 0.1.0-alpha.40 -->
95
- **`byollm start` — stop keeping a terminal open.** The daemon can now run
96
- under your computer's own supervisor and restart itself if it stops: a launchd
97
- agent on macOS, a `systemd --user` unit on Linux, a logon task on Windows. All
98
- user-level — no root, no system directories, and `byollm stop` takes it
99
- away. `byollm status` gained a line saying whether it is actually supervised
100
- right now, including the state that matters most: installed but not running,
101
- which looks fine from an app's dashboard and serves nothing.
102
-
103
- If you are running via `npx`, install properly first (`npm install -g
104
- byollm@latest`) — `install` refuses to supervise a copy in npx's cache, because
105
- npm deletes that directory and the service would fail at some later boot.
106
-
107
- <!-- release-note 0.1.0-alpha.41 -->
108
- **`onNoRunner` takes a string.** Your fallback answer is your own value, not
109
- wire data, and handing back a whole result record for it was ceremony — the
110
- README's own example got the shape wrong, which is how this was found.
111
-
112
- ```ts
113
- const { outcome, fallback } = await job.result({
114
- onNoRunner: () => runOnHostedModel(transcript),
115
- });
116
- ```
117
-
118
- Whatever you return, `result()` labels it `fallback: true` — the stamp is
119
- applied by the wait, not taken from you, so an answer that did not run on
120
- somebody's device cannot be reported as though it did (`FALLBACK_LABELED`).
121
- Both delivery channels do it, polling and Supabase Realtime. Records still
122
- work; they just get labelled too.
6
+ > This README used to open with a stack of release notes instead of with the
7
+ > package. The history moved to `docs/release-notes/` and `CHANGELOG.md`,
8
+ > where none of it was lost. Full note: `docs/release-notes/0.1.1.md`.
123
9
 
124
10
  # `byollm`
125
11
 
@@ -340,7 +226,7 @@ anything and we do not claim otherwise. It is bounded here because the model
340
226
  has no tools and the output is inert.
341
227
 
342
228
  Full threat model, including what the OS stops us dropping:
343
- [`docs/security.md`](../../docs/security.md).
229
+ [`docs/security.md`](https://github.com/oftomorrowinc/byollm/blob/main/docs/security.md).
344
230
 
345
231
  MIT
346
232
 
@@ -356,4 +242,11 @@ Six packages, and they are only interesting together:
356
242
  - [`@byollm/control-plane`](https://www.npmjs.com/package/@byollm/control-plane) — who may ask whom, and the policy store behind it
357
243
  - [`@byollm/conformance`](https://www.npmjs.com/package/@byollm/conformance) — the kit that proves an implementation is one — including a posture audit that holds nothing but a URL
358
244
 
245
+ ### Where the rest lives
246
+
247
+ - [GitHub](https://github.com/oftomorrowinc/byollm) — the source, and where issues go
248
+ - [byo-llm.com](https://byo-llm.com) — what this is, and why
249
+ - [byollm.cloud](https://byollm.cloud) — the hosted relay — devices, consent and billing
250
+ - [docs.byollm.cloud](https://docs.byollm.cloud) — integrating a site, end to end
251
+
359
252
  <!-- family:end -->
package/dist/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "./chunk-LPCHIPVJ.js";
4
+ } from "./chunk-OOC3ASS6.js";
5
5
 
6
6
  // src/bin.ts
7
7
  process.exitCode = await main(process.argv.slice(2));