@toa.io/extensions.realtime 1.0.0-alpha.284 → 1.0.0-alpha.286

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.
Files changed (37) hide show
  1. package/components/realtime.streams/manifest.toa.yaml +4 -2
  2. package/components/realtime.streams/operations/create.js +1 -1
  3. package/components/realtime.streams/operations/lib/Stash.js +1 -1
  4. package/components/realtime.streams/operations/lib/Stream.js +1 -1
  5. package/components/realtime.streams/operations/push.js +1 -1
  6. package/components/realtime.streams/source/create.ts +7 -10
  7. package/components/realtime.streams/source/lib/Stash.ts +24 -26
  8. package/components/realtime.streams/source/lib/Stream.ts +9 -7
  9. package/components/realtime.streams/source/push.ts +5 -3
  10. package/components/realtime.streams/tsconfig.tsbuildinfo +1 -1
  11. package/context.toa.yaml +2 -2
  12. package/cucumber.mjs +3 -0
  13. package/features/steps/Components.ts +8 -7
  14. package/features/steps/Realtime.ts +4 -5
  15. package/features/steps/Streams.ts +9 -12
  16. package/features/steps/components/messages/manifest.toa.yaml +16 -18
  17. package/package.json +4 -4
  18. package/source/Composition.ts +5 -5
  19. package/source/Factory.ts +5 -4
  20. package/source/Realtime.ts +16 -11
  21. package/source/Receiver.ts +29 -20
  22. package/source/Routes.ts +10 -8
  23. package/source/extension.ts +20 -10
  24. package/transpiled/Composition.js.map +1 -1
  25. package/transpiled/Factory.d.ts +1 -1
  26. package/transpiled/Factory.js.map +1 -1
  27. package/transpiled/Realtime.js.map +1 -1
  28. package/transpiled/Receiver.d.ts +2 -1
  29. package/transpiled/Receiver.js +5 -3
  30. package/transpiled/Receiver.js.map +1 -1
  31. package/transpiled/Routes.js +1 -2
  32. package/transpiled/Routes.js.map +1 -1
  33. package/transpiled/extension.d.ts +3 -0
  34. package/transpiled/extension.js +10 -3
  35. package/transpiled/extension.js.map +1 -1
  36. package/tsconfig.tsbuildinfo +1 -1
  37. package/CHANGELOG.md +0 -344
package/CHANGELOG.md DELETED
@@ -1,344 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [1.0.0-alpha.284](https://github.com/toa-io/toa/compare/v1.0.0-alpha.283...v1.0.0-alpha.284) (2026-09-05)
7
-
8
- ### Bug Fixes
9
-
10
- * **build:** an operations directory holds modules and nothing else ([21a8ca1](https://github.com/toa-io/toa/commit/21a8ca19f1c45aef6cbb443ada0a909d325e76e8))
11
-
12
-
13
- # [1.0.0-alpha.283](https://github.com/toa-io/toa/compare/v1.0.0-alpha.282...v1.0.0-alpha.283) (2026-09-04)
14
-
15
- ### Bug Fixes
16
-
17
- * **cli:** an assignment hands back the new state, not nothing ([91304e9](https://github.com/toa-io/toa/commit/91304e9e9a3bba5933b7421b7a0ffff0c2e47795))
18
- * **exposition:** declare the errors the built-in components return ([27200c3](https://github.com/toa-io/toa/commit/27200c348ab09068d58c52c3e83208cb29cd7290))
19
-
20
- ### Features
21
-
22
- * **cli:** a type module is declarations, so it sits beside a component's source ([ca755d9](https://github.com/toa-io/toa/commit/ca755d93d1a04b7697dd0dd12eb59e5b6e2a71d1))
23
- * **cli:** the built-in components ship types generated from their manifests ([bd7db9e](https://github.com/toa-io/toa/commit/bd7db9e88e46c1060223761898932239127f389a))
24
- * **extensions:** an extension declares what it puts on a component's context ([133bc2a](https://github.com/toa-io/toa/commit/133bc2aad1e45a2d4aa68a08a5e44ca48d3b7414))
25
-
26
-
27
- # [1.0.0-alpha.282](https://github.com/toa-io/toa/compare/v1.0.0-alpha.281...v1.0.0-alpha.282) (2026-09-03)
28
-
29
- ### Bug Fixes
30
-
31
- * **boot:** declare host, and build extensions with it in the step definitions ([915d957](https://github.com/toa-io/toa/commit/915d9571823358f8fca6fe19ef3aabd1b62e5605))
32
-
33
- ### Features
34
-
35
- * **core:** a Host for extensions ([6315eac](https://github.com/toa-io/toa/commit/6315eac1e9fb05be472272de06385c54ad5934ce))
36
-
37
-
38
- # [1.0.0-alpha.278](https://github.com/toa-io/toa/compare/v1.0.0-alpha.277...v1.0.0-alpha.278) (2026-09-03)
39
-
40
- **Note:** Version bump only for package @toa.io/extensions.realtime
41
-
42
-
43
-
44
-
45
-
46
- # [1.0.0-alpha.277](https://github.com/toa-io/toa/compare/v1.0.0-alpha.276...v1.0.0-alpha.277) (2026-09-03)
47
-
48
- ### Bug Fixes
49
-
50
- * drop the build output that landed beside the sources ([a724f69](https://github.com/toa-io/toa/commit/a724f6921190e5c9d945e33c6035bb12d832e5c8))
51
- * settle what the module loader made asynchronous ([d4ab9df](https://github.com/toa-io/toa/commit/d4ab9dfb09e382da311dba08f52214e7645f4a6c))
52
- * what the loader resolves, and what it will not ([1b8a02f](https://github.com/toa-io/toa/commit/1b8a02ff0a5e0f18ee62e3f71bc81116f86f9af1))
53
-
54
-
55
- # [1.0.0-alpha.274](https://github.com/toa-io/toa/compare/v1.0.0-alpha.273...v1.0.0-alpha.274) (2026-09-02)
56
-
57
-
58
- * Configuration is served by a component, followed live, and kept per epoch (#1017) ([b05997d](https://github.com/toa-io/toa/commit/b05997d3adb784f238a222cb46878b23859339a2)), closes [#1017](https://github.com/toa-io/toa/issues/1017)
59
-
60
-
61
- ### BREAKING CHANGES
62
-
63
- * a secret configuration value is an object, not a string;
64
- read it with `unwrap()`.
65
-
66
- Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
67
-
68
- * test(configuration): wait for the second round rather than assume it
69
-
70
- Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
71
-
72
- * refactor(configuration)!: read a secret with its own unwrap
73
-
74
- Component code depends on no Toa package, so a secret is read as
75
- `context.configuration.apiKey.unwrap()` and the helper in `@toa.io/generic`
76
- goes. A value a component reads as a secret is therefore given as a reference:
77
- `identity.basic` no longer defaults `pepper` to `''`, the development context
78
- and the feature harness give the token keys, the federation client secret and
79
- the signing key as references, and the harness has a step for the secrets a
80
- scenario refers to. CONTRIBUTING states the rule.
81
- * `identity.basic` `pepper` has no default; a value read as a
82
- secret must be given as a `$NAME` reference.
83
-
84
- Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
85
-
86
- * feat(configuration): list the configurations
87
-
88
- `configuration.values.list` returns every component's configuration for its
89
- deployed epoch, by component name, and `GET /configuration/values/` serves it
90
- behind `system:configuration:get`.
91
-
92
- Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
93
-
94
- * fix(exposition): write a value in YAML the way its toJSON says
95
-
96
- A redacted secret in a reply was dumped as an empty object; it is written as
97
- `<REDACTED>`, as JSON and msgpack already write it.
98
-
99
- Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
100
-
101
- * test(configuration): a secret is an object, and stays redacted in a reply
102
-
103
- A component with `{ a: 1, b: $SECRET_B }` returns its configuration as
104
- `{ a: 1, b: '<REDACTED>' }` and the secret itself through `unwrap()`. The reply
105
- step also accepts a reply as a caller across a process boundary receives it,
106
- since a call within the process hands the object over as it is.
107
-
108
- Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
109
-
110
- * chore(schemas): bump the dependencies
111
-
112
- ajv 8.18.0 to 8.20.0, ajv-formats 2.1.1 to 3.0.1, better-ajv-errors 1.2.0
113
- to 2.0.3, fast-glob 3.2.12 to 3.3.3 and js-yaml 4.3.1 to 5.4.1 — the version
114
- exposition already uses. The three majors keep the CommonJS entry points this
115
- library calls: ajv-formats as a function, better-ajv-errors as .default, and
116
- js-yaml's load.
117
-
118
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
119
-
120
- * feat(configuration)!: serve the schema with the value
121
-
122
- GET /configuration/values/:component/ answers { configuration, schema, epoch }
123
- where it answered with the configuration alone, and list carries the schema of
124
- every component. Nothing reads a configuration without needing to know what it
125
- is checked against, and the schema was only ever on the values service.
126
-
127
- An epoch the deployment does not know has no schema; the value stored for it
128
- is still returned.
129
-
130
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
131
-
132
- * feat(configuration): publish a configuration UI
133
-
134
- The values service serves a page at /.configuration on port 8003, out of the
135
- directory ui builds: the configured components, a screen per component showing
136
- what it holds now, and a dialog creating the next one. Reading needs
137
- system:configuration:get and creating needs system:configuration:create.
138
-
139
- A configuration is immutable, so the dialog opens on the current value and what
140
- is left out of it is left out of the component. The editor takes YAML, the
141
- schema is applied before anything is sent, and a secret is a reference the page
142
- never shows.
143
-
144
- The page is always published: the annotation is the per-component values map
145
- and has nowhere to carry a switch.
146
-
147
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
148
-
149
- * feat(introspection): link a component to its configuration
150
-
151
- A card carrying @toa.io/extensions.configuration reads that extension as a link
152
- to the configuration UI rather than as a name, and configuration joins the
153
- namespaces the runtime provides, so its components band under System.
154
-
155
- Deployed, both pages sit behind the same ingress and the path alone is right;
156
- locally each console has its own port.
157
-
158
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
159
-
160
- * feat(introspection): scroll the map, zoom with a modifier
161
-
162
- The map was grabbed to move and zoomed with a bare wheel, which is neither what
163
- a page does nor what the wheel does anywhere else. A plain scroll now pans on
164
- both axes and the wheel scales only with the modifier held — a trackpad pinch
165
- arrives as one of those on every platform.
166
-
167
- A card's own scrollable box keeps its wheel, in both paths.
168
-
169
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
170
-
171
- * refactor(introspection): centre the filter in the header
172
-
173
- The sides take equal space, which is what leaves the filter between them.
174
- Neither side may shrink under what it holds, or the tabs run out from under
175
- their side and across the filter, and the filter across the sign-out button;
176
- the title gives way instead.
177
-
178
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
179
-
180
- * fix(configuration): connect the UI to the values service
181
-
182
- The page was declared as a dependency from inside `open`, and a connector connects
183
- what it depends on before `open` runs — so the server was constructed and never
184
- listened. Nothing caught it: the UI feature builds the server itself.
185
-
186
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
187
-
188
- * feat(configuration)!: reserve resources in the annotation
189
-
190
- The values service deploys like any other and must state what it may take, but the
191
- annotation is a map of component ids and had nowhere to put it — so `toa env` failed
192
- for every context using configuration unless it declared a context-wide `resources`.
193
-
194
- `resources` is now the service's own, read the way `introspection` and `realtime` read
195
- theirs. A component actually named `resources` is written `default.resources`, which is
196
- what its id is anyway.
197
-
198
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
199
-
200
- * feat(configuration): follow the system colour scheme
201
-
202
- The dark tokens were behind a `.dark` class nothing sets, and the `dark:` variant was
203
- pointed at that class too — so a component's own dark styling never applied either.
204
- Both now key off `prefers-color-scheme`, and `color-scheme` hands the native chrome
205
- the same answer.
206
-
207
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
208
-
209
- * feat(introspection): follow the system colour scheme
210
-
211
- The dark tokens were behind a `.dark` class nothing sets, and the `dark:` variant was
212
- pointed at that class too — so a component's own dark styling never applied either.
213
- Both now key off `prefers-color-scheme`, and `color-scheme` hands the native chrome
214
- the same answer.
215
-
216
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
217
-
218
- * feat(configuration): present a change as an edit of what is there
219
-
220
- A configuration is immutable and creating one replaces the whole of it, but the dialog
221
- opens on the current value and the page never shows an older one — so what the reader
222
- does is edit. The words follow: Edit rather than New, Update rather than Create, and
223
- the paragraph explaining the model goes, along with the field's label, which the title
224
- above it already said.
225
-
226
- The editor also stayed as wide as its longest line — `field-sizing: content` sizes to
227
- content, and no `max-width` clamps that — so a long value painted outside the dialog.
228
- It is fixed now, the dialog takes the width the screen has rather than a fixed step,
229
- and the band held for errors no longer leaves a gap when there are none.
230
-
231
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
232
-
233
- * feat(configuration): mark a component that keeps a secret
234
-
235
- A key after the name on the row, wherever the configuration holds a reference, however
236
- deep. The predicate reads the same lines the value screen renders, so the two cannot
237
- disagree about what counts as a secret.
238
-
239
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
240
-
241
- * feat(configuration): lead back to the list from the title
242
-
243
- Every address ends in a slash, so the way up is the address itself on the list and one
244
- level above it on a component's screen — which holds wherever the page is mounted.
245
-
246
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
247
-
248
-
249
-
250
-
251
-
252
- # [1.0.0-alpha.273](https://github.com/toa-io/toa/compare/v1.0.0-alpha.272...v1.0.0-alpha.273) (2026-09-02)
253
-
254
-
255
- ### Bug Fixes
256
-
257
- * **exposition:** green the feature suite ([67c25ad](https://github.com/toa-io/toa/commit/67c25ad627db3b3779b09405c5a3c319ecd47722))
258
- * **realtime:** green the feature suite ([6b4650b](https://github.com/toa-io/toa/commit/6b4650bad9e1d53dabd0b7775966694bdb05f236))
259
-
260
-
261
-
262
-
263
-
264
- # [1.0.0-alpha.272](https://github.com/toa-io/toa/compare/v1.0.0-alpha.271...v1.0.0-alpha.272) (2026-09-01)
265
-
266
- **Note:** Version bump only for package @toa.io/extensions.realtime
267
-
268
-
269
-
270
-
271
-
272
- # [1.0.0-alpha.270](https://github.com/toa-io/toa/compare/v1.0.0-alpha.269...v1.0.0-alpha.270) (2026-08-31)
273
-
274
- **Note:** Version bump only for package @toa.io/extensions.realtime
275
-
276
-
277
-
278
-
279
-
280
- # [1.0.0-alpha.266](https://github.com/toa-io/toa/compare/v1.0.0-alpha.265...v1.0.0-alpha.266) (2026-08-29)
281
-
282
- **Note:** Version bump only for package @toa.io/extensions.realtime
283
-
284
-
285
-
286
-
287
-
288
- # [1.0.0-alpha.265](https://github.com/toa-io/toa/compare/v1.0.0-alpha.264...v1.0.0-alpha.265) (2026-08-29)
289
-
290
- **Note:** Version bump only for package @toa.io/extensions.realtime
291
-
292
-
293
-
294
-
295
-
296
- # [1.0.0-alpha.264](https://github.com/toa-io/toa/compare/v1.0.0-alpha.263...v1.0.0-alpha.264) (2026-08-29)
297
-
298
- **Note:** Version bump only for package @toa.io/extensions.realtime
299
-
300
-
301
-
302
-
303
-
304
- # [1.0.0-alpha.263](https://github.com/toa-io/toa/compare/v1.0.0-alpha.262...v1.0.0-alpha.263) (2026-08-29)
305
-
306
- **Note:** Version bump only for package @toa.io/extensions.realtime
307
-
308
-
309
-
310
-
311
-
312
- # [1.0.0-alpha.262](https://github.com/toa-io/toa/compare/v1.0.0-alpha.261...v1.0.0-alpha.262) (2026-08-28)
313
-
314
-
315
- ### Features
316
-
317
- * **core:** identify the origin of a call with `request.source` ([9da6b66](https://github.com/toa-io/toa/commit/9da6b66df852690351a1e82c7b8cc176fd89774a))
318
-
319
-
320
-
321
-
322
-
323
- # [1.0.0-alpha.259](https://github.com/toa-io/toa/compare/v1.0.0-alpha.258...v1.0.0-alpha.259) (2026-08-24)
324
-
325
- **Note:** Version bump only for package @toa.io/extensions.realtime
326
-
327
-
328
-
329
-
330
-
331
- # [1.0.0-alpha.257](https://github.com/toa-io/toa/compare/v1.0.0-alpha.256...v1.0.0-alpha.257) (2026-08-24)
332
-
333
- **Note:** Version bump only for package @toa.io/extensions.realtime
334
-
335
-
336
-
337
-
338
-
339
- # [1.0.0-alpha.256](https://github.com/toa-io/toa/compare/v1.0.0-alpha.255...v1.0.0-alpha.256) (2026-08-23)
340
-
341
-
342
- ### Features
343
-
344
- * add toa mono and discover components at components/* ([787a111](https://github.com/toa-io/toa/commit/787a111c8f83e56ebc734801c97106c585d034ea))