@awarevue/agent-sdk 1.0.88 → 1.0.89

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/dist/agent-app.js CHANGED
@@ -158,21 +158,24 @@ class AgentApp {
158
158
  }).pipe((0, rxjs_1.retry)({ delay: 3000 }))
159
159
  : rxjs_1.EMPTY));
160
160
  const startStop$ = this.options.transport.messages$.pipe((0, rxjs_1.filter)((message) => message.kind === 'start' || message.kind === 'stop'), (0, rxjs_1.switchMap)((message) => message.kind === 'start'
161
- ? (0, rxjs_1.merge)(this.agent
161
+ ? this.agent
162
162
  .getDevicesAndRelations$({
163
163
  provider: message.provider,
164
164
  config: message.config,
165
165
  })
166
- .pipe((0, rxjs_1.retry)({ delay: 3000 }), (0, rxjs_1.map)((deviceCatalog) => ({
166
+ .pipe((0, rxjs_1.retry)({ delay: 3000 }), (0, rxjs_1.tap)(() => {
167
+ // reply to server that we are starting
168
+ this.options.transport.send(this.addEnvelope({
169
+ kind: 'start-rs',
170
+ requestId: message.id,
171
+ }));
172
+ }), (0, rxjs_1.map)((deviceCatalog) => ({
167
173
  provider: message.provider,
168
174
  config: message.config,
169
175
  lastEventForeignRef: message.lastEventForeignRef,
170
176
  lastEventTimestamp: message.lastEventTimestamp,
171
177
  deviceCatalog,
172
- })), (0, rxjs_1.mergeMap)((context) => this.runProvider$(context))), (0, rxjs_1.of)({
173
- kind: 'start-rs',
174
- requestId: message.id,
175
- }).pipe((0, rxjs_1.tap)((reply) => this.options.transport.send(this.addEnvelope(reply)))))
178
+ })), (0, rxjs_1.mergeMap)((context) => this.runProvider$(context)))
176
179
  : (0, rxjs_1.of)(message).pipe((0, rxjs_1.tap)(() => this.options.transport.send(this.addEnvelope({
177
180
  kind: 'stop-rs',
178
181
  requestId: message.id,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/agent-sdk",
3
- "version": "1.0.88",
3
+ "version": "1.0.89",
4
4
  "description": "SDK for building Agent implementations that speak the Aware protocol.",
5
5
  "author": "Yaser Awajan",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "lint:fix": "yarn lint --fix"
28
28
  },
29
29
  "dependencies": {
30
- "@awarevue/api-types": "^1.0.88",
30
+ "@awarevue/api-types": "^1.0.89",
31
31
  "rxjs": "^7.8.2",
32
32
  "ws": "^8",
33
33
  "zod": "3.24.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/agent-sdk",
3
- "version": "1.0.88",
3
+ "version": "1.0.89",
4
4
  "description": "SDK for building Agent implementations that speak the Aware protocol.",
5
5
  "author": "Yaser Awajan",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "lint:fix": "yarn lint --fix"
28
28
  },
29
29
  "dependencies": {
30
- "@awarevue/api-types": "^1.0.88",
30
+ "@awarevue/api-types": "^1.0.89",
31
31
  "rxjs": "^7.8.2",
32
32
  "ws": "^8",
33
33
  "zod": "3.24.2"