byollm 0.1.0-alpha.3 → 0.1.0-alpha.30
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 +98 -2
- package/dist/bin.js +1 -1
- package/dist/{chunk-2W2ZIXAS.js → chunk-JJ7FK3B6.js} +1294 -131
- package/dist/chunk-JJ7FK3B6.js.map +1 -0
- package/dist/index.d.ts +324 -24
- package/dist/index.js +7 -3
- package/package.json +4 -3
- package/dist/chunk-2W2ZIXAS.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
> [!WARNING]
|
|
2
|
-
> **Alpha (`0.1.0-alpha.
|
|
2
|
+
> **Alpha (`0.1.0-alpha.30`) — under active development. Don't use this yet.**
|
|
3
3
|
>
|
|
4
4
|
> Install it deliberately: `npx byollm@alpha`, or `npm install byollm@alpha`.
|
|
5
5
|
>
|
|
@@ -11,7 +11,67 @@
|
|
|
11
11
|
> npm assigns `latest` on a first publish and won't let it be removed, so a
|
|
12
12
|
> bare install resolves here too. This notice is the only guard — deliberately
|
|
13
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
|
|
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.
|
|
15
75
|
>
|
|
16
76
|
> **`alpha.3` is a breaking change.** A config naming `openai-http` with a
|
|
17
77
|
> remote base URL and an offer scope wider than `self` is narrowed to `self`
|
|
@@ -19,6 +79,18 @@
|
|
|
19
79
|
> `byollm offer <backend> public --cap <cents>`. Local base URLs are
|
|
20
80
|
> unaffected. `byollm backends` shows the cost class per route.
|
|
21
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.30` 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
|
+
|
|
22
94
|
# `byollm`
|
|
23
95
|
|
|
24
96
|
What end users run. Connects **outbound** to an app you trust, claims only the
|
|
@@ -92,12 +164,36 @@ The meter is the product, and it gets the same care as the loop.
|
|
|
92
164
|
|
|
93
165
|
```bash
|
|
94
166
|
byollm status # what's connected, what's running, what you've done for others
|
|
167
|
+
byollm sites # which sites this machine serves, and which are waiting on you
|
|
168
|
+
byollm approve <site> # say yes to a site that asked
|
|
95
169
|
byollm log # every prompt that has ever run here
|
|
96
170
|
byollm log --full # the whole text, not the first line
|
|
97
171
|
byollm pause # stop claiming work
|
|
98
172
|
byollm resume
|
|
99
173
|
```
|
|
100
174
|
|
|
175
|
+
### A site cannot add itself
|
|
176
|
+
|
|
177
|
+
Pairing is with an *app* — a hub, a relay, your own server — and one pairing
|
|
178
|
+
can cover several sites. Which sites arrives on the heartbeat, from the same
|
|
179
|
+
party that routes the work.
|
|
180
|
+
|
|
181
|
+
So a site that turns up after pairing **waits**. It is listed by
|
|
182
|
+
`byollm sites` with its fingerprint, nothing is claimed for it, and it starts
|
|
183
|
+
being served the moment you run `byollm approve <site>`. Compare the
|
|
184
|
+
fingerprint against what the site itself shows you before you do.
|
|
185
|
+
|
|
186
|
+
The reason is narrow and worth stating: the daemon pins each site's keys so
|
|
187
|
+
that the party routing a job cannot choose which key signed it. If that party
|
|
188
|
+
could also *add* a site, it could generate a keypair, announce it, sign its
|
|
189
|
+
own work with it, and every pin check downstream would pass — because the
|
|
190
|
+
list they check against is the thing it wrote. Approving is the one step it
|
|
191
|
+
cannot perform for you.
|
|
192
|
+
|
|
193
|
+
A key that moves under a site you already approved is refused rather than
|
|
194
|
+
replaced, for the life of the pairing — including when the site leaves the
|
|
195
|
+
list and comes back. Rotation is an explicit path, not a silent swap.
|
|
196
|
+
|
|
101
197
|
Every prompt is appended to `~/.byollm/ingress.log` **before** it executes, so
|
|
102
198
|
a job that wedges the machine still leaves a record of what it was. The file is
|
|
103
199
|
JSONL, `0600`, and yours to read, grep and delete.
|