@dofe/infra-clients 0.1.73 → 0.1.75
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/internal/agentx/agentx-client.service.js.map +1 -1
- package/dist/internal/openclaw/openclaw.client.d.ts +36 -0
- package/dist/internal/openclaw/openclaw.client.d.ts.map +1 -1
- package/dist/internal/openclaw/openclaw.client.js +78 -48
- package/dist/internal/openclaw/openclaw.client.js.map +1 -1
- package/dist/internal/sms/sms-zxjc.client.js +1 -1
- package/dist/internal/sms/sms-zxjc.client.js.map +1 -1
- package/dist/internal/sse/sse.client.d.ts +3 -1
- package/dist/internal/sse/sse.client.d.ts.map +1 -1
- package/dist/internal/sse/sse.client.js +29 -13
- package/dist/internal/sse/sse.client.js.map +1 -1
- package/dist/internal/third-party-sse/third-party-sse.client.d.ts +3 -1
- package/dist/internal/third-party-sse/third-party-sse.client.d.ts.map +1 -1
- package/dist/internal/third-party-sse/third-party-sse.client.js +14 -3
- package/dist/internal/third-party-sse/third-party-sse.client.js.map +1 -1
- package/package.json +6 -6
|
@@ -8,18 +8,25 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.ThirdPartySseClient = void 0;
|
|
13
16
|
const common_1 = require("@nestjs/common");
|
|
14
17
|
const axios_1 = require("@nestjs/axios");
|
|
18
|
+
const nest_winston_1 = require("nest-winston");
|
|
19
|
+
const winston_1 = require("winston");
|
|
15
20
|
const events_1 = require("events");
|
|
16
21
|
let ThirdPartySseClient = class ThirdPartySseClient extends events_1.EventEmitter {
|
|
17
22
|
httpService;
|
|
23
|
+
logger;
|
|
18
24
|
baseUrl;
|
|
19
25
|
eventSource = null;
|
|
20
|
-
constructor(httpService) {
|
|
26
|
+
constructor(httpService, logger) {
|
|
21
27
|
super();
|
|
22
28
|
this.httpService = httpService;
|
|
29
|
+
this.logger = logger;
|
|
23
30
|
// video-task-processor has been removed, baseUrl is no longer needed
|
|
24
31
|
this.baseUrl = '';
|
|
25
32
|
}
|
|
@@ -41,7 +48,9 @@ let ThirdPartySseClient = class ThirdPartySseClient extends events_1.EventEmitte
|
|
|
41
48
|
this.emit('data', data); // Emit data for other parts of the application
|
|
42
49
|
};
|
|
43
50
|
this.eventSource.onerror = (err) => {
|
|
44
|
-
|
|
51
|
+
this.logger.error('Error connecting to third-party SSE', {
|
|
52
|
+
error: err instanceof Error ? err.message : String(err),
|
|
53
|
+
});
|
|
45
54
|
if (this.eventSource) {
|
|
46
55
|
this.eventSource.close();
|
|
47
56
|
this.eventSource = null;
|
|
@@ -58,6 +67,8 @@ let ThirdPartySseClient = class ThirdPartySseClient extends events_1.EventEmitte
|
|
|
58
67
|
exports.ThirdPartySseClient = ThirdPartySseClient;
|
|
59
68
|
exports.ThirdPartySseClient = ThirdPartySseClient = __decorate([
|
|
60
69
|
(0, common_1.Injectable)(),
|
|
61
|
-
|
|
70
|
+
__param(1, (0, common_1.Inject)(nest_winston_1.WINSTON_MODULE_PROVIDER)),
|
|
71
|
+
__metadata("design:paramtypes", [axios_1.HttpService,
|
|
72
|
+
winston_1.Logger])
|
|
62
73
|
], ThirdPartySseClient);
|
|
63
74
|
//# sourceMappingURL=third-party-sse.client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"third-party-sse.client.js","sourceRoot":"","sources":["../../../../../packages/clients/src/internal/third-party-sse/third-party-sse.client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"third-party-sse.client.js","sourceRoot":"","sources":["../../../../../packages/clients/src/internal/third-party-sse/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C,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;aACxD,CAAC,CAAC;YACH,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;gBACrB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;gBACzB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YAC1B,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;IAED,UAAU;QACR,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACrB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QAC1B,CAAC;IACH,CAAC;CACF,CAAA;AAlDY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAOR,WAAA,IAAA,eAAM,EAAC,sCAAuB,CAAC,CAAA;qCADF,mBAAW;QACiB,gBAAM;GANvD,mBAAmB,CAkD/B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dofe/infra-clients",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.75",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -460,13 +460,13 @@
|
|
|
460
460
|
"winston": "^3.13.0",
|
|
461
461
|
"ws": "^8.18.3",
|
|
462
462
|
"zod": "^4.3.6",
|
|
463
|
-
"@dofe/infra-contracts": "^0.1.
|
|
464
|
-
"@dofe/infra-docker": "^0.1.
|
|
463
|
+
"@dofe/infra-contracts": "^0.1.75",
|
|
464
|
+
"@dofe/infra-docker": "^0.1.75"
|
|
465
465
|
},
|
|
466
466
|
"dependencies": {
|
|
467
|
-
"@dofe/infra-common": "^0.1.
|
|
468
|
-
"@dofe/infra-redis": "^0.1.
|
|
469
|
-
"@dofe/infra-utils": "^0.1.
|
|
467
|
+
"@dofe/infra-common": "^0.1.72",
|
|
468
|
+
"@dofe/infra-redis": "^0.1.72",
|
|
469
|
+
"@dofe/infra-utils": "^0.1.72"
|
|
470
470
|
},
|
|
471
471
|
"devDependencies": {
|
|
472
472
|
"rimraf": "^6.1.3",
|