@interop/wallet-core 0.87.0 → 0.88.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.
@@ -11,15 +11,25 @@ export declare const MEND_REPORT_SHAPE_ERROR = "MendReportShapeError";
11
11
  * The report collector a wallet creates ahead of session assembly. A
12
12
  * routing entry reports into it from its own call site before a `Session`
13
13
  * exists, {@link runMenderBlock} reports the chain's entries into it
14
- * through `onOutcome`, and the wallet hands `settled` to the session as its
15
- * mend report.
14
+ * through its `mends` option, and the wallet hands `settled` to the session
15
+ * as its mend report. When the accumulator was created with a logger, each
16
+ * `report` call also emits that entry's `'ceremony mender'` event.
16
17
  */
17
18
  export interface MendReportAccumulator<Ceremony extends string = string> {
18
19
  /**
19
- * Records one entry. Bound to the accumulator, so it can be passed
20
- * directly as {@link runMenderBlock}'s `onOutcome`.
20
+ * Records one entry. When the accumulator has a logger, it also emits one
21
+ * `'ceremony mender'` event (`menderEvent`) from the same entry, carrying
22
+ * `err` when one is given. The event never throws. Bound to the
23
+ * accumulator, so it can be passed around as a function.
24
+ *
25
+ * @param entry {MendReportEntry} the entry to record
26
+ * @param [options] {object}
27
+ * @param [options.err] {unknown} the error behind the entry, carried on
28
+ * the event only. The recorded entry keeps `errorName` alone
21
29
  */
22
- report(entry: MendReportEntry<Ceremony>): void;
30
+ report(entry: MendReportEntry<Ceremony>, options?: {
31
+ err?: unknown;
32
+ }): void;
23
33
  /**
24
34
  * Every entry recorded so far, in report order.
25
35
  */
@@ -39,9 +49,18 @@ export interface MendReportAccumulator<Ceremony extends string = string> {
39
49
  * Creates a report accumulator. Generic over the wallet's ceremony-id
40
50
  * union, which defaults to `string`.
41
51
  *
52
+ * With a `logger`, every `report` call records the entry and emits its
53
+ * `'ceremony mender'` event through that logger, so the diagnostics stream
54
+ * and the report cannot diverge. Without one, `report` only records.
55
+ *
56
+ * @param [options] {object}
57
+ * @param [options.logger] {Logger} the wallet's own sink for the mender
58
+ * events
42
59
  * @returns {MendReportAccumulator}
43
60
  */
44
- export declare function mendReportAccumulator<Ceremony extends string = string>(): MendReportAccumulator<Ceremony>;
61
+ export declare function mendReportAccumulator<Ceremony extends string = string>({ logger }?: {
62
+ logger?: Logger;
63
+ }): MendReportAccumulator<Ceremony>;
45
64
  /**
46
65
  * Runs one registration block: the registrations listed under `trigger`
47
66
  * whose every reported invariant declares an authority the session holds
@@ -62,10 +81,12 @@ export declare function mendReportAccumulator<Ceremony extends string = string>(
62
81
  * carrying {@link MEND_REPORT_SHAPE_ERROR} rather than throwing, so a
63
82
  * mismatched adapter cannot tear a login.
64
83
  *
65
- * Beside each `onOutcome` call the block emits one `'ceremony mender'`
66
- * event through `logger` (`menderEvent`), from the same entry, so the
67
- * diagnostics stream and the report cannot diverge. A `noop` entry emits at
68
- * debug.
84
+ * Each entry emits exactly one `'ceremony mender'` event (`menderEvent`),
85
+ * so the diagnostics stream and the report cannot diverge. Given `mends`,
86
+ * the block reports each entry into that accumulator, and the accumulator's
87
+ * own logger emits the event; the block does not emit it again. Without
88
+ * `mends`, the block emits the event through `logger` itself. A `noop`
89
+ * entry emits at debug. `onOutcome` runs after the report, once per entry.
69
90
  *
70
91
  * `trigger` is one of the two chain values, so a `ceremony-tail` entry is
71
92
  * out of reach here. Such an entry has no registration at all: its body
@@ -95,22 +116,26 @@ export declare function mendReportAccumulator<Ceremony extends string = string>(
95
116
  * `when` predicate reads
96
117
  * @param options.deps {Deps} passed to the seed and to every `converge`
97
118
  * @param options.logger {Logger} the wallet's own sink, so its warn
98
- * copy keeps the wallet's namespace
119
+ * copy keeps the wallet's namespace. The block emits the mender events
120
+ * through it when no `mends` is given
99
121
  * @param [options.registrations] {ReadonlyArray<Registration>} the
100
122
  * registrations to run, in place of the ones the registry lists under
101
123
  * `trigger`. Each is admitted by the same authority and route tests
102
124
  * @param [options.seed] {Registration} the step whose failure aborts the
103
125
  * block. Admitted by the same authority and route tests as any other
104
126
  * registration; one it does not pass is skipped rather than failed
127
+ * @param [options.mends] {MendReportAccumulator} the accumulator the
128
+ * block reports each entry into. It emits the entry's mender event, so
129
+ * the block emits none of its own. An accumulator created without a
130
+ * logger then emits nothing
105
131
  * @param [options.onOutcome] {(entry: MendReportEntry) => void} called
106
- * once per reported entry, in order. The single place a chain entry's
107
- * outcome is reported
132
+ * once per reported entry, in order, after the entry is reported
108
133
  * @returns {Promise<MendReport>} the block's entries in order. It never
109
134
  * rejects; a seed failure resolves with the seed's `failed` entries alone
110
135
  * @throws {TypeError} when the seed or an override registration is listed
111
136
  * under a trigger other than `trigger`, a programming error
112
137
  */
113
- export declare function runMenderBlock<Deps, Ceremony extends string = string, Site extends RegistrationSite = Registration<Deps, Ceremony>>({ registry, trigger, held, route, deps, logger, registrations, seed, onOutcome }: {
138
+ export declare function runMenderBlock<Deps, Ceremony extends string = string, Site extends RegistrationSite = Registration<Deps, Ceremony>>({ registry, trigger, held, route, deps, logger, registrations, seed, mends, onOutcome }: {
114
139
  registry: MenderRegistry<Site, Deps, Ceremony>;
115
140
  trigger: ChainTrigger;
116
141
  held: ReadonlyArray<Authority>;
@@ -119,6 +144,7 @@ export declare function runMenderBlock<Deps, Ceremony extends string = string, S
119
144
  logger: Logger;
120
145
  registrations?: ReadonlyArray<Registration<Deps, Ceremony>>;
121
146
  seed?: Registration<Deps, Ceremony>;
147
+ mends?: MendReportAccumulator<Ceremony>;
122
148
  onOutcome?: (entry: MendReportEntry<Ceremony>) => void;
123
149
  }): Promise<MendReport<Ceremony>>;
124
150
  //# sourceMappingURL=runner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/menders/runner.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,eAAe,EACf,YAAY,EACZ,gBAAgB,EACjB,M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,qBAAqB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAAE,EACtE,MAAM,EACP,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAyB5D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAAsB,cAAc,CAClC,IAAI,EACJ,QAAQ,SAAS,MAAM,GAAG,MAAM,EAChC,IAAI,SAAS,gBAAgB,GAAG,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,EAC5D,EACA,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,EACN,aAAa,EACb,IAAI,EACJ,KAAK,EACL,SAAS,EACV,EAAE;IACD,QAAQ,EAAE,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;IAC9C,OAAO,EAAE,YAAY,CAAA;IACrB,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,CAAA;IAC9B,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAA;IAC3D,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;IACnC,KAAK,CAAC,EAAE,qBAAqB,CAAC,QAAQ,CAAC,CAAA;IACvC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAA;CACvD,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CA8ChC"}
@@ -10,7 +10,9 @@
10
10
  * block continues. Beside it sits `mendReportAccumulator`, the report
11
11
  * collector a wallet creates before a `Session` exists, so the entries a
12
12
  * routing site reports and the entries this runner reports assemble into
13
- * one `MendReport`.
13
+ * one `MendReport`. An accumulator given a logger emits each entry's
14
+ * `'ceremony mender'` event from the same `report` call that records it, so
15
+ * a caller cannot report an entry without emitting it.
14
16
  */
15
17
  import { menderEvent } from '../ceremonyEvents.js';
16
18
  import { errorNameOf } from '../errorName.js';
@@ -23,9 +25,16 @@ export const MEND_REPORT_SHAPE_ERROR = 'MendReportShapeError';
23
25
  * Creates a report accumulator. Generic over the wallet's ceremony-id
24
26
  * union, which defaults to `string`.
25
27
  *
28
+ * With a `logger`, every `report` call records the entry and emits its
29
+ * `'ceremony mender'` event through that logger, so the diagnostics stream
30
+ * and the report cannot diverge. Without one, `report` only records.
31
+ *
32
+ * @param [options] {object}
33
+ * @param [options.logger] {Logger} the wallet's own sink for the mender
34
+ * events
26
35
  * @returns {MendReportAccumulator}
27
36
  */
28
- export function mendReportAccumulator() {
37
+ export function mendReportAccumulator({ logger } = {}) {
29
38
  const recorded = [];
30
39
  let resolveSettled = () => undefined;
31
40
  const settled = new Promise(resolve => {
@@ -33,8 +42,12 @@ export function mendReportAccumulator() {
33
42
  });
34
43
  let assembled;
35
44
  return {
36
- report(entry) {
45
+ report(entry, { err } = {}) {
37
46
  recorded.push(entry);
47
+ if (logger) {
48
+ // menderEvent never throws and drops an undefined `err`.
49
+ menderEvent({ log: logger, entry, err });
50
+ }
38
51
  },
39
52
  entries: () => [...recorded],
40
53
  settle() {
@@ -67,10 +80,12 @@ export function mendReportAccumulator() {
67
80
  * carrying {@link MEND_REPORT_SHAPE_ERROR} rather than throwing, so a
68
81
  * mismatched adapter cannot tear a login.
69
82
  *
70
- * Beside each `onOutcome` call the block emits one `'ceremony mender'`
71
- * event through `logger` (`menderEvent`), from the same entry, so the
72
- * diagnostics stream and the report cannot diverge. A `noop` entry emits at
73
- * debug.
83
+ * Each entry emits exactly one `'ceremony mender'` event (`menderEvent`),
84
+ * so the diagnostics stream and the report cannot diverge. Given `mends`,
85
+ * the block reports each entry into that accumulator, and the accumulator's
86
+ * own logger emits the event; the block does not emit it again. Without
87
+ * `mends`, the block emits the event through `logger` itself. A `noop`
88
+ * entry emits at debug. `onOutcome` runs after the report, once per entry.
74
89
  *
75
90
  * `trigger` is one of the two chain values, so a `ceremony-tail` entry is
76
91
  * out of reach here. Such an entry has no registration at all: its body
@@ -100,31 +115,41 @@ export function mendReportAccumulator() {
100
115
  * `when` predicate reads
101
116
  * @param options.deps {Deps} passed to the seed and to every `converge`
102
117
  * @param options.logger {Logger} the wallet's own sink, so its warn
103
- * copy keeps the wallet's namespace
118
+ * copy keeps the wallet's namespace. The block emits the mender events
119
+ * through it when no `mends` is given
104
120
  * @param [options.registrations] {ReadonlyArray<Registration>} the
105
121
  * registrations to run, in place of the ones the registry lists under
106
122
  * `trigger`. Each is admitted by the same authority and route tests
107
123
  * @param [options.seed] {Registration} the step whose failure aborts the
108
124
  * block. Admitted by the same authority and route tests as any other
109
125
  * registration; one it does not pass is skipped rather than failed
126
+ * @param [options.mends] {MendReportAccumulator} the accumulator the
127
+ * block reports each entry into. It emits the entry's mender event, so
128
+ * the block emits none of its own. An accumulator created without a
129
+ * logger then emits nothing
110
130
  * @param [options.onOutcome] {(entry: MendReportEntry) => void} called
111
- * once per reported entry, in order. The single place a chain entry's
112
- * outcome is reported
131
+ * once per reported entry, in order, after the entry is reported
113
132
  * @returns {Promise<MendReport>} the block's entries in order. It never
114
133
  * rejects; a seed failure resolves with the seed's `failed` entries alone
115
134
  * @throws {TypeError} when the seed or an override registration is listed
116
135
  * under a trigger other than `trigger`, a programming error
117
136
  */
118
- export async function runMenderBlock({ registry, trigger, held, route, deps, logger, registrations, seed, onOutcome }) {
137
+ export async function runMenderBlock({ registry, trigger, held, route, deps, logger, registrations, seed, mends, onOutcome }) {
119
138
  const report = [];
120
139
  const collect = (entries) => {
121
140
  for (const entry of entries) {
122
141
  report.push(entry);
142
+ // The diagnostics twin of the report entry, emitted once: by the
143
+ // accumulator when one is given, by the block otherwise. The entry
144
+ // carries `errorName` alone, so the event carries no `err`; the
145
+ // registration's declared warn keeps the error.
146
+ if (mends) {
147
+ mends.report(entry);
148
+ }
149
+ else {
150
+ menderEvent({ log: logger, entry });
151
+ }
123
152
  onOutcome?.(entry);
124
- // The diagnostics twin of the report entry. The entry carries
125
- // `errorName` alone, so the event carries no `err`; the registration's
126
- // declared warn keeps the error.
127
- menderEvent({ log: logger, entry });
128
153
  }
129
154
  };
130
155
  for (const supplied of [...(seed ? [seed] : []), ...(registrations ?? [])]) {
@@ -1 +1 @@
1
- {"version":3,"file":"runner.js","sourceRoot":"","sources":["../../src/menders/runner.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAY7C;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,sBAAsB,CAAA;AA+B7D;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB;IAGnC,MAAM,QAAQ,GAAqC,EAAE,CAAA;IACrD,IAAI,cAAc,GAA2C,GAAG,EAAE,CAAC,SAAS,CAAA;IAC5E,MAAM,OAAO,GAAG,IAAI,OAAO,CAAuB,OAAO,CAAC,EAAE;QAC1D,cAAc,GAAG,OAAO,CAAA;IAC1B,CAAC,CAAC,CAAA;IACF,IAAI,SAA2C,CAAA;IAC/C,OAAO;QACL,MAAM,CAAC,KAAK;YACV,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACtB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC;QAC5B,MAAM;YACJ,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,SAAS,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAA;gBACzB,cAAc,CAAC,SAAS,CAAC,CAAA;YAC3B,CAAC;YACD,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,OAAO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IACC,OAAO,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;QACnC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,UAAU,CAAA;QAChD,OAAO;YACL,SAAS,EAAE,EAAE;YACb,OAAO,EAAE,QAAiB;YAC1B,SAAS;YACT,GAAG,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC/D,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@interop/wallet-core",
3
3
  "description": "Shared wallet-domain logic (WAS sync engine core and wallet Space layout contracts) for Interop wallet apps.",
4
- "version": "0.87.0",
4
+ "version": "0.88.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "pnpm run clear && tsc",