@toa.io/extensions.realtime 1.0.0-alpha.273 → 1.0.0-alpha.277

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 (62) hide show
  1. package/CHANGELOG.md +206 -0
  2. package/components/realtime.streams/operations/create.d.ts +1 -2
  3. package/components/realtime.streams/operations/create.js +4 -8
  4. package/components/realtime.streams/operations/create.js.map +1 -1
  5. package/components/realtime.streams/operations/lib/Stash.js +1 -5
  6. package/components/realtime.streams/operations/lib/Stash.js.map +1 -1
  7. package/components/realtime.streams/operations/lib/Stream.d.ts +3 -4
  8. package/components/realtime.streams/operations/lib/Stream.js +4 -7
  9. package/components/realtime.streams/operations/lib/Stream.js.map +1 -1
  10. package/components/realtime.streams/operations/lib/index.d.ts +2 -2
  11. package/components/realtime.streams/operations/lib/index.js +2 -7
  12. package/components/realtime.streams/operations/lib/index.js.map +1 -1
  13. package/components/realtime.streams/operations/lib/types.d.ts +2 -2
  14. package/components/realtime.streams/operations/lib/types.js +1 -2
  15. package/components/realtime.streams/operations/push.d.ts +1 -1
  16. package/components/realtime.streams/operations/push.js +1 -5
  17. package/components/realtime.streams/operations/push.js.map +1 -1
  18. package/components/realtime.streams/source/create.ts +2 -2
  19. package/components/realtime.streams/source/lib/Stream.ts +2 -1
  20. package/components/realtime.streams/source/lib/index.ts +2 -2
  21. package/components/realtime.streams/source/lib/types.ts +2 -2
  22. package/components/realtime.streams/source/push.ts +1 -1
  23. package/components/realtime.streams/tsconfig.json +1 -0
  24. package/components/realtime.streams/tsconfig.tsbuildinfo +1 -0
  25. package/cucumber.mjs +5 -0
  26. package/features/steps/Components.ts +7 -4
  27. package/features/steps/Realtime.ts +10 -9
  28. package/features/steps/Streams.ts +5 -2
  29. package/features/steps/config.ts +4 -0
  30. package/package.json +6 -9
  31. package/source/Composition.ts +2 -2
  32. package/source/Factory.ts +3 -3
  33. package/source/Realtime.ts +2 -2
  34. package/source/Routes.ts +3 -3
  35. package/source/extension.ts +4 -3
  36. package/source/index.ts +2 -2
  37. package/transpiled/Composition.d.ts +1 -1
  38. package/transpiled/Composition.js +10 -16
  39. package/transpiled/Composition.js.map +1 -1
  40. package/transpiled/Factory.d.ts +1 -1
  41. package/transpiled/Factory.js +9 -13
  42. package/transpiled/Factory.js.map +1 -1
  43. package/transpiled/Realtime.d.ts +1 -1
  44. package/transpiled/Realtime.js +8 -12
  45. package/transpiled/Realtime.js.map +1 -1
  46. package/transpiled/Receiver.d.ts +0 -1
  47. package/transpiled/Receiver.js +8 -12
  48. package/transpiled/Receiver.js.map +1 -1
  49. package/transpiled/Routes.d.ts +2 -3
  50. package/transpiled/Routes.js +9 -13
  51. package/transpiled/Routes.js.map +1 -1
  52. package/transpiled/extension.d.ts +1 -1
  53. package/transpiled/extension.js +8 -13
  54. package/transpiled/extension.js.map +1 -1
  55. package/transpiled/index.d.ts +2 -2
  56. package/transpiled/index.js +2 -20
  57. package/transpiled/index.js.map +1 -1
  58. package/tsconfig.json +2 -1
  59. package/tsconfig.tsbuildinfo +1 -0
  60. package/components/realtime.streams/operations/tsconfig.tsbuildinfo +0 -1
  61. package/cucumber.js +0 -8
  62. package/transpiled/tsconfig.tsbuildinfo +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,212 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [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)
7
+
8
+ ### Bug Fixes
9
+
10
+ * drop the build output that landed beside the sources ([a724f69](https://github.com/toa-io/toa/commit/a724f6921190e5c9d945e33c6035bb12d832e5c8))
11
+ * settle what the module loader made asynchronous ([d4ab9df](https://github.com/toa-io/toa/commit/d4ab9dfb09e382da311dba08f52214e7645f4a6c))
12
+ * what the loader resolves, and what it will not ([1b8a02f](https://github.com/toa-io/toa/commit/1b8a02ff0a5e0f18ee62e3f71bc81116f86f9af1))
13
+
14
+
15
+ # [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)
16
+
17
+
18
+ * 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)
19
+
20
+
21
+ ### BREAKING CHANGES
22
+
23
+ * a secret configuration value is an object, not a string;
24
+ read it with `unwrap()`.
25
+
26
+ Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
27
+
28
+ * test(configuration): wait for the second round rather than assume it
29
+
30
+ Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
31
+
32
+ * refactor(configuration)!: read a secret with its own unwrap
33
+
34
+ Component code depends on no Toa package, so a secret is read as
35
+ `context.configuration.apiKey.unwrap()` and the helper in `@toa.io/generic`
36
+ goes. A value a component reads as a secret is therefore given as a reference:
37
+ `identity.basic` no longer defaults `pepper` to `''`, the development context
38
+ and the feature harness give the token keys, the federation client secret and
39
+ the signing key as references, and the harness has a step for the secrets a
40
+ scenario refers to. CONTRIBUTING states the rule.
41
+ * `identity.basic` `pepper` has no default; a value read as a
42
+ secret must be given as a `$NAME` reference.
43
+
44
+ Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
45
+
46
+ * feat(configuration): list the configurations
47
+
48
+ `configuration.values.list` returns every component's configuration for its
49
+ deployed epoch, by component name, and `GET /configuration/values/` serves it
50
+ behind `system:configuration:get`.
51
+
52
+ Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
53
+
54
+ * fix(exposition): write a value in YAML the way its toJSON says
55
+
56
+ A redacted secret in a reply was dumped as an empty object; it is written as
57
+ `<REDACTED>`, as JSON and msgpack already write it.
58
+
59
+ Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
60
+
61
+ * test(configuration): a secret is an object, and stays redacted in a reply
62
+
63
+ A component with `{ a: 1, b: $SECRET_B }` returns its configuration as
64
+ `{ a: 1, b: '<REDACTED>' }` and the secret itself through `unwrap()`. The reply
65
+ step also accepts a reply as a caller across a process boundary receives it,
66
+ since a call within the process hands the object over as it is.
67
+
68
+ Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
69
+
70
+ * chore(schemas): bump the dependencies
71
+
72
+ ajv 8.18.0 to 8.20.0, ajv-formats 2.1.1 to 3.0.1, better-ajv-errors 1.2.0
73
+ 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
74
+ exposition already uses. The three majors keep the CommonJS entry points this
75
+ library calls: ajv-formats as a function, better-ajv-errors as .default, and
76
+ js-yaml's load.
77
+
78
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
79
+
80
+ * feat(configuration)!: serve the schema with the value
81
+
82
+ GET /configuration/values/:component/ answers { configuration, schema, epoch }
83
+ where it answered with the configuration alone, and list carries the schema of
84
+ every component. Nothing reads a configuration without needing to know what it
85
+ is checked against, and the schema was only ever on the values service.
86
+
87
+ An epoch the deployment does not know has no schema; the value stored for it
88
+ is still returned.
89
+
90
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
91
+
92
+ * feat(configuration): publish a configuration UI
93
+
94
+ The values service serves a page at /.configuration on port 8003, out of the
95
+ directory ui builds: the configured components, a screen per component showing
96
+ what it holds now, and a dialog creating the next one. Reading needs
97
+ system:configuration:get and creating needs system:configuration:create.
98
+
99
+ A configuration is immutable, so the dialog opens on the current value and what
100
+ is left out of it is left out of the component. The editor takes YAML, the
101
+ schema is applied before anything is sent, and a secret is a reference the page
102
+ never shows.
103
+
104
+ The page is always published: the annotation is the per-component values map
105
+ and has nowhere to carry a switch.
106
+
107
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
108
+
109
+ * feat(introspection): link a component to its configuration
110
+
111
+ A card carrying @toa.io/extensions.configuration reads that extension as a link
112
+ to the configuration UI rather than as a name, and configuration joins the
113
+ namespaces the runtime provides, so its components band under System.
114
+
115
+ Deployed, both pages sit behind the same ingress and the path alone is right;
116
+ locally each console has its own port.
117
+
118
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
119
+
120
+ * feat(introspection): scroll the map, zoom with a modifier
121
+
122
+ The map was grabbed to move and zoomed with a bare wheel, which is neither what
123
+ a page does nor what the wheel does anywhere else. A plain scroll now pans on
124
+ both axes and the wheel scales only with the modifier held — a trackpad pinch
125
+ arrives as one of those on every platform.
126
+
127
+ A card's own scrollable box keeps its wheel, in both paths.
128
+
129
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
130
+
131
+ * refactor(introspection): centre the filter in the header
132
+
133
+ The sides take equal space, which is what leaves the filter between them.
134
+ Neither side may shrink under what it holds, or the tabs run out from under
135
+ their side and across the filter, and the filter across the sign-out button;
136
+ the title gives way instead.
137
+
138
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
139
+
140
+ * fix(configuration): connect the UI to the values service
141
+
142
+ The page was declared as a dependency from inside `open`, and a connector connects
143
+ what it depends on before `open` runs — so the server was constructed and never
144
+ listened. Nothing caught it: the UI feature builds the server itself.
145
+
146
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
147
+
148
+ * feat(configuration)!: reserve resources in the annotation
149
+
150
+ The values service deploys like any other and must state what it may take, but the
151
+ annotation is a map of component ids and had nowhere to put it — so `toa env` failed
152
+ for every context using configuration unless it declared a context-wide `resources`.
153
+
154
+ `resources` is now the service's own, read the way `introspection` and `realtime` read
155
+ theirs. A component actually named `resources` is written `default.resources`, which is
156
+ what its id is anyway.
157
+
158
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
159
+
160
+ * feat(configuration): follow the system colour scheme
161
+
162
+ The dark tokens were behind a `.dark` class nothing sets, and the `dark:` variant was
163
+ pointed at that class too — so a component's own dark styling never applied either.
164
+ Both now key off `prefers-color-scheme`, and `color-scheme` hands the native chrome
165
+ the same answer.
166
+
167
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
168
+
169
+ * feat(introspection): follow the system colour scheme
170
+
171
+ The dark tokens were behind a `.dark` class nothing sets, and the `dark:` variant was
172
+ pointed at that class too — so a component's own dark styling never applied either.
173
+ Both now key off `prefers-color-scheme`, and `color-scheme` hands the native chrome
174
+ the same answer.
175
+
176
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
177
+
178
+ * feat(configuration): present a change as an edit of what is there
179
+
180
+ A configuration is immutable and creating one replaces the whole of it, but the dialog
181
+ opens on the current value and the page never shows an older one — so what the reader
182
+ does is edit. The words follow: Edit rather than New, Update rather than Create, and
183
+ the paragraph explaining the model goes, along with the field's label, which the title
184
+ above it already said.
185
+
186
+ The editor also stayed as wide as its longest line — `field-sizing: content` sizes to
187
+ content, and no `max-width` clamps that — so a long value painted outside the dialog.
188
+ It is fixed now, the dialog takes the width the screen has rather than a fixed step,
189
+ and the band held for errors no longer leaves a gap when there are none.
190
+
191
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
192
+
193
+ * feat(configuration): mark a component that keeps a secret
194
+
195
+ A key after the name on the row, wherever the configuration holds a reference, however
196
+ deep. The predicate reads the same lines the value screen renders, so the two cannot
197
+ disagree about what counts as a secret.
198
+
199
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
200
+
201
+ * feat(configuration): lead back to the list from the title
202
+
203
+ Every address ends in a slash, so the way up is the address itself on the list and one
204
+ level above it on a component's screen — which holds wherever the page is mounted.
205
+
206
+ Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
207
+
208
+
209
+
210
+
211
+
6
212
  # [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)
7
213
 
8
214
 
@@ -1,7 +1,6 @@
1
- /// <reference types="node" />
2
1
  import { type Readable } from 'node:stream';
3
2
  import { type Operation } from '@toa.io/types';
4
- import { type Context } from './lib/types';
3
+ import { type Context } from './lib/types.js';
5
4
  export declare class Effect implements Operation {
6
5
  private readonly streams;
7
6
  private stash;
@@ -1,14 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Effect = void 0;
4
- const lib_1 = require("./lib");
5
- class Effect {
1
+ import { Stream, Stash } from './lib/index.js';
2
+ export class Effect {
6
3
  streams = new Map();
7
4
  stash;
8
5
  logs;
9
6
  mount(context) {
10
7
  context.state.streams = this.streams;
11
- context.state.stash = new lib_1.Stash(context.stash, context.configuration, context.logs);
8
+ context.state.stash = new Stash(context.stash, context.configuration, context.logs);
12
9
  this.logs = context.logs;
13
10
  this.stash = context.state.stash;
14
11
  }
@@ -57,7 +54,7 @@ class Effect {
57
54
  return this.streams.get(key);
58
55
  }
59
56
  createStream(key) {
60
- const stream = new lib_1.Stream();
57
+ const stream = new Stream();
61
58
  stream.events.once('destroy', () => {
62
59
  this.logs.debug('Stream destroyed', { key });
63
60
  this.streams.delete(key);
@@ -65,5 +62,4 @@ class Effect {
65
62
  return stream;
66
63
  }
67
64
  }
68
- exports.Effect = Effect;
69
65
  //# sourceMappingURL=create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../source/create.ts"],"names":[],"mappings":";;;AAGA,+BAAqC;AAErC,MAAa,MAAM;IACA,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAA;IAC5C,KAAK,CAAQ;IACb,IAAI,CAAK;IAEV,KAAK,CAAE,OAAgB;QAC5B,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QACpC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,WAAK,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;QAEnF,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;QACxB,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAA;IACl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E,MAAM,EAAE,CAAC,CAAA;oBAEnE,OAAM;gBACR,CAAC;gBAED,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;gBAEpC,IAAI,MAAM,KAAK,SAAS;oBACtB,OAAM;gBAER,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;gBAE9B,KAAK,MAAM,KAAK,IAAI,MAAiB;oBACnC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;gBAEvD,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;YAC9C,CAAC,CAAC,CAAA;QAEJ,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAE,CAAA;IAC/B,CAAC;IAEO,YAAY,CAAE,GAAW;QAC/B,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAA;QAE3B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;YACjC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC5C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QAC1B,CAAC,CAAC,CAAA;QAEF,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Stash = void 0;
4
- class Stash {
1
+ export class Stash {
5
2
  stash;
6
3
  configuration;
7
4
  logs;
@@ -68,7 +65,6 @@ class Stash {
68
65
  return Buffer.from(token, 'base64url').toString();
69
66
  }
70
67
  }
71
- exports.Stash = Stash;
72
68
  /**
73
69
  * `xread` answers with an array of `[stream, entries]` pairs over RESP2 and with an
74
70
  * object keyed by stream name over RESP3. One stream is read, so either way it is the
@@ -1 +1 @@
1
- {"version":3,"file":"Stash.js","sourceRoot":"","sources":["../../source/lib/Stash.ts"],"names":[],"mappings":";;;AAEA,MAAa,KAAK;IACC,KAAK,CAAO;IACZ,aAAa,CAAe;IAC5B,IAAI,CAAK;IAE1B,YAAoB,KAAU,EAAE,aAA4B,EAAE,IAAS;QACrE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;IAEM,KAAK,CAAC,OAAO,CAAE,GAAW;QAC/B,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;IACxC,CAAC;IAEM,KAAK,CAAC,IAAI,CAAE,GAAW,EAAE,KAAa,EAAE,IAAa;QAC1D,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;IAC1C,CAAC;IAEM,KAAK,CAAC,GAAG,CAAE,GAAW,EAAE,KAAa;QAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAEhC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK;aAC7B,KAAK,CAAC,SAAS,EAAE,GAAG,EAAE,KAAK,CAAC;aAC5B,KAAK,CAAC,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,CAAA;QAEjC,IAAI,OAAO,KAAK,IAAI;YAClB,OAAO,cAAc,CAAA;QAEvB,IAAI,OAAO,YAAY,KAAK;YAC1B,OAAO,OAAO,CAAA;QAEhB,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;QAE9B,IAAI,KAAK,KAAK,IAAI;YAChB,OAAO,IAAI,CAAA;QAEb,MAAM,MAAM,GAAY,EAAE,CAAA;QAE1B,IAA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c,EAAE,CAAA"}
@@ -1,8 +1,7 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { EventEmitter, Readable } from 'node:stream';
1
+ import { EventEmitter } from 'node:events';
2
+ import { Readable } from 'node:stream';
4
3
  export declare class Stream extends Readable {
5
- events: EventEmitter<[never]>;
4
+ events: EventEmitter<any>;
6
5
  private interval;
7
6
  private ended;
8
7
  constructor();
@@ -1,9 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Stream = void 0;
4
- const node_stream_1 = require("node:stream");
5
- class Stream extends node_stream_1.Readable {
6
- events = new node_stream_1.EventEmitter();
1
+ import { EventEmitter } from 'node:events';
2
+ import { Readable } from 'node:stream';
3
+ export class Stream extends Readable {
4
+ events = new EventEmitter();
7
5
  interval = null;
8
6
  ended = false;
9
7
  constructor() {
@@ -40,7 +38,6 @@ class Stream extends node_stream_1.Readable {
40
38
  return resume;
41
39
  }
42
40
  }
43
- exports.Stream = Stream;
44
41
  const HEARTBEAT_INTERVAL = 16_000; // why?
45
42
  const objectMode = { objectMode: true };
46
43
  //# sourceMappingURL=Stream.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stream.js","sourceRoot":"","sources":["../../source/lib/Stream.ts"],"names":[],"mappings":";;;AAAA,6CAAoD;AAEpD,MAAa,MAAO,SAAQ,sBAAQ;IAC3B,MAAM,GAAG,IAAI,0BAAY,EAAE,CAAA;IAE1B,QAAQ,GAA0B,IAAI,CAAA;IACtC,KAAK,GAAG,KAAK,CAAA;IAErB;QACE,KAAK,CAAC,UAAU,CAAC,CAAA;IACnB,CAAC;IAED,iBAAiB;IACD,KAAK;QACnB,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI;YACxB,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,kBAAkB,CAAC,CAAA;IAC3E,CAAC;IAEe,QAAQ,CAAE,KAAmB,EAAE,QA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AAQ,CAAC,CAAA;YAC5B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;QACtB,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,MAAM,kBAAkB,GAAG,MAAM,CAAA,CAAC,OAAO;AACzC,MAAM,UAAU,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,CAAA"}
@@ -1,2 +1,2 @@
1
- export { Stash } from './Stash';
2
- export { Stream } from './Stream';
1
+ export { Stash } from './Stash.js';
2
+ export { Stream } from './Stream.js';
@@ -1,8 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Stream = exports.Stash = void 0;
4
- var Stash_1 = require("./Stash");
5
- Object.defineProperty(exports, "Stash", { enumerable: true, get: function () { return Stash_1.Stash; } });
6
- var Stream_1 = require("./Stream");
7
- Object.defineProperty(exports, "Stream", { enumerable: true, get: function () { return Stream_1.Stream; } });
1
+ export { Stash } from './Stash.js';
2
+ export { Stream } from './Stream.js';
8
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/lib/index.ts"],"names":[],"mappings":";;;AAAA,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,mCAAiC;AAAxB,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA"}
@@ -1,5 +1,5 @@
1
- import { type Stream } from './Stream';
2
- import { type Stash } from './Stash';
1
+ import { type Stream } from './Stream.js';
2
+ import { type Stash } from './Stash.js';
3
3
  export interface Context {
4
4
  stash: any;
5
5
  state: {
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=types.js.map
@@ -1,2 +1,2 @@
1
- import { type Context, type PushInput } from './lib/types';
1
+ import { type Context, type PushInput } from './lib/types.js';
2
2
  export declare function effect({ key, event, data }: PushInput, context: Context): Promise<void>;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.effect = void 0;
4
- async function effect({ key, event, data }, context) {
1
+ export async function effect({ key, event, data }, context) {
5
2
  context.state.streams.get(key)?.push({ event, data });
6
3
  void context.state.stash.push(key, event, data).then((token) => {
7
4
  if (token instanceof Error)
@@ -10,5 +7,4 @@ async function effect({ key, event, data }, context) {
10
7
  context.state.streams.get(key)?.push({ event: 'token', data: token });
11
8
  });
12
9
  }
13
- exports.effect = effect;
14
10
  //# sourceMappingURL=push.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"push.js","sourceRoot":"","sources":["../source/push.ts"],"names":[],"mappings":";;;AAEO,KAAK,UAAU,MAAM,CAAE,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAa,EAAE,OAAgB;IAC7E,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IAErD,KAAK,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;QAC7D,IAAI,KAAK,YAAY,KAAK;YACxB,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,yBAAyB,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;;YAEpE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;IACzE,CAAC,CAAC,CAAA;AACJ,CAAC;AATD,wBASC"}
1
+ {"version":3,"file":"push.js","sourceRoot":"","sources":["../source/push.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,KAAK,UAAU,MAAM,CAAE,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAa,EAAE,OAAgB;IAC7E,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IAErD,KAAK,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;QAC7D,IAAI,KAAK,YAAY,KAAK;YACxB,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,yBAAyB,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;;YAEpE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;IACzE,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { type Readable } from 'node:stream'
2
2
  import { type Operation } from '@toa.io/types'
3
- import { type Context } from './lib/types'
4
- import { Stream, Stash } from './lib'
3
+ import { type Context } from './lib/types.js'
4
+ import { Stream, Stash } from './lib/index.js'
5
5
 
6
6
  export class Effect implements Operation {
7
7
  private readonly streams = new Map<string, Stream>()
@@ -1,4 +1,5 @@
1
- import { EventEmitter, Readable } from 'node:stream'
1
+ import { EventEmitter } from 'node:events'
2
+ import { Readable } from 'node:stream'
2
3
 
3
4
  export class Stream extends Readable {
4
5
  public events = new EventEmitter()
@@ -1,2 +1,2 @@
1
- export { Stash } from './Stash'
2
- export { Stream } from './Stream'
1
+ export { Stash } from './Stash.js'
2
+ export { Stream } from './Stream.js'
@@ -1,5 +1,5 @@
1
- import { type Stream } from './Stream'
2
- import { type Stash } from './Stash'
1
+ import { type Stream } from './Stream.js'
2
+ import { type Stash } from './Stash.js'
3
3
 
4
4
  export interface Context {
5
5
  stash: any
@@ -1,4 +1,4 @@
1
- import { type Context, type PushInput } from './lib/types'
1
+ import { type Context, type PushInput } from './lib/types.js'
2
2
 
3
3
  export async function effect ({ key, event, data }: PushInput, context: Context): Promise<void> {
4
4
  context.state.streams.get(key)?.push({ event, data })
@@ -2,6 +2,7 @@
2
2
  "extends": "../../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "./operations",
5
+ "rootDir": "./source"
5
6
  },
6
7
  "include": [
7
8
  "source"