@webex/plugin-meetings 3.12.0-next.17 → 3.12.0-next.171
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/.sdd/manifest.json +1312 -0
- package/.sdd/templates/.source.json +30 -0
- package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
- package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
- package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
- package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
- package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
- package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
- package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
- package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
- package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
- package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
- package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
- package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
- package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
- package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
- package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
- package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
- package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
- package/.sdd/templates/component-repo/template-map.json +112 -0
- package/AGENTS.md +135 -0
- package/ai-docs/ARCHITECTURE.md +207 -0
- package/ai-docs/CONTRACTS.md +267 -0
- package/ai-docs/DATA_MODEL.md +64 -0
- package/ai-docs/GETTING_STARTED.md +73 -0
- package/ai-docs/GLOSSARY.md +56 -0
- package/ai-docs/REVIEW_CHECKLIST.md +45 -0
- package/ai-docs/RULES.md +79 -0
- package/ai-docs/SECURITY.md +74 -0
- package/ai-docs/SERVICE_STATE.md +59 -0
- package/ai-docs/SPEC_INDEX.md +85 -0
- package/ai-docs/TEST_INDEX.md +45 -0
- package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
- package/ai-docs/patterns/defensive-error-propagation.md +55 -0
- package/ai-docs/patterns/event-scope-emission.md +46 -0
- package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
- package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
- package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
- package/dist/aiEnableRequest/index.js +15 -2
- package/dist/aiEnableRequest/index.js.map +1 -1
- package/dist/annotation/index.js +2 -2
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +8 -3
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/events.js +29 -14
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +99 -4
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +49 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +37 -10
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +46 -10
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/hashTree/constants.js +4 -1
- package/dist/hashTree/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +1096 -391
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/utils.js +20 -0
- package/dist/hashTree/utils.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/dataChannelAuthToken.js +75 -15
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
- package/dist/interceptors/locusRetry.js +24 -9
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interpretation/index.js +55 -12
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/interpretation.types.js +7 -0
- package/dist/interpretation/interpretation.types.js.map +1 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +4 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +615 -176
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +36 -5
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/types.js +20 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +15 -2
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +8 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +4 -5
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +5 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1684 -835
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +229 -82
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +10 -1
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +5 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +37 -3
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +2 -1
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +12 -5
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +300 -128
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js +6 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +39 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +116 -18
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +10 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +30 -0
- package/dist/member/util.js.map +1 -1
- package/dist/members/index.js +101 -43
- package/dist/members/index.js.map +1 -1
- package/dist/members/util.js +8 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +7 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/multistream/codec/constants.js +63 -0
- package/dist/multistream/codec/constants.js.map +1 -0
- package/dist/multistream/mediaRequestManager.js +62 -15
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +9 -0
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +32 -4
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +121 -83
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +2 -0
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/util.js +45 -0
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/recording-controller/index.js +1 -3
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +8 -1
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/types/common/errors/webex-errors.d.ts +32 -2
- package/dist/types/config.d.ts +2 -2
- package/dist/types/constants.d.ts +13 -1
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/hashTree/constants.d.ts +1 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +201 -22
- package/dist/types/hashTree/utils.d.ts +7 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +106 -8
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +22 -1
- package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
- package/dist/types/media/properties.d.ts +6 -2
- package/dist/types/meeting/in-meeting-actions.d.ts +4 -0
- package/dist/types/meeting/index.d.ts +178 -11
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +1 -0
- package/dist/types/meeting/util.d.ts +9 -0
- package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
- package/dist/types/meetings/index.d.ts +40 -19
- package/dist/types/meetings/meetings.types.d.ts +15 -0
- package/dist/types/meetings/request.d.ts +14 -0
- package/dist/types/member/index.d.ts +1 -0
- package/dist/types/member/types.d.ts +1 -0
- package/dist/types/member/util.d.ts +9 -0
- package/dist/types/members/index.d.ts +15 -2
- package/dist/types/members/util.d.ts +1 -5
- package/dist/types/metrics/constants.d.ts +6 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
- package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
- package/dist/types/reachability/clusterReachability.d.ts +3 -3
- package/dist/types/reachability/index.d.ts +10 -3
- package/dist/types/reachability/reachability.types.d.ts +7 -0
- package/dist/types/reachability/util.d.ts +17 -0
- package/dist/types/reactions/reactions.type.d.ts +3 -0
- package/dist/webinar/index.js +307 -161
- package/dist/webinar/index.js.map +1 -1
- package/package.json +23 -23
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
- package/src/aiEnableRequest/index.ts +16 -0
- package/src/annotation/ai-docs/annotation-spec.md +236 -0
- package/src/annotation/index.ts +6 -4
- package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/events.ts +33 -11
- package/src/breakouts/index.ts +122 -2
- package/src/common/errors/webex-errors.ts +50 -3
- package/src/config.ts +2 -2
- package/src/constants.ts +21 -3
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
- package/src/controls-options-manager/index.ts +62 -10
- package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
- package/src/hashTree/constants.ts +7 -0
- package/src/hashTree/hashTreeParser.ts +861 -193
- package/src/hashTree/utils.ts +19 -0
- package/src/index.ts +6 -0
- package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
- package/src/interceptors/dataChannelAuthToken.ts +88 -12
- package/src/interceptors/locusRetry.ts +26 -5
- package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
- package/src/interpretation/index.ts +65 -10
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
- package/src/locus-info/controlsUtils.ts +3 -1
- package/src/locus-info/index.ts +566 -164
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/types.ts +26 -1
- package/src/media/MediaConnectionAwaiter.ts +21 -4
- package/src/media/ai-docs/media-spec.md +267 -0
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +8 -3
- package/src/meeting/ai-docs/meeting-spec.md +401 -0
- package/src/meeting/in-meeting-actions.ts +8 -0
- package/src/meeting/index.ts +944 -120
- package/src/meeting/locusMediaRequest.ts +106 -6
- package/src/meeting/muteState.ts +10 -1
- package/src/meeting/request.ts +11 -0
- package/src/meeting/util.ts +51 -7
- package/src/meeting/voicea-meeting.ts +1 -1
- package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
- package/src/meeting-info/meeting-info-v2.ts +11 -4
- package/src/meetings/ai-docs/meetings-spec.md +296 -0
- package/src/meetings/index.ts +200 -80
- package/src/meetings/meetings.types.ts +19 -0
- package/src/meetings/request.ts +43 -0
- package/src/meetings/util.ts +117 -4
- package/src/member/ai-docs/member-spec.md +196 -0
- package/src/member/index.ts +10 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +29 -0
- package/src/members/ai-docs/members-spec.md +256 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/ai-docs/metrics-spec.md +185 -0
- package/src/metrics/constants.ts +6 -0
- package/src/multistream/ai-docs/multistream-spec.md +292 -0
- package/src/multistream/codec/constants.ts +58 -0
- package/src/multistream/mediaRequestManager.ts +119 -28
- package/src/multistream/receiveSlot.ts +18 -0
- package/src/multistream/remoteMediaManager.ts +23 -1
- package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
- package/src/reachability/ai-docs/reachability-spec.md +261 -0
- package/src/reachability/clusterReachability.ts +3 -2
- package/src/reachability/index.ts +47 -16
- package/src/reachability/reachability.types.ts +11 -0
- package/src/reachability/util.ts +36 -0
- package/src/reactions/ai-docs/reactions-spec.md +198 -0
- package/src/reactions/reactions.type.ts +3 -0
- package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
- package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
- package/src/recording-controller/index.ts +1 -2
- package/src/roap/ai-docs/roap-spec.md +241 -0
- package/src/roap/turnDiscovery.ts +9 -1
- package/src/webinar/ai-docs/webinar-spec.md +243 -0
- package/src/webinar/index.ts +216 -38
- package/test/unit/spec/aiEnableRequest/index.ts +86 -0
- package/test/unit/spec/annotation/index.ts +3 -3
- package/test/unit/spec/breakouts/breakout.ts +9 -3
- package/test/unit/spec/breakouts/events.ts +120 -2
- package/test/unit/spec/breakouts/index.ts +223 -3
- package/test/unit/spec/common/errors/webex-errors.ts +78 -0
- package/test/unit/spec/controls-options-manager/index.js +139 -32
- package/test/unit/spec/hashTree/hashTreeParser.ts +2451 -184
- package/test/unit/spec/hashTree/utils.ts +37 -0
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +196 -0
- package/test/unit/spec/interceptors/locusRetry.ts +234 -5
- package/test/unit/spec/interpretation/index.ts +119 -4
- package/test/unit/spec/locus-info/controlsUtils.js +172 -57
- package/test/unit/spec/locus-info/index.js +1014 -58
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +55 -0
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +23 -23
- package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
- package/test/unit/spec/meeting/index.js +2834 -110
- package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
- package/test/unit/spec/meeting/muteState.js +81 -0
- package/test/unit/spec/meeting/request.js +12 -0
- package/test/unit/spec/meeting/utils.js +189 -17
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +88 -11
- package/test/unit/spec/meetings/index.js +544 -49
- package/test/unit/spec/meetings/request.js +141 -0
- package/test/unit/spec/meetings/utils.js +402 -51
- package/test/unit/spec/member/index.js +7 -0
- package/test/unit/spec/member/util.js +89 -0
- package/test/unit/spec/members/index.js +216 -0
- package/test/unit/spec/members/request.js +37 -1
- package/test/unit/spec/members/utils.js +63 -0
- package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
- package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
- package/test/unit/spec/reachability/index.ts +128 -46
- package/test/unit/spec/reachability/util.ts +31 -0
- package/test/unit/spec/recording-controller/index.js +9 -8
- package/test/unit/spec/roap/turnDiscovery.ts +20 -0
- package/test/unit/spec/webinar/index.ts +332 -31
|
@@ -4,7 +4,7 @@ import PermissionError from '../common/errors/permission';
|
|
|
4
4
|
import MeetingRequest from '../meeting/request';
|
|
5
5
|
import LoggerProxy from '../common/logs/logger-proxy';
|
|
6
6
|
import {Control, Setting} from './enums';
|
|
7
|
-
import {ControlConfig} from './types';
|
|
7
|
+
import {ControlConfig, ViewTheParticipantListProperties} from './types';
|
|
8
8
|
import Util from './util';
|
|
9
9
|
import {CAN_SET, CAN_UNSET, ENABLED} from './constants';
|
|
10
10
|
|
|
@@ -56,6 +56,10 @@ export default class ControlsOptionsManager {
|
|
|
56
56
|
*/
|
|
57
57
|
private mainLocusUrl: string;
|
|
58
58
|
|
|
59
|
+
private getControls: () => Record<string, any> = () => ({});
|
|
60
|
+
|
|
61
|
+
private isWebinar: () => boolean = () => false;
|
|
62
|
+
|
|
59
63
|
/**
|
|
60
64
|
* @param {MeetingRequest} request
|
|
61
65
|
* @param {Object} options
|
|
@@ -67,6 +71,8 @@ export default class ControlsOptionsManager {
|
|
|
67
71
|
options?: {
|
|
68
72
|
locusUrl: string;
|
|
69
73
|
displayHints?: Array<string>;
|
|
74
|
+
getControls?: () => Record<string, any>;
|
|
75
|
+
isWebinar?: () => boolean;
|
|
70
76
|
}
|
|
71
77
|
) {
|
|
72
78
|
this.initialize(request);
|
|
@@ -89,7 +95,12 @@ export default class ControlsOptionsManager {
|
|
|
89
95
|
* @public
|
|
90
96
|
* @memberof ControlsOptionsManager
|
|
91
97
|
*/
|
|
92
|
-
public set(options?: {
|
|
98
|
+
public set(options?: {
|
|
99
|
+
locusUrl: string;
|
|
100
|
+
displayHints?: Array<string>;
|
|
101
|
+
getControls?: () => Record<string, any>;
|
|
102
|
+
isWebinar?: () => boolean;
|
|
103
|
+
}) {
|
|
93
104
|
this.extract(options);
|
|
94
105
|
}
|
|
95
106
|
|
|
@@ -141,9 +152,20 @@ export default class ControlsOptionsManager {
|
|
|
141
152
|
* @private
|
|
142
153
|
* @memberof ControlsOptionsManager
|
|
143
154
|
*/
|
|
144
|
-
private extract(options?: {
|
|
155
|
+
private extract(options?: {
|
|
156
|
+
locusUrl: string;
|
|
157
|
+
displayHints?: Array<string>;
|
|
158
|
+
getControls?: () => Record<string, any>;
|
|
159
|
+
isWebinar?: () => boolean;
|
|
160
|
+
}) {
|
|
145
161
|
this.setDisplayHints(options?.displayHints);
|
|
146
162
|
this.setLocusUrl(options?.locusUrl);
|
|
163
|
+
if (options?.getControls) {
|
|
164
|
+
this.getControls = options.getControls;
|
|
165
|
+
}
|
|
166
|
+
if (options?.isWebinar) {
|
|
167
|
+
this.isWebinar = options.isWebinar;
|
|
168
|
+
}
|
|
147
169
|
}
|
|
148
170
|
|
|
149
171
|
/**
|
|
@@ -172,8 +194,22 @@ export default class ControlsOptionsManager {
|
|
|
172
194
|
);
|
|
173
195
|
}
|
|
174
196
|
|
|
197
|
+
let {properties} = control;
|
|
198
|
+
|
|
199
|
+
if (control.scope === Control.viewTheParticipantList) {
|
|
200
|
+
const props = properties as ViewTheParticipantListProperties;
|
|
201
|
+
const current = this.getControls()?.viewTheParticipantList;
|
|
202
|
+
properties = {
|
|
203
|
+
enabled: props.enabled ?? current?.enabled ?? false,
|
|
204
|
+
...(this.isWebinar() && {
|
|
205
|
+
panelistEnabled: props.panelistEnabled ?? current?.panelistEnabled ?? false,
|
|
206
|
+
attendeeCount: props.attendeeCount ?? Boolean(current?.attendeeCount) ?? false,
|
|
207
|
+
}),
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
175
211
|
return {
|
|
176
|
-
[control.scope]:
|
|
212
|
+
[control.scope]: properties,
|
|
177
213
|
};
|
|
178
214
|
});
|
|
179
215
|
|
|
@@ -184,10 +220,7 @@ export default class ControlsOptionsManager {
|
|
|
184
220
|
mainLocusUrl: this.mainLocusUrl,
|
|
185
221
|
});
|
|
186
222
|
|
|
187
|
-
return previous.then(() =>
|
|
188
|
-
// @ts-ignore
|
|
189
|
-
this.request.request(requestParams)
|
|
190
|
-
);
|
|
223
|
+
return previous.then(() => this.sendControlsRequest(requestParams));
|
|
191
224
|
}, Promise.resolve());
|
|
192
225
|
}
|
|
193
226
|
|
|
@@ -274,8 +307,27 @@ export default class ControlsOptionsManager {
|
|
|
274
307
|
mainLocusUrl: this.mainLocusUrl,
|
|
275
308
|
});
|
|
276
309
|
|
|
277
|
-
|
|
278
|
-
|
|
310
|
+
return this.sendControlsRequest(requestParams);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Sends a controls request to Locus. When authorizingLocusUrl is present in the body,
|
|
315
|
+
* we use a plain request() because the response contains the main session Locus DTO
|
|
316
|
+
* instead of the breakout we're in, so we don't want to parse it as a delta.
|
|
317
|
+
* Otherwise we use locusDeltaRequest() for normal delta processing.
|
|
318
|
+
*
|
|
319
|
+
* @param {Object} requestParams - The request parameters from getControlsRequestParams.
|
|
320
|
+
* @returns {Promise<any>}
|
|
321
|
+
*/
|
|
322
|
+
private sendControlsRequest(requestParams: {
|
|
323
|
+
uri: string;
|
|
324
|
+
body: Record<string, any>;
|
|
325
|
+
method: string;
|
|
326
|
+
}): Promise<any> {
|
|
327
|
+
return requestParams.body.authorizingLocusUrl
|
|
328
|
+
? // @ts-ignore
|
|
329
|
+
this.request.request(requestParams)
|
|
330
|
+
: this.request.locusDeltaRequest(requestParams);
|
|
279
331
|
}
|
|
280
332
|
|
|
281
333
|
/**
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: module-spec
|
|
3
|
+
generated_from: module-spec@0.2.2
|
|
4
|
+
generator_plugin: repo-annotation@1.0.5+codex.20260818094939
|
|
5
|
+
generated_by: codex
|
|
6
|
+
approved_by: repository user
|
|
7
|
+
updated_at: 2026-09-08T00:00:00Z
|
|
8
|
+
validation_status: pass-with-warnings
|
|
9
|
+
-->
|
|
10
|
+
# HASH TREE — SPEC
|
|
11
|
+
|
|
12
|
+
> Start here → root [`AGENTS.md`](../../../AGENTS.md) · router [`SPEC_INDEX.md`](../../../ai-docs/SPEC_INDEX.md) · system [`ARCHITECTURE.md`](../../../ai-docs/ARCHITECTURE.md). This is the canonical source-local spec for `src/hashTree/`.
|
|
13
|
+
|
|
14
|
+
## Metadata
|
|
15
|
+
|
|
16
|
+
| Field | Value |
|
|
17
|
+
|---|---|
|
|
18
|
+
| Module id | `hashTree` |
|
|
19
|
+
| Source path(s) | `src/hashTree/` |
|
|
20
|
+
| Parent spec | — |
|
|
21
|
+
| Doc kind | Module spec |
|
|
22
|
+
| Coverage score | 93% assessed 2026-08-22; 13/14 mandatory fields present; all critical and Important fields present; one noncritical polish gap remains; pending independent validation of the participant-role repair |
|
|
23
|
+
| Generated from | `module-spec` @ SDLC template library `0.2.2` |
|
|
24
|
+
| generated_by / approved_by / updated_at | codex / repository user / 2026-09-08T00:00:00Z |
|
|
25
|
+
| Revalidated against | `b7b93b443e` (manual diff review of `f9a29f61..b7b93b443e`; not a generator/validator tool run) |
|
|
26
|
+
| Validation status | pass-with-warnings |
|
|
27
|
+
|
|
28
|
+
## Evidence Rules
|
|
29
|
+
|
|
30
|
+
Requirements cite current implementation and mirrored unit-test paths. Current code wins over retained prose when they conflict; commit and PR history are excluded by repository-owner decision. Missing test evidence is stated as a gap rather than inferred.
|
|
31
|
+
|
|
32
|
+
## Source Material Register
|
|
33
|
+
|
|
34
|
+
| Source material | Scope | Decision | Detail location or disposition |
|
|
35
|
+
|---|---|---|---|
|
|
36
|
+
| No routed legacy module spec | overview / API / behavior / tests | none; generated from current hash-tree code and tests |
|
|
37
|
+
| Current source and mirrored tests | implementation / tests | verified | requirements, flows, failures, and test strategy below |
|
|
38
|
+
|
|
39
|
+
## Overview
|
|
40
|
+
|
|
41
|
+
`src/hashTree/` contains 5 direct source/reference file(s) and has 3 mirrored unit-test file(s). This spec separates its public operations, runtime data movement, component ownership, state applicability, and verification boundary.
|
|
42
|
+
|
|
43
|
+
## Purpose / Responsibility
|
|
44
|
+
|
|
45
|
+
Tracks incremental Locus dataset versions, detects gaps, fetches missing datasets, and emits typed update callbacks.
|
|
46
|
+
|
|
47
|
+
## Stack
|
|
48
|
+
|
|
49
|
+
TypeScript/JavaScript in the Node 22.14 Yarn workspace; Webex core/plugin abstractions and Mocha/Sinon/`@webex/test-helper-chai` tests. Build target: `yarn workspace @webex/plugin-meetings build:src`.
|
|
50
|
+
|
|
51
|
+
## Folder / Package Structure
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
src/hashTree/
|
|
55
|
+
├── constants.ts — module constants and wire values
|
|
56
|
+
├── hashTree.ts — hashTree implementation responsibility
|
|
57
|
+
├── hashTreeParser.ts — hashTreeParser implementation responsibility
|
|
58
|
+
├── types.ts — module type declarations
|
|
59
|
+
├── utils.ts — normalization/helper functions
|
|
60
|
+
└── ai-docs/hash-tree-spec.md — canonical module specification
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Key Files (source of truth)
|
|
64
|
+
|
|
65
|
+
| File | Holds |
|
|
66
|
+
|---|---|
|
|
67
|
+
| `src/hashTree/constants.ts` | module constants and wire values |
|
|
68
|
+
| `src/hashTree/hashTree.ts` | hashTree implementation responsibility |
|
|
69
|
+
| `src/hashTree/hashTreeParser.ts` | hashTreeParser implementation responsibility |
|
|
70
|
+
| `src/hashTree/types.ts` | module type declarations |
|
|
71
|
+
| `src/hashTree/utils.ts` | normalization/helper functions |
|
|
72
|
+
| `test/unit/spec/hashTree/hashTree.ts` and 2 sibling test file(s) | mirrored characterization/unit coverage |
|
|
73
|
+
|
|
74
|
+
## Public Surface
|
|
75
|
+
|
|
76
|
+
| Contract ID | Type | Surface | Purpose | Compatibility / deprecation | Schema / detail link | Root index |
|
|
77
|
+
|---|---|---|---|---|---|---|
|
|
78
|
+
| `hashTree.1` | in-memory structure | `HashTree.putItem()`, `putItems()`, `removeItem()`, `removeItems()`, and `updateItems()` | Apply version-aware leaf mutations to the pure hash-tree data structure. | Older/equal item versions do not replace newer data; preserve leaf-bucket semantics. | `src/hashTree/hashTree.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
79
|
+
| `hashTree.2` | in-memory structure | `computeLeafHash()`, `computeTreeHashes()`, `getHashes()`, `getRootHash()`, `getLeafCount()`, `getTotalItemCount()`, `getLeafData()`, and `getItemVersion()` | Compute and inspect dataset hashes and stored item/version information. | Hash ordering and result shapes are synchronization contracts. | `src/hashTree/hashTree.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
80
|
+
| `hashTree.3` | in-memory structure | `HashTree.resize()` and `diffHashes()` | Resize the leaf layout and locate differing hash ranges during synchronization. | Preserve deterministic redistribution and diff-index semantics. | `src/hashTree/hashTree.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
81
|
+
| `hashTree.4` | parser initialization | `HashTreeParser.initializeFromMessage()` and `initializeFromGetLociResponse()` | Seed dataset state from Mercury hash-tree metadata or a get-loci response before applying deltas. | Preserve dataset initialization priority and callback timing. | `src/hashTree/hashTreeParser.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
82
|
+
| `hashTree.5` | parser updates | `handleMetadataUpdate()`, `handleLocusUpdate()`, and `handleMessage()` | Apply message items, emit the resulting callback, and schedule any root-hash reconciliation required for the dataset. | Preserve the implemented ordering: `parseMessage()` mutates item state, `handleMessage()` invokes the callback, and the delayed sync algorithm checks the resulting root hash separately. | `src/hashTree/hashTreeParser.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
83
|
+
| `hashTree.6` | parser synchronization | `syncAllDatasets()`, `resumeFromMessage()`, and `resumeFromApiResponse()` | Fetch/replace missing datasets and resume queued processing from the synchronized view. | Preserve ended/not-found sentinel handling and stopped-parser guards. | `src/hashTree/hashTreeParser.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
84
|
+
| `hashTree.7` | parser lifecycle | `stop()` and `cleanUp()` | Stop future mutation and release queued/parser-owned state. | Work completed after stop must not mutate the stopped parser. | `src/hashTree/hashTreeParser.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
85
|
+
| `hashTree.8` | exported contracts/helpers | `EMPTY_HASH`, `DataSetNames`, `DATA_SET_INIT_PRIORITY`, `LLM_DATASET_NAMES`, `LeafDataItem`, `SyncAllBackoffType`, `DataSet`, `RootHashMessage`, `HashTreeMessage`, `VisibleDataSetInfo`, `LocusInfoUpdateType`, `LocusInfoUpdate`, `LocusInfoUpdateCallback`, `SyncLatencyTracker`, `HashTreeParserCallbacks`, `MeetingEndedError`, `LocusNotFoundError`, `ObjectType`, `ObjectTypeToLocusKeyMap`, `HtMeta`, `HashTreeObject`, `isSelf()`, `isMetadata()`, `deleteNestedObjectsWithHtMeta()`, `sortByInitPriority()`, and `sleep()` | Share the exact dataset protocol vocabulary, sentinel errors, and normalization helpers used by Locus integration. | Preserve dataset names, error identity, ordering, and raw message fields. | `src/hashTree/hashTree.ts`, `src/hashTree/hashTreeParser.ts`, `src/hashTree/types.ts`, `src/hashTree/constants.ts`, `src/hashTree/utils.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
86
|
+
|
|
87
|
+
Compatibility notes:
|
|
88
|
+
- Prefer additive options and payload fields. Preserve method/event names, rejection semantics, and cleanup timing; route public changes through `src/index.ts` or the documented owning object.
|
|
89
|
+
|
|
90
|
+
## Requires (dependencies)
|
|
91
|
+
|
|
92
|
+
Hash-tree wire messages, dataset request function, Locus identifiers, checksum utilities, and consumer callbacks.
|
|
93
|
+
|
|
94
|
+
## Requirements
|
|
95
|
+
|
|
96
|
+
| ID | WHAT | WHY | Source Evidence | Test / Example Evidence | Assumptions / Gaps | Confidence |
|
|
97
|
+
|---|---|---|---|---|---|---|
|
|
98
|
+
| `HASH-TREE-R-001` | `HashTreeParser` parses hash-tree messages, tracks dataset versions, detects gaps, fetches datasets, and emits typed update callbacks; `HashTree` stores leaf items and computes leaf/tree hashes. | Parser synchronization behavior and the hash data structure have different ownership and must not be attributed to the same file. | `src/hashTree/hashTreeParser.ts`, `src/hashTree/hashTree.ts` | `test/unit/spec/hashTree/hashTreeParser.ts`, `test/unit/spec/hashTree/hashTree.ts` | none | PRESENT |
|
|
99
|
+
| `HASH-TREE-R-002` | `HashTreeParser.parseMessage()` updates dataset metadata and applies message items; `handleMessage()` then invokes the object-update callback. `runSyncAlgorithm()` performs the root-hash comparison later after the configured idle/backoff delay and queues synchronization on mismatch. | Callers need the real callback-versus-reconciliation ordering and must not assume the callback waits for the deferred root-hash check. | `src/hashTree/hashTreeParser.ts`, `src/hashTree/hashTree.ts`, `src/hashTree/utils.ts` | `test/unit/spec/hashTree/hashTreeParser.ts`, `test/unit/spec/hashTree/hashTree.ts`, `test/unit/spec/hashTree/utils.ts` | none | PRESENT |
|
|
100
|
+
| `HASH-TREE-R-003` | `performSync()` converts meeting-ended/not-found responses into their sentinel callback paths, catches and logs other synchronization failures, and prevents stopped-parser work from being applied. | Sentinel dataset outcomes, logged sync failure, and stopped work must remain distinct so no failed fetch is misreported as a caller-visible rejection or current state. | `src/hashTree/hashTreeParser.ts` | `test/unit/spec/hashTree/hashTreeParser.ts` | non-sentinel failure recovery after logging needs explicit queue coverage | PRESENT |
|
|
101
|
+
| `HASH-TREE-R-004` | `resetHeartbeatWatchdogs()` clears and re-arms a per-dataset timer at `heartbeatIntervalMs + getWeightedBackoffTime(backoff)`, preferring the dataset-level `heartbeatIntervalMs` over `topLevelHeartbeatIntervalMs`. It skips any dataset without a `hashTree`, without a resolved interval, or that `isVisibleDataSet()` rejects, and skips a dataset in `LLM_DATASET_NAMES` when the injected `callbacks.isLlmExpected()` returns false. On expiry it emits `HASH_TREE_HEARTBEAT_WATCHDOG_EXPIRED`, saves the backoff latency, enqueues a sync for that dataset, and re-arms itself. `handleMessage()` re-arms the watchdogs *after* `callLocusInfoUpdateCallback()` on the state-elements path, and immediately after `handleRootHashHeartBeatMessage()` on the heartbeat-only path. | A watchdog armed for a dataset whose transport is not connected would fire on every interval and enqueue perpetual syncs, so visibility and LLM-expectation gating are part of the contract, not an optimization. Re-arming after the update callback keeps the timer anchored to the point the message was actually applied. | `src/hashTree/hashTreeParser.ts`, `src/hashTree/constants.ts` | `test/unit/spec/hashTree/hashTreeParser.ts` | the `isLlmExpected` callback is declared required on `HashTreeParserCallbacks` but is also guarded for absence at the call site; treat the guard as current behavior | PRESENT |
|
|
102
|
+
|
|
103
|
+
## Design Overview
|
|
104
|
+
|
|
105
|
+
`HashTreeParser` consumes state-element messages, compares dataset versions with `utils.ts`, stores per-dataset hash metadata in `hashTree.ts`, fetches visible or missing datasets through its injected `webexRequest`, and reports normalized changes through callbacks.
|
|
106
|
+
|
|
107
|
+
## Data Flow
|
|
108
|
+
|
|
109
|
+
```mermaid
|
|
110
|
+
flowchart LR
|
|
111
|
+
Mercury[stateElementsMessage] --> Parser[hashTreeParser.ts]
|
|
112
|
+
Parser --> Compare[utils.ts / constants.ts]
|
|
113
|
+
Compare --> Tree[hashTree.ts datasets]
|
|
114
|
+
Parser --> Request[injected webexRequest]
|
|
115
|
+
Request --> Dataset[visible / missing dataset URLs]
|
|
116
|
+
Dataset --> Parser
|
|
117
|
+
Parser --> Callback[typed update / ended / not-found callbacks]
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Sequence Diagram(s)
|
|
121
|
+
|
|
122
|
+
Sequence coverage:
|
|
123
|
+
|
|
124
|
+
| Operation group | Diagram | Failure coverage |
|
|
125
|
+
|---|---|---|
|
|
126
|
+
| UC-1…UC-5 — hash-tree mutation and synchronization operation groups | Hash-tree mutation and synchronization primary sequence | stale/gapped metadata, ended/not-found datasets, logged sync failure, and stopped-parser suppression |
|
|
127
|
+
| UC-1…UC-5 — hash-tree mutation and synchronization alternate/failure paths | Hash-tree mutation and synchronization alternate/failure sequence | out-of-order sequence, hash mismatch, dataset 404, or a stopped parser receiving queued work |
|
|
128
|
+
|
|
129
|
+
### Hash-tree mutation and synchronization primary sequence
|
|
130
|
+
|
|
131
|
+
```mermaid
|
|
132
|
+
sequenceDiagram
|
|
133
|
+
participant M as Mercury
|
|
134
|
+
participant P as HashTreeParser
|
|
135
|
+
participant H as HashTree dataset state
|
|
136
|
+
participant W as webexRequest
|
|
137
|
+
participant O as Injected owner callback
|
|
138
|
+
M-->>P: state-elements message
|
|
139
|
+
P->>H: update dataset metadata and apply message leaves
|
|
140
|
+
P-->>O: invoke injected owner callback with applied objects
|
|
141
|
+
P->>P: after idle/backoff, compare computed and received root hashes
|
|
142
|
+
opt deferred root mismatch
|
|
143
|
+
P->>W: fetch missing/visible dataset
|
|
144
|
+
W-->>P: dataset or 404
|
|
145
|
+
P->>H: replace synchronized dataset
|
|
146
|
+
end
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Hash-tree mutation and synchronization alternate/failure sequence
|
|
150
|
+
|
|
151
|
+
```mermaid
|
|
152
|
+
sequenceDiagram
|
|
153
|
+
participant Q as Queued state-elements message
|
|
154
|
+
participant P as HashTreeParser
|
|
155
|
+
participant W as Injected webexRequest
|
|
156
|
+
participant C as Owning callback
|
|
157
|
+
Q->>P: next sequence and hash-tree elements
|
|
158
|
+
P->>P: apply message items and schedule root-hash check
|
|
159
|
+
P-->>C: object update callback
|
|
160
|
+
alt later root check or visible-dataset change requires synchronization
|
|
161
|
+
P->>W: fetch dataset URL
|
|
162
|
+
W-->>P: dataset, sentinel error, or non-sentinel rejection
|
|
163
|
+
alt dataset succeeds
|
|
164
|
+
P-->>C: synchronized object update callback
|
|
165
|
+
else ended or not-found sentinel
|
|
166
|
+
P-->>C: ended or not-found callback
|
|
167
|
+
else non-sentinel rejection
|
|
168
|
+
P->>P: log failure; invoke no owner callback
|
|
169
|
+
end
|
|
170
|
+
else parser has been stopped
|
|
171
|
+
P->>P: discard queued work without applying it
|
|
172
|
+
end
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## Class / Component Relationships
|
|
176
|
+
|
|
177
|
+
```mermaid
|
|
178
|
+
classDiagram
|
|
179
|
+
class Mercury
|
|
180
|
+
class OwnerCallback
|
|
181
|
+
class Parser
|
|
182
|
+
class Compare
|
|
183
|
+
class Tree
|
|
184
|
+
class Request
|
|
185
|
+
class Dataset
|
|
186
|
+
Mercury --> Parser
|
|
187
|
+
Parser --> Compare
|
|
188
|
+
Compare --> Tree
|
|
189
|
+
Parser --> Request
|
|
190
|
+
Request --> Dataset
|
|
191
|
+
Dataset --> Parser
|
|
192
|
+
OwnerCallback --> Parser : injected at construction
|
|
193
|
+
Parser --> OwnerCallback : invokes updates
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
The arrows identify ownership and delegation inside `src/hashTree/`; files that only declare types or constants are not presented as transports.
|
|
197
|
+
|
|
198
|
+
## Use Cases
|
|
199
|
+
|
|
200
|
+
- **UC-1:** Insert, update, remove, resize, and diff versioned items in the pure `HashTree` without invoking remote synchronization. Evidence: `src/hashTree/hashTree.ts`.
|
|
201
|
+
- **UC-2:** Initialize parser datasets from a Mercury message or get-loci response in declared dataset priority. Evidence: `src/hashTree/hashTreeParser.ts`, `src/hashTree/constants.ts`.
|
|
202
|
+
- **UC-3:** Apply message items in `parseMessage()` and invoke the normalized Locus callback from `handleMessage()` before the delayed root-hash reconciliation runs. Evidence: `src/hashTree/hashTreeParser.ts`.
|
|
203
|
+
- **UC-4:** Queue and synchronize missing datasets when a gap/hash mismatch is detected, mapping ended/not-found sentinels to their callback paths. Evidence: `src/hashTree/hashTreeParser.ts`.
|
|
204
|
+
- **UC-5:** Stop and clean up a parser so queued or later-completing work cannot mutate its state. Evidence: `src/hashTree/hashTreeParser.ts`.
|
|
205
|
+
|
|
206
|
+
## State Model
|
|
207
|
+
|
|
208
|
+
Per-dataset sequence/hash metadata, pending synchronization work, and last applied objects are held in memory.
|
|
209
|
+
|
|
210
|
+
## Business Rules & Invariants
|
|
211
|
+
|
|
212
|
+
- `HashTreeParser` applies only newer item versions and emits the applied-object callback for the received message. Root-hash mismatch detection is a later idle/backoff task that can enqueue synchronization; it is not a precondition for the first callback. Enforced by `src/hashTree/hashTreeParser.ts` and `src/hashTree/hashTree.ts`.
|
|
213
|
+
|
|
214
|
+
## Concurrency & Reactive Flow
|
|
215
|
+
|
|
216
|
+
- State-elements work applies through `parseMessage()` and callbacks synchronously within `handleMessage()`, while root-hash reconciliation is deferred by dataset timers. `stop()` prevents queued or subsequently completed dataset work from mutating the stopped parser.
|
|
217
|
+
- Heartbeat watchdog timers are per dataset and are re-armed after the owning message has been applied, so watchdog delay is measured from application rather than from receipt. `stopAllTimers()` clears them alongside the sync timers.
|
|
218
|
+
|
|
219
|
+
## State Machine
|
|
220
|
+
|
|
221
|
+
```mermaid
|
|
222
|
+
stateDiagram-v2
|
|
223
|
+
[*] --> active: construct
|
|
224
|
+
active --> active: apply or synchronize dataset update
|
|
225
|
+
active --> stopped: stop()
|
|
226
|
+
stopped --> [*]
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
The parser stores only `active` or `stopped` in `src/hashTree/hashTreeParser.ts`.
|
|
230
|
+
|
|
231
|
+
## Protocol / Wire Format
|
|
232
|
+
|
|
233
|
+
- External payloads are parsed/serialized by files under `src/hashTree/` and existing Webex/media dependencies. Preserve current field names, enum/raw values, sequence identifiers, and compatibility behavior; do not treat the normalized client model as the wire schema.
|
|
234
|
+
|
|
235
|
+
## Error Handling & Failure Modes
|
|
236
|
+
|
|
237
|
+
| Condition | Signal | Caller recovery |
|
|
238
|
+
|---|---|---|
|
|
239
|
+
| Sequence or hash comparison requires a missing/visible dataset | `hashTreeParser.ts` fetches the dataset through the injected request function before replacing the synchronized dataset. | Let the synchronization request settle; do not apply the incomplete delta directly. |
|
|
240
|
+
| Dataset fetch returns 404 or the dataset has ended | The parser invokes its established not-found/ended callback path. | The owner decides whether to stop or establish a new dataset. |
|
|
241
|
+
| Dataset fetch fails outside the ended/not-found sentinels, or queued work reaches a stopped parser | `performSync()` catches/logs the fetch failure; stopped-parser work is not applied. | Observe parser diagnostics and establish a new synchronization trigger if the owner still needs current state. |
|
|
242
|
+
| No heartbeat arrives for a visible dataset within its interval plus backoff | The watchdog fires, emits `HASH_TREE_HEARTBEAT_WATCHDOG_EXPIRED`, enqueues a sync for that dataset, and re-arms. For an LLM dataset while `isLlmExpected()` is false, no watchdog is armed at all and the skip is logged instead. | Do not treat a missing watchdog metric as proof of a healthy transport; check whether the dataset is visible and whether LLM is expected. |
|
|
243
|
+
|
|
244
|
+
## Pitfalls
|
|
245
|
+
|
|
246
|
+
- Sequence comparison includes rollover/ordering edge cases. Numeric or lexical comparison in place of the shared comparator corrupts reconciliation.
|
|
247
|
+
- Public behavior may be reachable through a parent `Meeting`/`Meetings` object even when the source helper is not exported directly.
|
|
248
|
+
|
|
249
|
+
## Key Design Trade-off
|
|
250
|
+
|
|
251
|
+
- Incremental datasets reduce full-state traffic but require version, checksum, and resynchronization bookkeeping.
|
|
252
|
+
|
|
253
|
+
## Test-Case Strategy (module)
|
|
254
|
+
|
|
255
|
+
Use the current mirrored suites: `test/unit/spec/hashTree/hashTree.ts`, `test/unit/spec/hashTree/hashTreeParser.ts`, `test/unit/spec/hashTree/utils.ts`. Characterize the hashTree-specific use cases above and each listed failure condition; add cleanup or transition cases only for resources and state this module actually owns.
|
|
256
|
+
|
|
257
|
+
| Behavior / Requirement | Existing test evidence | Gap |
|
|
258
|
+
|---|---|---|
|
|
259
|
+
| `HASH-TREE-R-001` | `test/unit/spec/hashTree/hashTreeParser.ts` | cover versioned put/remove/resize/diff separately from parser synchronization |
|
|
260
|
+
| `HASH-TREE-R-002` | `test/unit/spec/hashTree/hashTreeParser.ts` | non-sentinel synchronization failures are logged internally; verify queue behavior after that failure |
|
|
261
|
+
| `HASH-TREE-R-003` | `test/unit/spec/hashTree/hashTreeParser.ts` | separate sentinel callback handling, logged non-sentinel sync failure, and stopped-parser suppression cases |
|
|
262
|
+
| `HASH-TREE-R-004` | `test/unit/spec/hashTree/hashTreeParser.ts` | assert the dataset-level interval preference, the invisible-dataset and LLM-not-expected skips, expiry re-arming, and re-arm ordering relative to the update callback |
|
|
263
|
+
|
|
264
|
+
## Traceability
|
|
265
|
+
|
|
266
|
+
- Repo architecture: [`ARCHITECTURE.md`](../../../ai-docs/ARCHITECTURE.md) · Registry: [`SPEC_INDEX.md`](../../../ai-docs/SPEC_INDEX.md)
|
|
267
|
+
- Coverage state and contracts baseline: `../../../.sdd/manifest.json`
|
|
@@ -17,3 +17,10 @@ export const DataSetNames = {
|
|
|
17
17
|
// participant object for webinar attendees. If SELF were initialized first, locus.info
|
|
18
18
|
// would not yet be populated and the attendee participant would be skipped.
|
|
19
19
|
export const DATA_SET_INIT_PRIORITY: string[] = [DataSetNames.MAIN, DataSetNames.SELF];
|
|
20
|
+
|
|
21
|
+
// Data sets for which we normally receive events over LLM connection
|
|
22
|
+
export const LLM_DATASET_NAMES = [
|
|
23
|
+
DataSetNames.MAIN,
|
|
24
|
+
DataSetNames.ATD_ACTIVE,
|
|
25
|
+
DataSetNames.ATD_UNMUTED,
|
|
26
|
+
];
|