agent-swarm-kit 1.0.77 → 1.0.78
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/build/index.cjs +156 -125
- package/build/index.mjs +156 -125
- package/package.json +1 -1
- package/types.d.ts +10 -0
package/build/index.cjs
CHANGED
|
@@ -250,6 +250,12 @@ var LoggerService = /** @class */ (function () {
|
|
|
250
250
|
*/
|
|
251
251
|
debug: function () {
|
|
252
252
|
},
|
|
253
|
+
/**
|
|
254
|
+
* Logs info messages.
|
|
255
|
+
* @param {...any} args - The info messages to log.
|
|
256
|
+
*/
|
|
257
|
+
info: function () {
|
|
258
|
+
},
|
|
253
259
|
};
|
|
254
260
|
/**
|
|
255
261
|
* Logs messages using the current logger.
|
|
@@ -290,6 +296,24 @@ var LoggerService = /** @class */ (function () {
|
|
|
290
296
|
: null;
|
|
291
297
|
(_a = _this._logger).debug.apply(_a, __spreadArray(__spreadArray([], __read(args), false), [{ methodContext: methodContext, executionContext: executionContext }], false));
|
|
292
298
|
};
|
|
299
|
+
/**
|
|
300
|
+
* Logs info messages using the current logger.
|
|
301
|
+
* @param {...any} args - The info messages to log.
|
|
302
|
+
*/
|
|
303
|
+
this.info = function () {
|
|
304
|
+
var _a;
|
|
305
|
+
var args = [];
|
|
306
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
307
|
+
args[_i] = arguments[_i];
|
|
308
|
+
}
|
|
309
|
+
var methodContext = MethodContextService.hasContext()
|
|
310
|
+
? _this.methodContextService.context
|
|
311
|
+
: null;
|
|
312
|
+
var executionContext = ExecutionContextService.hasContext()
|
|
313
|
+
? _this.executionContextService.context
|
|
314
|
+
: null;
|
|
315
|
+
(_a = _this._logger).info.apply(_a, __spreadArray(__spreadArray([], __read(args), false), [{ methodContext: methodContext, executionContext: executionContext }], false));
|
|
316
|
+
};
|
|
293
317
|
/**
|
|
294
318
|
* Sets a new logger.
|
|
295
319
|
* @param {ILogger} logger - The new logger to set.
|
|
@@ -315,7 +339,7 @@ var AgentSchemaService = /** @class */ (function () {
|
|
|
315
339
|
* @param {IAgentSchema} value - The schema of the agent.
|
|
316
340
|
*/
|
|
317
341
|
this.register = function (key, value) {
|
|
318
|
-
_this.loggerService.
|
|
342
|
+
_this.loggerService.info("agentSchemaService register", { key: key });
|
|
319
343
|
_this.registry = _this.registry.register(key, value);
|
|
320
344
|
};
|
|
321
345
|
/**
|
|
@@ -324,7 +348,7 @@ var AgentSchemaService = /** @class */ (function () {
|
|
|
324
348
|
* @returns {IAgentSchema} The schema of the agent.
|
|
325
349
|
*/
|
|
326
350
|
this.get = function (key) {
|
|
327
|
-
_this.loggerService.
|
|
351
|
+
_this.loggerService.info("agentSchemaService get", { key: key });
|
|
328
352
|
return _this.registry.get(key);
|
|
329
353
|
};
|
|
330
354
|
}
|
|
@@ -1589,7 +1613,7 @@ var AgentConnectionService = /** @class */ (function () {
|
|
|
1589
1613
|
return __generator(this, function (_a) {
|
|
1590
1614
|
switch (_a.label) {
|
|
1591
1615
|
case 0:
|
|
1592
|
-
this.loggerService.
|
|
1616
|
+
this.loggerService.info("agentConnectionService execute", {
|
|
1593
1617
|
input: input,
|
|
1594
1618
|
mode: mode,
|
|
1595
1619
|
});
|
|
@@ -1606,7 +1630,7 @@ var AgentConnectionService = /** @class */ (function () {
|
|
|
1606
1630
|
return __generator(this, function (_a) {
|
|
1607
1631
|
switch (_a.label) {
|
|
1608
1632
|
case 0:
|
|
1609
|
-
this.loggerService.
|
|
1633
|
+
this.loggerService.info("agentConnectionService waitForOutput");
|
|
1610
1634
|
return [4 /*yield*/, this.getAgent(this.methodContextService.context.clientId, this.methodContextService.context.agentName).waitForOutput()];
|
|
1611
1635
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1612
1636
|
}
|
|
@@ -1622,7 +1646,7 @@ var AgentConnectionService = /** @class */ (function () {
|
|
|
1622
1646
|
return __generator(this, function (_a) {
|
|
1623
1647
|
switch (_a.label) {
|
|
1624
1648
|
case 0:
|
|
1625
|
-
this.loggerService.
|
|
1649
|
+
this.loggerService.info("agentConnectionService commitToolOutput", {
|
|
1626
1650
|
content: content,
|
|
1627
1651
|
toolId: toolId,
|
|
1628
1652
|
});
|
|
@@ -1640,7 +1664,7 @@ var AgentConnectionService = /** @class */ (function () {
|
|
|
1640
1664
|
return __generator(this, function (_a) {
|
|
1641
1665
|
switch (_a.label) {
|
|
1642
1666
|
case 0:
|
|
1643
|
-
this.loggerService.
|
|
1667
|
+
this.loggerService.info("agentConnectionService commitSystemMessage", {
|
|
1644
1668
|
message: message,
|
|
1645
1669
|
});
|
|
1646
1670
|
return [4 /*yield*/, this.getAgent(this.methodContextService.context.clientId, this.methodContextService.context.agentName).commitSystemMessage(message)];
|
|
@@ -1657,7 +1681,7 @@ var AgentConnectionService = /** @class */ (function () {
|
|
|
1657
1681
|
return __generator(this, function (_a) {
|
|
1658
1682
|
switch (_a.label) {
|
|
1659
1683
|
case 0:
|
|
1660
|
-
this.loggerService.
|
|
1684
|
+
this.loggerService.info("agentConnectionService commitUserMessage", {
|
|
1661
1685
|
message: message,
|
|
1662
1686
|
});
|
|
1663
1687
|
return [4 /*yield*/, this.getAgent(this.methodContextService.context.clientId, this.methodContextService.context.agentName).commitUserMessage(message)];
|
|
@@ -1673,7 +1697,7 @@ var AgentConnectionService = /** @class */ (function () {
|
|
|
1673
1697
|
return __generator(this, function (_a) {
|
|
1674
1698
|
switch (_a.label) {
|
|
1675
1699
|
case 0:
|
|
1676
|
-
this.loggerService.
|
|
1700
|
+
this.loggerService.info("agentConnectionService commitAgentChange");
|
|
1677
1701
|
return [4 /*yield*/, this.getAgent(this.methodContextService.context.clientId, this.methodContextService.context.agentName).commitAgentChange()];
|
|
1678
1702
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1679
1703
|
}
|
|
@@ -1687,7 +1711,7 @@ var AgentConnectionService = /** @class */ (function () {
|
|
|
1687
1711
|
return __generator(this, function (_a) {
|
|
1688
1712
|
switch (_a.label) {
|
|
1689
1713
|
case 0:
|
|
1690
|
-
this.loggerService.
|
|
1714
|
+
this.loggerService.info("agentConnectionService commitFlush");
|
|
1691
1715
|
return [4 /*yield*/, this.getAgent(this.methodContextService.context.clientId, this.methodContextService.context.agentName).commitFlush()];
|
|
1692
1716
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1693
1717
|
}
|
|
@@ -1702,7 +1726,7 @@ var AgentConnectionService = /** @class */ (function () {
|
|
|
1702
1726
|
return __generator(this, function (_a) {
|
|
1703
1727
|
switch (_a.label) {
|
|
1704
1728
|
case 0:
|
|
1705
|
-
this.loggerService.
|
|
1729
|
+
this.loggerService.info("agentConnectionService dispose");
|
|
1706
1730
|
key = "".concat(this.methodContextService.context.clientId, "-").concat(this.methodContextService.context.agentName);
|
|
1707
1731
|
if (!this.getAgent.has(key)) {
|
|
1708
1732
|
return [2 /*return*/];
|
|
@@ -2022,7 +2046,7 @@ var HistoryConnectionService = /** @class */ (function () {
|
|
|
2022
2046
|
return __generator(this, function (_a) {
|
|
2023
2047
|
switch (_a.label) {
|
|
2024
2048
|
case 0:
|
|
2025
|
-
this.loggerService.
|
|
2049
|
+
this.loggerService.info("historyConnectionService push", {
|
|
2026
2050
|
message: message,
|
|
2027
2051
|
});
|
|
2028
2052
|
return [4 /*yield*/, this.getHistory(this.methodContextService.context.clientId, this.methodContextService.context.agentName).push(message)];
|
|
@@ -2039,7 +2063,7 @@ var HistoryConnectionService = /** @class */ (function () {
|
|
|
2039
2063
|
return __generator(this, function (_a) {
|
|
2040
2064
|
switch (_a.label) {
|
|
2041
2065
|
case 0:
|
|
2042
|
-
this.loggerService.
|
|
2066
|
+
this.loggerService.info("historyConnectionService toArrayForAgent", {
|
|
2043
2067
|
prompt: prompt,
|
|
2044
2068
|
});
|
|
2045
2069
|
return [4 /*yield*/, this.getHistory(this.methodContextService.context.clientId, this.methodContextService.context.agentName).toArrayForAgent(prompt)];
|
|
@@ -2055,7 +2079,7 @@ var HistoryConnectionService = /** @class */ (function () {
|
|
|
2055
2079
|
return __generator(this, function (_a) {
|
|
2056
2080
|
switch (_a.label) {
|
|
2057
2081
|
case 0:
|
|
2058
|
-
this.loggerService.
|
|
2082
|
+
this.loggerService.info("historyConnectionService toArrayForRaw");
|
|
2059
2083
|
return [4 /*yield*/, this.getHistory(this.methodContextService.context.clientId, this.methodContextService.context.agentName).toArrayForRaw()];
|
|
2060
2084
|
case 1: return [2 /*return*/, _a.sent()];
|
|
2061
2085
|
}
|
|
@@ -2070,7 +2094,7 @@ var HistoryConnectionService = /** @class */ (function () {
|
|
|
2070
2094
|
return __generator(this, function (_a) {
|
|
2071
2095
|
switch (_a.label) {
|
|
2072
2096
|
case 0:
|
|
2073
|
-
this.loggerService.
|
|
2097
|
+
this.loggerService.info("historyConnectionService dispose");
|
|
2074
2098
|
key = "".concat(this.methodContextService.context.clientId, "-").concat(this.methodContextService.context.agentName);
|
|
2075
2099
|
if (!this.getHistory.has(key)) {
|
|
2076
2100
|
return [2 /*return*/];
|
|
@@ -2102,7 +2126,7 @@ var ToolSchemaService = /** @class */ (function () {
|
|
|
2102
2126
|
* @param {IAgentTool} value - The tool to register.
|
|
2103
2127
|
*/
|
|
2104
2128
|
this.register = function (key, value) {
|
|
2105
|
-
_this.loggerService.
|
|
2129
|
+
_this.loggerService.info('toolSchemaService register');
|
|
2106
2130
|
_this.registry = _this.registry.register(key, value);
|
|
2107
2131
|
};
|
|
2108
2132
|
/**
|
|
@@ -2111,7 +2135,7 @@ var ToolSchemaService = /** @class */ (function () {
|
|
|
2111
2135
|
* @returns {IAgentTool} The tool associated with the given key.
|
|
2112
2136
|
*/
|
|
2113
2137
|
this.get = function (key) {
|
|
2114
|
-
_this.loggerService.
|
|
2138
|
+
_this.loggerService.info('toolSchemaService get', { key: key });
|
|
2115
2139
|
return _this.registry.get(key);
|
|
2116
2140
|
};
|
|
2117
2141
|
}
|
|
@@ -2463,7 +2487,7 @@ var SwarmConnectionService = /** @class */ (function () {
|
|
|
2463
2487
|
return __generator(this, function (_a) {
|
|
2464
2488
|
switch (_a.label) {
|
|
2465
2489
|
case 0:
|
|
2466
|
-
this.loggerService.
|
|
2490
|
+
this.loggerService.info("swarmConnectionService cancelOutput");
|
|
2467
2491
|
return [4 /*yield*/, this.getSwarm(this.methodContextService.context.clientId, this.methodContextService.context.swarmName).cancelOutput()];
|
|
2468
2492
|
case 1: return [2 /*return*/, _a.sent()];
|
|
2469
2493
|
}
|
|
@@ -2477,7 +2501,7 @@ var SwarmConnectionService = /** @class */ (function () {
|
|
|
2477
2501
|
return __generator(this, function (_a) {
|
|
2478
2502
|
switch (_a.label) {
|
|
2479
2503
|
case 0:
|
|
2480
|
-
this.loggerService.
|
|
2504
|
+
this.loggerService.info("swarmConnectionService waitForOutput");
|
|
2481
2505
|
return [4 /*yield*/, this.getSwarm(this.methodContextService.context.clientId, this.methodContextService.context.swarmName).waitForOutput()];
|
|
2482
2506
|
case 1: return [2 /*return*/, _a.sent()];
|
|
2483
2507
|
}
|
|
@@ -2491,7 +2515,7 @@ var SwarmConnectionService = /** @class */ (function () {
|
|
|
2491
2515
|
return __generator(this, function (_a) {
|
|
2492
2516
|
switch (_a.label) {
|
|
2493
2517
|
case 0:
|
|
2494
|
-
this.loggerService.
|
|
2518
|
+
this.loggerService.info("swarmConnectionService getAgentName");
|
|
2495
2519
|
return [4 /*yield*/, this.getSwarm(this.methodContextService.context.clientId, this.methodContextService.context.swarmName).getAgentName()];
|
|
2496
2520
|
case 1: return [2 /*return*/, _a.sent()];
|
|
2497
2521
|
}
|
|
@@ -2505,7 +2529,7 @@ var SwarmConnectionService = /** @class */ (function () {
|
|
|
2505
2529
|
return __generator(this, function (_a) {
|
|
2506
2530
|
switch (_a.label) {
|
|
2507
2531
|
case 0:
|
|
2508
|
-
this.loggerService.
|
|
2532
|
+
this.loggerService.info("swarmConnectionService getAgent");
|
|
2509
2533
|
return [4 /*yield*/, this.getSwarm(this.methodContextService.context.clientId, this.methodContextService.context.swarmName).getAgent()];
|
|
2510
2534
|
case 1: return [2 /*return*/, _a.sent()];
|
|
2511
2535
|
}
|
|
@@ -2521,7 +2545,7 @@ var SwarmConnectionService = /** @class */ (function () {
|
|
|
2521
2545
|
return __generator(this, function (_a) {
|
|
2522
2546
|
switch (_a.label) {
|
|
2523
2547
|
case 0:
|
|
2524
|
-
this.loggerService.
|
|
2548
|
+
this.loggerService.info("swarmConnectionService setAgentRef", {
|
|
2525
2549
|
agentName: agentName,
|
|
2526
2550
|
});
|
|
2527
2551
|
return [4 /*yield*/, this.getSwarm(this.methodContextService.context.clientId, this.methodContextService.context.swarmName).setAgentRef(agentName, agent)];
|
|
@@ -2538,7 +2562,7 @@ var SwarmConnectionService = /** @class */ (function () {
|
|
|
2538
2562
|
return __generator(this, function (_a) {
|
|
2539
2563
|
switch (_a.label) {
|
|
2540
2564
|
case 0:
|
|
2541
|
-
this.loggerService.
|
|
2565
|
+
this.loggerService.info("swarmConnectionService setAgentName", {
|
|
2542
2566
|
agentName: agentName,
|
|
2543
2567
|
});
|
|
2544
2568
|
return [4 /*yield*/, this.getSwarm(this.methodContextService.context.clientId, this.methodContextService.context.swarmName).setAgentName(agentName)];
|
|
@@ -2553,7 +2577,7 @@ var SwarmConnectionService = /** @class */ (function () {
|
|
|
2553
2577
|
this.dispose = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2554
2578
|
var key;
|
|
2555
2579
|
return __generator(this, function (_a) {
|
|
2556
|
-
this.loggerService.
|
|
2580
|
+
this.loggerService.info("swarmConnectionService dispose");
|
|
2557
2581
|
key = "".concat(this.methodContextService.context.clientId, "-").concat(this.methodContextService.context.swarmName);
|
|
2558
2582
|
if (!this.getSwarm.has(key)) {
|
|
2559
2583
|
return [2 /*return*/];
|
|
@@ -2580,7 +2604,7 @@ var SwarmSchemaService = /** @class */ (function () {
|
|
|
2580
2604
|
* @param {ISwarmSchema} value - The schema of the swarm.
|
|
2581
2605
|
*/
|
|
2582
2606
|
this.register = function (key, value) {
|
|
2583
|
-
_this.loggerService.
|
|
2607
|
+
_this.loggerService.info("swarmSchemaService register", { key: key });
|
|
2584
2608
|
_this.registry = _this.registry.register(key, value);
|
|
2585
2609
|
};
|
|
2586
2610
|
/**
|
|
@@ -2589,7 +2613,7 @@ var SwarmSchemaService = /** @class */ (function () {
|
|
|
2589
2613
|
* @returns {ISwarmSchema} The schema of the swarm.
|
|
2590
2614
|
*/
|
|
2591
2615
|
this.get = function (key) {
|
|
2592
|
-
_this.loggerService.
|
|
2616
|
+
_this.loggerService.info("swarmSchemaService get", { key: key });
|
|
2593
2617
|
return _this.registry.get(key);
|
|
2594
2618
|
};
|
|
2595
2619
|
}
|
|
@@ -2610,7 +2634,7 @@ var CompletionSchemaService = /** @class */ (function () {
|
|
|
2610
2634
|
* @param {ICompletionSchema} value - The schema to register.
|
|
2611
2635
|
*/
|
|
2612
2636
|
this.register = function (key, value) {
|
|
2613
|
-
_this.loggerService.
|
|
2637
|
+
_this.loggerService.info("completionSchemaService register", { key: key });
|
|
2614
2638
|
_this.registry = _this.registry.register(key, value);
|
|
2615
2639
|
};
|
|
2616
2640
|
/**
|
|
@@ -2619,7 +2643,7 @@ var CompletionSchemaService = /** @class */ (function () {
|
|
|
2619
2643
|
* @returns {ICompletionSchema} The retrieved schema.
|
|
2620
2644
|
*/
|
|
2621
2645
|
this.get = function (key) {
|
|
2622
|
-
_this.loggerService.
|
|
2646
|
+
_this.loggerService.info("completionSchemaService get", { key: key });
|
|
2623
2647
|
return _this.registry.get(key);
|
|
2624
2648
|
};
|
|
2625
2649
|
}
|
|
@@ -2984,7 +3008,7 @@ var SessionConnectionService = /** @class */ (function () {
|
|
|
2984
3008
|
return __generator(this, function (_a) {
|
|
2985
3009
|
switch (_a.label) {
|
|
2986
3010
|
case 0:
|
|
2987
|
-
this.loggerService.
|
|
3011
|
+
this.loggerService.info("sessionConnectionService emit", {
|
|
2988
3012
|
content: content,
|
|
2989
3013
|
});
|
|
2990
3014
|
return [4 /*yield*/, this.getSession(this.methodContextService.context.clientId, this.methodContextService.context.swarmName).emit(content)];
|
|
@@ -3001,7 +3025,7 @@ var SessionConnectionService = /** @class */ (function () {
|
|
|
3001
3025
|
return __generator(this, function (_a) {
|
|
3002
3026
|
switch (_a.label) {
|
|
3003
3027
|
case 0:
|
|
3004
|
-
this.loggerService.
|
|
3028
|
+
this.loggerService.info("sessionConnectionService execute", {
|
|
3005
3029
|
content: content,
|
|
3006
3030
|
mode: mode,
|
|
3007
3031
|
});
|
|
@@ -3016,7 +3040,7 @@ var SessionConnectionService = /** @class */ (function () {
|
|
|
3016
3040
|
* @returns {ReceiveMessageFn} The function to receive messages.
|
|
3017
3041
|
*/
|
|
3018
3042
|
this.connect = function (connector, clientId, swarmName) {
|
|
3019
|
-
_this.loggerService.
|
|
3043
|
+
_this.loggerService.info("sessionConnectionService connect");
|
|
3020
3044
|
return _this.getSession(clientId, swarmName).connect(connector);
|
|
3021
3045
|
};
|
|
3022
3046
|
/**
|
|
@@ -3029,7 +3053,7 @@ var SessionConnectionService = /** @class */ (function () {
|
|
|
3029
3053
|
return __generator(this, function (_a) {
|
|
3030
3054
|
switch (_a.label) {
|
|
3031
3055
|
case 0:
|
|
3032
|
-
this.loggerService.
|
|
3056
|
+
this.loggerService.info("sessionConnectionService commitToolOutput", {
|
|
3033
3057
|
content: content,
|
|
3034
3058
|
toolId: toolId,
|
|
3035
3059
|
});
|
|
@@ -3047,7 +3071,7 @@ var SessionConnectionService = /** @class */ (function () {
|
|
|
3047
3071
|
return __generator(this, function (_a) {
|
|
3048
3072
|
switch (_a.label) {
|
|
3049
3073
|
case 0:
|
|
3050
|
-
this.loggerService.
|
|
3074
|
+
this.loggerService.info("sessionConnectionService commitSystemMessage", {
|
|
3051
3075
|
message: message,
|
|
3052
3076
|
});
|
|
3053
3077
|
return [4 /*yield*/, this.getSession(this.methodContextService.context.clientId, this.methodContextService.context.swarmName).commitSystemMessage(message)];
|
|
@@ -3064,7 +3088,7 @@ var SessionConnectionService = /** @class */ (function () {
|
|
|
3064
3088
|
return __generator(this, function (_a) {
|
|
3065
3089
|
switch (_a.label) {
|
|
3066
3090
|
case 0:
|
|
3067
|
-
this.loggerService.
|
|
3091
|
+
this.loggerService.info("sessionConnectionService commitUserMessage", {
|
|
3068
3092
|
message: message,
|
|
3069
3093
|
});
|
|
3070
3094
|
return [4 /*yield*/, this.getSession(this.methodContextService.context.clientId, this.methodContextService.context.swarmName).commitUserMessage(message)];
|
|
@@ -3081,7 +3105,7 @@ var SessionConnectionService = /** @class */ (function () {
|
|
|
3081
3105
|
return __generator(this, function (_a) {
|
|
3082
3106
|
switch (_a.label) {
|
|
3083
3107
|
case 0:
|
|
3084
|
-
this.loggerService.
|
|
3108
|
+
this.loggerService.info("sessionConnectionService commitFlush");
|
|
3085
3109
|
return [4 /*yield*/, this.getSession(this.methodContextService.context.clientId, this.methodContextService.context.swarmName).commitFlush()];
|
|
3086
3110
|
case 1: return [2 /*return*/, _a.sent()];
|
|
3087
3111
|
}
|
|
@@ -3096,7 +3120,7 @@ var SessionConnectionService = /** @class */ (function () {
|
|
|
3096
3120
|
return __generator(this, function (_a) {
|
|
3097
3121
|
switch (_a.label) {
|
|
3098
3122
|
case 0:
|
|
3099
|
-
this.loggerService.
|
|
3123
|
+
this.loggerService.info("sessionConnectionService dispose");
|
|
3100
3124
|
key = "".concat(this.methodContextService.context.clientId, "-").concat(this.methodContextService.context.swarmName);
|
|
3101
3125
|
if (!this.getSession.has(key)) {
|
|
3102
3126
|
return [2 /*return*/];
|
|
@@ -3132,7 +3156,7 @@ var AgentPublicService = /** @class */ (function () {
|
|
|
3132
3156
|
return __generator(this, function (_a) {
|
|
3133
3157
|
switch (_a.label) {
|
|
3134
3158
|
case 0:
|
|
3135
|
-
this.loggerService.
|
|
3159
|
+
this.loggerService.info("agentPublicService createAgentRef", {
|
|
3136
3160
|
methodName: methodName,
|
|
3137
3161
|
clientId: clientId,
|
|
3138
3162
|
agentName: agentName,
|
|
@@ -3168,7 +3192,7 @@ var AgentPublicService = /** @class */ (function () {
|
|
|
3168
3192
|
return __generator(this, function (_a) {
|
|
3169
3193
|
switch (_a.label) {
|
|
3170
3194
|
case 0:
|
|
3171
|
-
this.loggerService.
|
|
3195
|
+
this.loggerService.info("agentPublicService execute", {
|
|
3172
3196
|
methodName: methodName,
|
|
3173
3197
|
input: input,
|
|
3174
3198
|
clientId: clientId,
|
|
@@ -3205,7 +3229,7 @@ var AgentPublicService = /** @class */ (function () {
|
|
|
3205
3229
|
return __generator(this, function (_a) {
|
|
3206
3230
|
switch (_a.label) {
|
|
3207
3231
|
case 0:
|
|
3208
|
-
this.loggerService.
|
|
3232
|
+
this.loggerService.info("agentPublicService waitForOutput", {
|
|
3209
3233
|
methodName: methodName,
|
|
3210
3234
|
clientId: clientId,
|
|
3211
3235
|
agentName: agentName,
|
|
@@ -3242,7 +3266,7 @@ var AgentPublicService = /** @class */ (function () {
|
|
|
3242
3266
|
return __generator(this, function (_a) {
|
|
3243
3267
|
switch (_a.label) {
|
|
3244
3268
|
case 0:
|
|
3245
|
-
this.loggerService.
|
|
3269
|
+
this.loggerService.info("agentPublicService commitToolOutput", {
|
|
3246
3270
|
methodName: methodName,
|
|
3247
3271
|
content: content,
|
|
3248
3272
|
clientId: clientId,
|
|
@@ -3280,7 +3304,7 @@ var AgentPublicService = /** @class */ (function () {
|
|
|
3280
3304
|
return __generator(this, function (_a) {
|
|
3281
3305
|
switch (_a.label) {
|
|
3282
3306
|
case 0:
|
|
3283
|
-
this.loggerService.
|
|
3307
|
+
this.loggerService.info("agentPublicService commitSystemMessage", {
|
|
3284
3308
|
methodName: methodName,
|
|
3285
3309
|
message: message,
|
|
3286
3310
|
clientId: clientId,
|
|
@@ -3317,7 +3341,7 @@ var AgentPublicService = /** @class */ (function () {
|
|
|
3317
3341
|
return __generator(this, function (_a) {
|
|
3318
3342
|
switch (_a.label) {
|
|
3319
3343
|
case 0:
|
|
3320
|
-
this.loggerService.
|
|
3344
|
+
this.loggerService.info("agentPublicService commitUserMessage", {
|
|
3321
3345
|
methodName: methodName,
|
|
3322
3346
|
message: message,
|
|
3323
3347
|
clientId: clientId,
|
|
@@ -3353,7 +3377,7 @@ var AgentPublicService = /** @class */ (function () {
|
|
|
3353
3377
|
return __generator(this, function (_a) {
|
|
3354
3378
|
switch (_a.label) {
|
|
3355
3379
|
case 0:
|
|
3356
|
-
this.loggerService.
|
|
3380
|
+
this.loggerService.info("agentPublicService commitFlush", {
|
|
3357
3381
|
methodName: methodName,
|
|
3358
3382
|
clientId: clientId,
|
|
3359
3383
|
agentName: agentName,
|
|
@@ -3388,7 +3412,7 @@ var AgentPublicService = /** @class */ (function () {
|
|
|
3388
3412
|
return __generator(this, function (_a) {
|
|
3389
3413
|
switch (_a.label) {
|
|
3390
3414
|
case 0:
|
|
3391
|
-
this.loggerService.
|
|
3415
|
+
this.loggerService.info("agentPublicService commitAgentChange", {
|
|
3392
3416
|
methodName: methodName,
|
|
3393
3417
|
clientId: clientId,
|
|
3394
3418
|
agentName: agentName,
|
|
@@ -3423,7 +3447,7 @@ var AgentPublicService = /** @class */ (function () {
|
|
|
3423
3447
|
return __generator(this, function (_a) {
|
|
3424
3448
|
switch (_a.label) {
|
|
3425
3449
|
case 0:
|
|
3426
|
-
this.loggerService.
|
|
3450
|
+
this.loggerService.info("agentPublicService dispose", {
|
|
3427
3451
|
methodName: methodName,
|
|
3428
3452
|
clientId: clientId,
|
|
3429
3453
|
agentName: agentName,
|
|
@@ -3471,7 +3495,7 @@ var HistoryPublicService = /** @class */ (function () {
|
|
|
3471
3495
|
return __generator(this, function (_a) {
|
|
3472
3496
|
switch (_a.label) {
|
|
3473
3497
|
case 0:
|
|
3474
|
-
this.loggerService.
|
|
3498
|
+
this.loggerService.info("historyPublicService push", {
|
|
3475
3499
|
methodName: methodName,
|
|
3476
3500
|
message: message,
|
|
3477
3501
|
clientId: clientId,
|
|
@@ -3508,7 +3532,7 @@ var HistoryPublicService = /** @class */ (function () {
|
|
|
3508
3532
|
return __generator(this, function (_a) {
|
|
3509
3533
|
switch (_a.label) {
|
|
3510
3534
|
case 0:
|
|
3511
|
-
this.loggerService.
|
|
3535
|
+
this.loggerService.info("historyPublicService toArrayForAgent", {
|
|
3512
3536
|
prompt: prompt,
|
|
3513
3537
|
clientId: clientId,
|
|
3514
3538
|
agentName: agentName,
|
|
@@ -3543,7 +3567,7 @@ var HistoryPublicService = /** @class */ (function () {
|
|
|
3543
3567
|
return __generator(this, function (_a) {
|
|
3544
3568
|
switch (_a.label) {
|
|
3545
3569
|
case 0:
|
|
3546
|
-
this.loggerService.
|
|
3570
|
+
this.loggerService.info("historyPublicService toArrayForRaw", {
|
|
3547
3571
|
methodName: methodName,
|
|
3548
3572
|
clientId: clientId,
|
|
3549
3573
|
agentName: agentName,
|
|
@@ -3578,7 +3602,7 @@ var HistoryPublicService = /** @class */ (function () {
|
|
|
3578
3602
|
return __generator(this, function (_a) {
|
|
3579
3603
|
switch (_a.label) {
|
|
3580
3604
|
case 0:
|
|
3581
|
-
this.loggerService.
|
|
3605
|
+
this.loggerService.info("historyPublicService dispose", {
|
|
3582
3606
|
clientId: clientId,
|
|
3583
3607
|
agentName: agentName,
|
|
3584
3608
|
});
|
|
@@ -3625,7 +3649,7 @@ var SessionPublicService = /** @class */ (function () {
|
|
|
3625
3649
|
return __generator(this, function (_a) {
|
|
3626
3650
|
switch (_a.label) {
|
|
3627
3651
|
case 0:
|
|
3628
|
-
this.loggerService.
|
|
3652
|
+
this.loggerService.info("sessionPublicService emit", {
|
|
3629
3653
|
content: content,
|
|
3630
3654
|
clientId: clientId,
|
|
3631
3655
|
methodName: methodName,
|
|
@@ -3662,7 +3686,7 @@ var SessionPublicService = /** @class */ (function () {
|
|
|
3662
3686
|
return __generator(this, function (_a) {
|
|
3663
3687
|
switch (_a.label) {
|
|
3664
3688
|
case 0:
|
|
3665
|
-
this.loggerService.
|
|
3689
|
+
this.loggerService.info("sessionPublicService execute", {
|
|
3666
3690
|
content: content,
|
|
3667
3691
|
mode: mode,
|
|
3668
3692
|
clientId: clientId,
|
|
@@ -3695,7 +3719,7 @@ var SessionPublicService = /** @class */ (function () {
|
|
|
3695
3719
|
* @returns {ReceiveMessageFn}
|
|
3696
3720
|
*/
|
|
3697
3721
|
this.connect = function (connector, methodName, clientId, swarmName) {
|
|
3698
|
-
_this.loggerService.
|
|
3722
|
+
_this.loggerService.info("sessionPublicService connect", {
|
|
3699
3723
|
methodName: methodName,
|
|
3700
3724
|
clientId: clientId,
|
|
3701
3725
|
swarmName: swarmName,
|
|
@@ -3709,7 +3733,14 @@ var SessionPublicService = /** @class */ (function () {
|
|
|
3709
3733
|
return [2 /*return*/, ExecutionContextService.runInContext(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
3710
3734
|
return __generator(this, function (_a) {
|
|
3711
3735
|
switch (_a.label) {
|
|
3712
|
-
case 0:
|
|
3736
|
+
case 0:
|
|
3737
|
+
this.loggerService.log("sessionPublicService connect execute", {
|
|
3738
|
+
content: incoming,
|
|
3739
|
+
methodName: methodName,
|
|
3740
|
+
clientId: clientId,
|
|
3741
|
+
executionId: executionId,
|
|
3742
|
+
});
|
|
3743
|
+
return [4 /*yield*/, send(incoming)];
|
|
3713
3744
|
case 1: return [2 /*return*/, _a.sent()];
|
|
3714
3745
|
}
|
|
3715
3746
|
});
|
|
@@ -3733,7 +3764,7 @@ var SessionPublicService = /** @class */ (function () {
|
|
|
3733
3764
|
return __generator(this, function (_a) {
|
|
3734
3765
|
switch (_a.label) {
|
|
3735
3766
|
case 0:
|
|
3736
|
-
this.loggerService.
|
|
3767
|
+
this.loggerService.info("sessionPublicService commitToolOutput", {
|
|
3737
3768
|
methodName: methodName,
|
|
3738
3769
|
toolId: toolId,
|
|
3739
3770
|
content: content,
|
|
@@ -3771,7 +3802,7 @@ var SessionPublicService = /** @class */ (function () {
|
|
|
3771
3802
|
return __generator(this, function (_a) {
|
|
3772
3803
|
switch (_a.label) {
|
|
3773
3804
|
case 0:
|
|
3774
|
-
this.loggerService.
|
|
3805
|
+
this.loggerService.info("sessionPublicService commitSystemMessage", {
|
|
3775
3806
|
methodName: methodName,
|
|
3776
3807
|
message: message,
|
|
3777
3808
|
clientId: clientId,
|
|
@@ -3808,7 +3839,7 @@ var SessionPublicService = /** @class */ (function () {
|
|
|
3808
3839
|
return __generator(this, function (_a) {
|
|
3809
3840
|
switch (_a.label) {
|
|
3810
3841
|
case 0:
|
|
3811
|
-
this.loggerService.
|
|
3842
|
+
this.loggerService.info("sessionPublicService commitUserMessage", {
|
|
3812
3843
|
methodName: methodName,
|
|
3813
3844
|
message: message,
|
|
3814
3845
|
clientId: clientId,
|
|
@@ -3844,7 +3875,7 @@ var SessionPublicService = /** @class */ (function () {
|
|
|
3844
3875
|
return __generator(this, function (_a) {
|
|
3845
3876
|
switch (_a.label) {
|
|
3846
3877
|
case 0:
|
|
3847
|
-
this.loggerService.
|
|
3878
|
+
this.loggerService.info("sessionPublicService commitFlush", {
|
|
3848
3879
|
clientId: clientId,
|
|
3849
3880
|
swarmName: swarmName,
|
|
3850
3881
|
});
|
|
@@ -3878,7 +3909,7 @@ var SessionPublicService = /** @class */ (function () {
|
|
|
3878
3909
|
return __generator(this, function (_a) {
|
|
3879
3910
|
switch (_a.label) {
|
|
3880
3911
|
case 0:
|
|
3881
|
-
this.loggerService.
|
|
3912
|
+
this.loggerService.info("sessionPublicService dispose", {
|
|
3882
3913
|
methodName: methodName,
|
|
3883
3914
|
clientId: clientId,
|
|
3884
3915
|
swarmName: swarmName,
|
|
@@ -3925,7 +3956,7 @@ var SwarmPublicService = /** @class */ (function () {
|
|
|
3925
3956
|
return __generator(this, function (_a) {
|
|
3926
3957
|
switch (_a.label) {
|
|
3927
3958
|
case 0:
|
|
3928
|
-
this.loggerService.
|
|
3959
|
+
this.loggerService.info("swarmPublicService cancelOutput", {
|
|
3929
3960
|
clientId: clientId,
|
|
3930
3961
|
swarmName: swarmName,
|
|
3931
3962
|
});
|
|
@@ -3959,7 +3990,7 @@ var SwarmPublicService = /** @class */ (function () {
|
|
|
3959
3990
|
return __generator(this, function (_a) {
|
|
3960
3991
|
switch (_a.label) {
|
|
3961
3992
|
case 0:
|
|
3962
|
-
this.loggerService.
|
|
3993
|
+
this.loggerService.info("swarmPublicService waitForOutput", {
|
|
3963
3994
|
clientId: clientId,
|
|
3964
3995
|
methodName: methodName,
|
|
3965
3996
|
swarmName: swarmName,
|
|
@@ -3994,7 +4025,7 @@ var SwarmPublicService = /** @class */ (function () {
|
|
|
3994
4025
|
return __generator(this, function (_a) {
|
|
3995
4026
|
switch (_a.label) {
|
|
3996
4027
|
case 0:
|
|
3997
|
-
this.loggerService.
|
|
4028
|
+
this.loggerService.info("swarmPublicService getAgentName", {
|
|
3998
4029
|
clientId: clientId,
|
|
3999
4030
|
swarmName: swarmName,
|
|
4000
4031
|
methodName: methodName,
|
|
@@ -4029,7 +4060,7 @@ var SwarmPublicService = /** @class */ (function () {
|
|
|
4029
4060
|
return __generator(this, function (_a) {
|
|
4030
4061
|
switch (_a.label) {
|
|
4031
4062
|
case 0:
|
|
4032
|
-
this.loggerService.
|
|
4063
|
+
this.loggerService.info("swarmPublicService getAgent", {
|
|
4033
4064
|
clientId: clientId,
|
|
4034
4065
|
swarmName: swarmName,
|
|
4035
4066
|
});
|
|
@@ -4065,7 +4096,7 @@ var SwarmPublicService = /** @class */ (function () {
|
|
|
4065
4096
|
return __generator(this, function (_a) {
|
|
4066
4097
|
switch (_a.label) {
|
|
4067
4098
|
case 0:
|
|
4068
|
-
this.loggerService.
|
|
4099
|
+
this.loggerService.info("swarmPublicService setAgentRef", {
|
|
4069
4100
|
methodName: methodName,
|
|
4070
4101
|
agentName: agentName,
|
|
4071
4102
|
agent: agent,
|
|
@@ -4103,7 +4134,7 @@ var SwarmPublicService = /** @class */ (function () {
|
|
|
4103
4134
|
return __generator(this, function (_a) {
|
|
4104
4135
|
switch (_a.label) {
|
|
4105
4136
|
case 0:
|
|
4106
|
-
this.loggerService.
|
|
4137
|
+
this.loggerService.info("swarmPublicService setAgentName", {
|
|
4107
4138
|
methodName: methodName,
|
|
4108
4139
|
agentName: agentName,
|
|
4109
4140
|
clientId: clientId,
|
|
@@ -4139,7 +4170,7 @@ var SwarmPublicService = /** @class */ (function () {
|
|
|
4139
4170
|
return __generator(this, function (_a) {
|
|
4140
4171
|
switch (_a.label) {
|
|
4141
4172
|
case 0:
|
|
4142
|
-
this.loggerService.
|
|
4173
|
+
this.loggerService.info("swarmPublicService dispose", {
|
|
4143
4174
|
methodName: methodName,
|
|
4144
4175
|
clientId: clientId,
|
|
4145
4176
|
swarmName: swarmName,
|
|
@@ -4209,7 +4240,7 @@ var AgentValidationService = /** @class */ (function () {
|
|
|
4209
4240
|
* @throws {Error} If the agent already exists.
|
|
4210
4241
|
*/
|
|
4211
4242
|
this.addAgent = function (agentName, agentSchema) {
|
|
4212
|
-
_this.loggerService.
|
|
4243
|
+
_this.loggerService.info("agentValidationService addAgent", {
|
|
4213
4244
|
agentName: agentName,
|
|
4214
4245
|
agentSchema: agentSchema,
|
|
4215
4246
|
});
|
|
@@ -4225,7 +4256,7 @@ var AgentValidationService = /** @class */ (function () {
|
|
|
4225
4256
|
var _b = __read(_a, 2), agentName = _b[0], storageName = _b[1];
|
|
4226
4257
|
return "".concat(agentName, "-").concat(storageName);
|
|
4227
4258
|
}, function (agentName, storageName) {
|
|
4228
|
-
_this.loggerService.
|
|
4259
|
+
_this.loggerService.info("agentValidationService hasStorage", {
|
|
4229
4260
|
agentName: agentName,
|
|
4230
4261
|
storageName: storageName,
|
|
4231
4262
|
});
|
|
@@ -4242,7 +4273,7 @@ var AgentValidationService = /** @class */ (function () {
|
|
|
4242
4273
|
var _b = __read(_a, 2), agentName = _b[0], stateName = _b[1];
|
|
4243
4274
|
return "".concat(agentName, "-").concat(stateName);
|
|
4244
4275
|
}, function (agentName, stateName) {
|
|
4245
|
-
_this.loggerService.
|
|
4276
|
+
_this.loggerService.info("agentValidationService hasState", {
|
|
4246
4277
|
agentName: agentName,
|
|
4247
4278
|
stateName: stateName,
|
|
4248
4279
|
});
|
|
@@ -4263,7 +4294,7 @@ var AgentValidationService = /** @class */ (function () {
|
|
|
4263
4294
|
return agentName;
|
|
4264
4295
|
}, function (agentName, source) {
|
|
4265
4296
|
var _a, _b;
|
|
4266
|
-
_this.loggerService.
|
|
4297
|
+
_this.loggerService.info("agentValidationService validate", {
|
|
4267
4298
|
agentName: agentName,
|
|
4268
4299
|
source: source,
|
|
4269
4300
|
});
|
|
@@ -4304,7 +4335,7 @@ var CompletionValidationService = /** @class */ (function () {
|
|
|
4304
4335
|
* @throws Will throw an error if the completion name already exists.
|
|
4305
4336
|
*/
|
|
4306
4337
|
this.addCompletion = function (completionName) {
|
|
4307
|
-
_this.loggerService.
|
|
4338
|
+
_this.loggerService.info("completionValidationService addCompletion", {
|
|
4308
4339
|
completionName: completionName,
|
|
4309
4340
|
});
|
|
4310
4341
|
if (_this._completionSet.has(completionName)) {
|
|
@@ -4322,7 +4353,7 @@ var CompletionValidationService = /** @class */ (function () {
|
|
|
4322
4353
|
var _b = __read(_a, 1), completionName = _b[0];
|
|
4323
4354
|
return completionName;
|
|
4324
4355
|
}, function (completionName, source) {
|
|
4325
|
-
_this.loggerService.
|
|
4356
|
+
_this.loggerService.info("completionValidationService validate", {
|
|
4326
4357
|
completionName: completionName,
|
|
4327
4358
|
source: source,
|
|
4328
4359
|
});
|
|
@@ -4356,7 +4387,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4356
4387
|
* @throws Will throw an error if the session already exists.
|
|
4357
4388
|
*/
|
|
4358
4389
|
this.addSession = function (clientId, swarmName, sessionMode) {
|
|
4359
|
-
_this.loggerService.
|
|
4390
|
+
_this.loggerService.info("sessionValidationService addSession", {
|
|
4360
4391
|
clientId: clientId,
|
|
4361
4392
|
});
|
|
4362
4393
|
if (_this._sessionSwarmMap.has(clientId)) {
|
|
@@ -4371,7 +4402,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4371
4402
|
* @param {AgentName} agentName - The name of the agent.
|
|
4372
4403
|
*/
|
|
4373
4404
|
this.addAgentUsage = function (sessionId, agentName) {
|
|
4374
|
-
_this.loggerService.
|
|
4405
|
+
_this.loggerService.info("sessionValidationService addAgentUsage", {
|
|
4375
4406
|
sessionId: sessionId,
|
|
4376
4407
|
agentName: agentName,
|
|
4377
4408
|
});
|
|
@@ -4391,7 +4422,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4391
4422
|
* @param {AgentName} agentName - The name of the agent.
|
|
4392
4423
|
*/
|
|
4393
4424
|
this.addHistoryUsage = function (sessionId, agentName) {
|
|
4394
|
-
_this.loggerService.
|
|
4425
|
+
_this.loggerService.info("sessionValidationService addHistoryUsage", {
|
|
4395
4426
|
sessionId: sessionId,
|
|
4396
4427
|
agentName: agentName,
|
|
4397
4428
|
});
|
|
@@ -4411,7 +4442,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4411
4442
|
* @param {StorageName} storageName - The name of the storage.
|
|
4412
4443
|
*/
|
|
4413
4444
|
this.addStorageUsage = function (sessionId, storageName) {
|
|
4414
|
-
_this.loggerService.
|
|
4445
|
+
_this.loggerService.info("sessionValidationService addStorageUsage", {
|
|
4415
4446
|
sessionId: sessionId,
|
|
4416
4447
|
storageName: storageName,
|
|
4417
4448
|
});
|
|
@@ -4431,7 +4462,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4431
4462
|
* @param {StateName} stateName - The name of the state.
|
|
4432
4463
|
*/
|
|
4433
4464
|
this.addStateUsage = function (sessionId, stateName) {
|
|
4434
|
-
_this.loggerService.
|
|
4465
|
+
_this.loggerService.info("sessionValidationService addStateUsage", {
|
|
4435
4466
|
sessionId: sessionId,
|
|
4436
4467
|
stateName: stateName,
|
|
4437
4468
|
});
|
|
@@ -4452,7 +4483,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4452
4483
|
* @throws Will throw an error if no agents are found for the session.
|
|
4453
4484
|
*/
|
|
4454
4485
|
this.removeAgentUsage = function (sessionId, agentName) {
|
|
4455
|
-
_this.loggerService.
|
|
4486
|
+
_this.loggerService.info("sessionValidationService removeAgentUsage", {
|
|
4456
4487
|
sessionId: sessionId,
|
|
4457
4488
|
agentName: agentName,
|
|
4458
4489
|
});
|
|
@@ -4477,7 +4508,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4477
4508
|
* @throws Will throw an error if no agents are found for the session.
|
|
4478
4509
|
*/
|
|
4479
4510
|
this.removeHistoryUsage = function (sessionId, agentName) {
|
|
4480
|
-
_this.loggerService.
|
|
4511
|
+
_this.loggerService.info("sessionValidationService removeHistoryUsage", {
|
|
4481
4512
|
sessionId: sessionId,
|
|
4482
4513
|
agentName: agentName,
|
|
4483
4514
|
});
|
|
@@ -4502,7 +4533,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4502
4533
|
* @throws Will throw an error if no storages are found for the session.
|
|
4503
4534
|
*/
|
|
4504
4535
|
this.removeStorageUsage = function (sessionId, storageName) {
|
|
4505
|
-
_this.loggerService.
|
|
4536
|
+
_this.loggerService.info("sessionValidationService removeStorageUsage", {
|
|
4506
4537
|
sessionId: sessionId,
|
|
4507
4538
|
storageName: storageName,
|
|
4508
4539
|
});
|
|
@@ -4527,7 +4558,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4527
4558
|
* @throws Will throw an error if no states are found for the session.
|
|
4528
4559
|
*/
|
|
4529
4560
|
this.removeStateUsage = function (sessionId, stateName) {
|
|
4530
|
-
_this.loggerService.
|
|
4561
|
+
_this.loggerService.info("sessionValidationService removeStateUsage", {
|
|
4531
4562
|
sessionId: sessionId,
|
|
4532
4563
|
stateName: stateName,
|
|
4533
4564
|
});
|
|
@@ -4552,7 +4583,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4552
4583
|
* @throws Will throw an error if the session does not exist.
|
|
4553
4584
|
*/
|
|
4554
4585
|
this.getSessionMode = function (clientId) {
|
|
4555
|
-
_this.loggerService.
|
|
4586
|
+
_this.loggerService.info("sessionValidationService getSessionMode", {
|
|
4556
4587
|
clientId: clientId,
|
|
4557
4588
|
});
|
|
4558
4589
|
if (!_this._sessionModeMap.has(clientId)) {
|
|
@@ -4565,7 +4596,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4565
4596
|
* @returns {boolean}
|
|
4566
4597
|
*/
|
|
4567
4598
|
this.hasSession = function (clientId) {
|
|
4568
|
-
_this.loggerService.
|
|
4599
|
+
_this.loggerService.info("sessionValidationService hasSession");
|
|
4569
4600
|
return _this._sessionSwarmMap.has(clientId);
|
|
4570
4601
|
};
|
|
4571
4602
|
/**
|
|
@@ -4573,7 +4604,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4573
4604
|
* @returns {SessionId[]} The list of session IDs.
|
|
4574
4605
|
*/
|
|
4575
4606
|
this.getSessionList = function () {
|
|
4576
|
-
_this.loggerService.
|
|
4607
|
+
_this.loggerService.info("sessionValidationService getSessionList");
|
|
4577
4608
|
return __spreadArray([], __read(_this._sessionSwarmMap.keys()), false);
|
|
4578
4609
|
};
|
|
4579
4610
|
/**
|
|
@@ -4583,7 +4614,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4583
4614
|
*/
|
|
4584
4615
|
this.getSessionAgentList = function (clientId) {
|
|
4585
4616
|
var _a;
|
|
4586
|
-
_this.loggerService.
|
|
4617
|
+
_this.loggerService.info("sessionValidationService getSessionAgentList", {
|
|
4587
4618
|
clientId: clientId,
|
|
4588
4619
|
});
|
|
4589
4620
|
return (_a = _this._agentSwarmMap.get(clientId)) !== null && _a !== void 0 ? _a : [];
|
|
@@ -4595,7 +4626,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4595
4626
|
*/
|
|
4596
4627
|
this.getSessionHistoryList = function (clientId) {
|
|
4597
4628
|
var _a;
|
|
4598
|
-
_this.loggerService.
|
|
4629
|
+
_this.loggerService.info("sessionValidationService getSessionHistoryList", {
|
|
4599
4630
|
clientId: clientId,
|
|
4600
4631
|
});
|
|
4601
4632
|
return (_a = _this._agentSwarmMap.get(clientId)) !== null && _a !== void 0 ? _a : [];
|
|
@@ -4607,7 +4638,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4607
4638
|
* @throws Will throw an error if the session does not exist.
|
|
4608
4639
|
*/
|
|
4609
4640
|
this.getSwarm = function (clientId) {
|
|
4610
|
-
_this.loggerService.
|
|
4641
|
+
_this.loggerService.info("sessionValidationService getSwarm", {
|
|
4611
4642
|
clientId: clientId,
|
|
4612
4643
|
});
|
|
4613
4644
|
var session = _this._sessionSwarmMap.get(clientId);
|
|
@@ -4623,7 +4654,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4623
4654
|
* @throws Will throw an error if the session does not exist.
|
|
4624
4655
|
*/
|
|
4625
4656
|
this.validate = function (clientId, source) {
|
|
4626
|
-
_this.loggerService.
|
|
4657
|
+
_this.loggerService.info("sessionValidationService validate", { clientId: clientId });
|
|
4627
4658
|
if (!_this._sessionSwarmMap.has(clientId)) {
|
|
4628
4659
|
throw new Error("agent-swarm session clientId=".concat(clientId, " not exist source=").concat(source));
|
|
4629
4660
|
}
|
|
@@ -4634,7 +4665,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
4634
4665
|
* @param {SessionId} clientId - The ID of the client.
|
|
4635
4666
|
*/
|
|
4636
4667
|
this.removeSession = function (clientId) {
|
|
4637
|
-
_this.loggerService.
|
|
4668
|
+
_this.loggerService.info("sessionValidationService addSession", {
|
|
4638
4669
|
clientId: clientId,
|
|
4639
4670
|
});
|
|
4640
4671
|
_this._sessionSwarmMap.delete(clientId);
|
|
@@ -4660,7 +4691,7 @@ var SwarmValidationService = /** @class */ (function () {
|
|
|
4660
4691
|
* @throws Will throw an error if the swarm already exists.
|
|
4661
4692
|
*/
|
|
4662
4693
|
this.addSwarm = function (swarmName, swarmSchema) {
|
|
4663
|
-
_this.loggerService.
|
|
4694
|
+
_this.loggerService.info("swarmValidationService addSwarm", {
|
|
4664
4695
|
swarmName: swarmName,
|
|
4665
4696
|
swarmSchema: swarmSchema,
|
|
4666
4697
|
});
|
|
@@ -4676,7 +4707,7 @@ var SwarmValidationService = /** @class */ (function () {
|
|
|
4676
4707
|
* @throws Will throw an error if the swarm is not found.
|
|
4677
4708
|
*/
|
|
4678
4709
|
this.getAgentList = function (swarmName) {
|
|
4679
|
-
_this.loggerService.
|
|
4710
|
+
_this.loggerService.info("swarmValidationService getAgentList", {
|
|
4680
4711
|
swarmName: swarmName,
|
|
4681
4712
|
});
|
|
4682
4713
|
var swarm = _this._swarmMap.get(swarmName);
|
|
@@ -4695,7 +4726,7 @@ var SwarmValidationService = /** @class */ (function () {
|
|
|
4695
4726
|
var _b = __read(_a, 1), swarmName = _b[0];
|
|
4696
4727
|
return swarmName;
|
|
4697
4728
|
}, function (swarmName, source) {
|
|
4698
|
-
_this.loggerService.
|
|
4729
|
+
_this.loggerService.info("swarmValidationService validate", {
|
|
4699
4730
|
swarmName: swarmName,
|
|
4700
4731
|
source: source,
|
|
4701
4732
|
});
|
|
@@ -4730,7 +4761,7 @@ var ToolValidationService = /** @class */ (function () {
|
|
|
4730
4761
|
* @throws Will throw an error if the tool already exists.
|
|
4731
4762
|
*/
|
|
4732
4763
|
this.addTool = function (toolName, toolSchema) {
|
|
4733
|
-
_this.loggerService.
|
|
4764
|
+
_this.loggerService.info("toolValidationService addTool", {
|
|
4734
4765
|
toolName: toolName,
|
|
4735
4766
|
toolSchema: toolSchema,
|
|
4736
4767
|
});
|
|
@@ -4749,7 +4780,7 @@ var ToolValidationService = /** @class */ (function () {
|
|
|
4749
4780
|
var _b = __read(_a, 1), toolName = _b[0];
|
|
4750
4781
|
return toolName;
|
|
4751
4782
|
}, function (toolName, source) {
|
|
4752
|
-
_this.loggerService.
|
|
4783
|
+
_this.loggerService.info("toolValidationService validate", {
|
|
4753
4784
|
toolName: toolName,
|
|
4754
4785
|
source: source,
|
|
4755
4786
|
});
|
|
@@ -4776,7 +4807,7 @@ var EmbeddingSchemaService = /** @class */ (function () {
|
|
|
4776
4807
|
* @param {IAgentTool} value - The embedding to register.
|
|
4777
4808
|
*/
|
|
4778
4809
|
this.register = function (key, value) {
|
|
4779
|
-
_this.loggerService.
|
|
4810
|
+
_this.loggerService.info('embeddingSchemaService register');
|
|
4780
4811
|
_this.registry = _this.registry.register(key, value);
|
|
4781
4812
|
};
|
|
4782
4813
|
/**
|
|
@@ -4785,7 +4816,7 @@ var EmbeddingSchemaService = /** @class */ (function () {
|
|
|
4785
4816
|
* @returns {IAgentTool} The embedding associated with the given key.
|
|
4786
4817
|
*/
|
|
4787
4818
|
this.get = function (key) {
|
|
4788
|
-
_this.loggerService.
|
|
4819
|
+
_this.loggerService.info('embeddingSchemaService get', { key: key });
|
|
4789
4820
|
return _this.registry.get(key);
|
|
4790
4821
|
};
|
|
4791
4822
|
}
|
|
@@ -4806,7 +4837,7 @@ var StorageSchemaService = /** @class */ (function () {
|
|
|
4806
4837
|
* @param {IStorageSchema} value - The schema to register.
|
|
4807
4838
|
*/
|
|
4808
4839
|
this.register = function (key, value) {
|
|
4809
|
-
_this.loggerService.
|
|
4840
|
+
_this.loggerService.info("storageSchemaService register", { key: key });
|
|
4810
4841
|
_this.registry = _this.registry.register(key, value);
|
|
4811
4842
|
};
|
|
4812
4843
|
/**
|
|
@@ -4815,7 +4846,7 @@ var StorageSchemaService = /** @class */ (function () {
|
|
|
4815
4846
|
* @returns {IStorageSchema} The retrieved schema.
|
|
4816
4847
|
*/
|
|
4817
4848
|
this.get = function (key) {
|
|
4818
|
-
_this.loggerService.
|
|
4849
|
+
_this.loggerService.info("storageSchemaService get", { key: key });
|
|
4819
4850
|
return _this.registry.get(key);
|
|
4820
4851
|
};
|
|
4821
4852
|
}
|
|
@@ -5244,7 +5275,7 @@ var StorageConnectionService = /** @class */ (function () {
|
|
|
5244
5275
|
return __generator(this, function (_a) {
|
|
5245
5276
|
switch (_a.label) {
|
|
5246
5277
|
case 0:
|
|
5247
|
-
this.loggerService.
|
|
5278
|
+
this.loggerService.info("storageConnectionService take", {
|
|
5248
5279
|
search: search,
|
|
5249
5280
|
total: total,
|
|
5250
5281
|
score: score,
|
|
@@ -5268,7 +5299,7 @@ var StorageConnectionService = /** @class */ (function () {
|
|
|
5268
5299
|
return __generator(this, function (_a) {
|
|
5269
5300
|
switch (_a.label) {
|
|
5270
5301
|
case 0:
|
|
5271
|
-
this.loggerService.
|
|
5302
|
+
this.loggerService.info("storageConnectionService upsert", {
|
|
5272
5303
|
item: item,
|
|
5273
5304
|
});
|
|
5274
5305
|
storage = this.getStorage(this.methodContextService.context.clientId, this.methodContextService.context.storageName);
|
|
@@ -5290,7 +5321,7 @@ var StorageConnectionService = /** @class */ (function () {
|
|
|
5290
5321
|
return __generator(this, function (_a) {
|
|
5291
5322
|
switch (_a.label) {
|
|
5292
5323
|
case 0:
|
|
5293
|
-
this.loggerService.
|
|
5324
|
+
this.loggerService.info("storageConnectionService remove", {
|
|
5294
5325
|
itemId: itemId,
|
|
5295
5326
|
});
|
|
5296
5327
|
storage = this.getStorage(this.methodContextService.context.clientId, this.methodContextService.context.storageName);
|
|
@@ -5312,7 +5343,7 @@ var StorageConnectionService = /** @class */ (function () {
|
|
|
5312
5343
|
return __generator(this, function (_a) {
|
|
5313
5344
|
switch (_a.label) {
|
|
5314
5345
|
case 0:
|
|
5315
|
-
this.loggerService.
|
|
5346
|
+
this.loggerService.info("storageConnectionService get", {
|
|
5316
5347
|
itemId: itemId,
|
|
5317
5348
|
});
|
|
5318
5349
|
storage = this.getStorage(this.methodContextService.context.clientId, this.methodContextService.context.storageName);
|
|
@@ -5334,7 +5365,7 @@ var StorageConnectionService = /** @class */ (function () {
|
|
|
5334
5365
|
return __generator(this, function (_a) {
|
|
5335
5366
|
switch (_a.label) {
|
|
5336
5367
|
case 0:
|
|
5337
|
-
this.loggerService.
|
|
5368
|
+
this.loggerService.info("storageConnectionService list");
|
|
5338
5369
|
storage = this.getStorage(this.methodContextService.context.clientId, this.methodContextService.context.storageName);
|
|
5339
5370
|
return [4 /*yield*/, storage.waitForInit()];
|
|
5340
5371
|
case 1:
|
|
@@ -5353,7 +5384,7 @@ var StorageConnectionService = /** @class */ (function () {
|
|
|
5353
5384
|
return __generator(this, function (_a) {
|
|
5354
5385
|
switch (_a.label) {
|
|
5355
5386
|
case 0:
|
|
5356
|
-
this.loggerService.
|
|
5387
|
+
this.loggerService.info("storageConnectionService clear");
|
|
5357
5388
|
storage = this.getStorage(this.methodContextService.context.clientId, this.methodContextService.context.storageName);
|
|
5358
5389
|
return [4 /*yield*/, storage.waitForInit()];
|
|
5359
5390
|
case 1:
|
|
@@ -5372,7 +5403,7 @@ var StorageConnectionService = /** @class */ (function () {
|
|
|
5372
5403
|
return __generator(this, function (_a) {
|
|
5373
5404
|
switch (_a.label) {
|
|
5374
5405
|
case 0:
|
|
5375
|
-
this.loggerService.
|
|
5406
|
+
this.loggerService.info("storageConnectionService dispose");
|
|
5376
5407
|
key = "".concat(this.methodContextService.context.clientId, "-").concat(this.methodContextService.context.storageName);
|
|
5377
5408
|
if (!this.getStorage.has(key)) {
|
|
5378
5409
|
return [2 /*return*/];
|
|
@@ -5416,7 +5447,7 @@ var StoragePublicService = /** @class */ (function () {
|
|
|
5416
5447
|
return __generator(this, function (_a) {
|
|
5417
5448
|
switch (_a.label) {
|
|
5418
5449
|
case 0:
|
|
5419
|
-
this.loggerService.
|
|
5450
|
+
this.loggerService.info("storagePublicService take", {
|
|
5420
5451
|
methodName: methodName,
|
|
5421
5452
|
search: search,
|
|
5422
5453
|
total: total,
|
|
@@ -5453,7 +5484,7 @@ var StoragePublicService = /** @class */ (function () {
|
|
|
5453
5484
|
return __generator(this, function (_a) {
|
|
5454
5485
|
switch (_a.label) {
|
|
5455
5486
|
case 0:
|
|
5456
|
-
this.loggerService.
|
|
5487
|
+
this.loggerService.info("storagePublicService upsert", {
|
|
5457
5488
|
item: item,
|
|
5458
5489
|
clientId: clientId,
|
|
5459
5490
|
storageName: storageName,
|
|
@@ -5487,7 +5518,7 @@ var StoragePublicService = /** @class */ (function () {
|
|
|
5487
5518
|
return __generator(this, function (_a) {
|
|
5488
5519
|
switch (_a.label) {
|
|
5489
5520
|
case 0:
|
|
5490
|
-
this.loggerService.
|
|
5521
|
+
this.loggerService.info("storagePublicService remove", {
|
|
5491
5522
|
itemId: itemId,
|
|
5492
5523
|
clientId: clientId,
|
|
5493
5524
|
storageName: storageName,
|
|
@@ -5521,7 +5552,7 @@ var StoragePublicService = /** @class */ (function () {
|
|
|
5521
5552
|
return __generator(this, function (_a) {
|
|
5522
5553
|
switch (_a.label) {
|
|
5523
5554
|
case 0:
|
|
5524
|
-
this.loggerService.
|
|
5555
|
+
this.loggerService.info("storagePublicService get", {
|
|
5525
5556
|
methodName: methodName,
|
|
5526
5557
|
itemId: itemId,
|
|
5527
5558
|
clientId: clientId,
|
|
@@ -5556,7 +5587,7 @@ var StoragePublicService = /** @class */ (function () {
|
|
|
5556
5587
|
return __generator(this, function (_a) {
|
|
5557
5588
|
switch (_a.label) {
|
|
5558
5589
|
case 0:
|
|
5559
|
-
this.loggerService.
|
|
5590
|
+
this.loggerService.info("storagePublicService list", {
|
|
5560
5591
|
methodName: methodName,
|
|
5561
5592
|
clientId: clientId,
|
|
5562
5593
|
storageName: storageName,
|
|
@@ -5589,7 +5620,7 @@ var StoragePublicService = /** @class */ (function () {
|
|
|
5589
5620
|
return __generator(this, function (_a) {
|
|
5590
5621
|
switch (_a.label) {
|
|
5591
5622
|
case 0:
|
|
5592
|
-
this.loggerService.
|
|
5623
|
+
this.loggerService.info("storagePublicService clear", {
|
|
5593
5624
|
methodName: methodName,
|
|
5594
5625
|
clientId: clientId,
|
|
5595
5626
|
storageName: storageName,
|
|
@@ -5624,7 +5655,7 @@ var StoragePublicService = /** @class */ (function () {
|
|
|
5624
5655
|
return __generator(this, function (_a) {
|
|
5625
5656
|
switch (_a.label) {
|
|
5626
5657
|
case 0:
|
|
5627
|
-
this.loggerService.
|
|
5658
|
+
this.loggerService.info("storagePublicService dispose", {
|
|
5628
5659
|
clientId: clientId,
|
|
5629
5660
|
storageName: storageName,
|
|
5630
5661
|
});
|
|
@@ -5667,7 +5698,7 @@ var StorageValidationService = /** @class */ (function () {
|
|
|
5667
5698
|
* @throws {Error} If the storage already exists.
|
|
5668
5699
|
*/
|
|
5669
5700
|
this.addStorage = function (storageName, storageSchema) {
|
|
5670
|
-
_this.loggerService.
|
|
5701
|
+
_this.loggerService.info("storageValidationService addStorage", {
|
|
5671
5702
|
storageName: storageName,
|
|
5672
5703
|
storageSchema: storageSchema,
|
|
5673
5704
|
});
|
|
@@ -5686,7 +5717,7 @@ var StorageValidationService = /** @class */ (function () {
|
|
|
5686
5717
|
var _b = __read(_a, 1), storageName = _b[0];
|
|
5687
5718
|
return storageName;
|
|
5688
5719
|
}, function (storageName, source) {
|
|
5689
|
-
_this.loggerService.
|
|
5720
|
+
_this.loggerService.info("storageValidationService validate", {
|
|
5690
5721
|
storageName: storageName,
|
|
5691
5722
|
source: source,
|
|
5692
5723
|
});
|
|
@@ -5716,7 +5747,7 @@ var EmbeddingValidationService = /** @class */ (function () {
|
|
|
5716
5747
|
* @throws Will throw an error if the embedding already exists.
|
|
5717
5748
|
*/
|
|
5718
5749
|
this.addEmbedding = function (embeddingName, embeddingSchema) {
|
|
5719
|
-
_this.loggerService.
|
|
5750
|
+
_this.loggerService.info("embeddingValidationService addEmbedding", {
|
|
5720
5751
|
embeddingName: embeddingName,
|
|
5721
5752
|
embeddingSchema: embeddingSchema,
|
|
5722
5753
|
});
|
|
@@ -5735,7 +5766,7 @@ var EmbeddingValidationService = /** @class */ (function () {
|
|
|
5735
5766
|
var _b = __read(_a, 1), embeddingName = _b[0];
|
|
5736
5767
|
return embeddingName;
|
|
5737
5768
|
}, function (embeddingName, source) {
|
|
5738
|
-
_this.loggerService.
|
|
5769
|
+
_this.loggerService.info("embeddingValidationService validate", {
|
|
5739
5770
|
embeddingName: embeddingName,
|
|
5740
5771
|
source: source,
|
|
5741
5772
|
});
|
|
@@ -5762,7 +5793,7 @@ var StateSchemaService = /** @class */ (function () {
|
|
|
5762
5793
|
* @param {IStateSchema} value - The schema to register.
|
|
5763
5794
|
*/
|
|
5764
5795
|
this.register = function (key, value) {
|
|
5765
|
-
_this.loggerService.
|
|
5796
|
+
_this.loggerService.info("stateSchemaService register", { key: key });
|
|
5766
5797
|
_this.registry = _this.registry.register(key, value);
|
|
5767
5798
|
};
|
|
5768
5799
|
/**
|
|
@@ -5771,7 +5802,7 @@ var StateSchemaService = /** @class */ (function () {
|
|
|
5771
5802
|
* @returns {IStateSchema} The retrieved schema.
|
|
5772
5803
|
*/
|
|
5773
5804
|
this.get = function (key) {
|
|
5774
|
-
_this.loggerService.
|
|
5805
|
+
_this.loggerService.info("stateSchemaService get", { key: key });
|
|
5775
5806
|
return _this.registry.get(key);
|
|
5776
5807
|
};
|
|
5777
5808
|
}
|
|
@@ -6065,7 +6096,7 @@ var StateConnectionService = /** @class */ (function () {
|
|
|
6065
6096
|
return __generator(this, function (_a) {
|
|
6066
6097
|
switch (_a.label) {
|
|
6067
6098
|
case 0:
|
|
6068
|
-
this.loggerService.
|
|
6099
|
+
this.loggerService.info("stateConnectionService setState");
|
|
6069
6100
|
state = this.getStateRef(this.methodContextService.context.clientId, this.methodContextService.context.stateName);
|
|
6070
6101
|
return [4 /*yield*/, state.waitForInit()];
|
|
6071
6102
|
case 1:
|
|
@@ -6084,7 +6115,7 @@ var StateConnectionService = /** @class */ (function () {
|
|
|
6084
6115
|
return __generator(this, function (_a) {
|
|
6085
6116
|
switch (_a.label) {
|
|
6086
6117
|
case 0:
|
|
6087
|
-
this.loggerService.
|
|
6118
|
+
this.loggerService.info("stateConnectionService getState");
|
|
6088
6119
|
state = this.getStateRef(this.methodContextService.context.clientId, this.methodContextService.context.stateName);
|
|
6089
6120
|
return [4 /*yield*/, state.waitForInit()];
|
|
6090
6121
|
case 1:
|
|
@@ -6103,7 +6134,7 @@ var StateConnectionService = /** @class */ (function () {
|
|
|
6103
6134
|
return __generator(this, function (_a) {
|
|
6104
6135
|
switch (_a.label) {
|
|
6105
6136
|
case 0:
|
|
6106
|
-
this.loggerService.
|
|
6137
|
+
this.loggerService.info("stateConnectionService dispose");
|
|
6107
6138
|
key = "".concat(this.methodContextService.context.clientId, "-").concat(this.methodContextService.context.stateName);
|
|
6108
6139
|
if (!this.getStateRef.has(key)) {
|
|
6109
6140
|
return [2 /*return*/];
|
|
@@ -6145,7 +6176,7 @@ var StatePublicService = /** @class */ (function () {
|
|
|
6145
6176
|
return __generator(this, function (_a) {
|
|
6146
6177
|
switch (_a.label) {
|
|
6147
6178
|
case 0:
|
|
6148
|
-
this.loggerService.
|
|
6179
|
+
this.loggerService.info("statePublicService setState", {
|
|
6149
6180
|
methodName: methodName,
|
|
6150
6181
|
clientId: clientId,
|
|
6151
6182
|
stateName: stateName,
|
|
@@ -6180,7 +6211,7 @@ var StatePublicService = /** @class */ (function () {
|
|
|
6180
6211
|
return __generator(this, function (_a) {
|
|
6181
6212
|
switch (_a.label) {
|
|
6182
6213
|
case 0:
|
|
6183
|
-
this.loggerService.
|
|
6214
|
+
this.loggerService.info("statePublicService getState", {
|
|
6184
6215
|
clientId: clientId,
|
|
6185
6216
|
stateName: stateName,
|
|
6186
6217
|
});
|
|
@@ -6214,7 +6245,7 @@ var StatePublicService = /** @class */ (function () {
|
|
|
6214
6245
|
return __generator(this, function (_a) {
|
|
6215
6246
|
switch (_a.label) {
|
|
6216
6247
|
case 0:
|
|
6217
|
-
this.loggerService.
|
|
6248
|
+
this.loggerService.info("statePublicService dispose", {
|
|
6218
6249
|
methodName: methodName,
|
|
6219
6250
|
clientId: clientId,
|
|
6220
6251
|
stateName: stateName,
|
|
@@ -6260,7 +6291,7 @@ var BusService = /** @class */ (function () {
|
|
|
6260
6291
|
* @param {(event: T) => void} fn - The callback function to handle the event.
|
|
6261
6292
|
*/
|
|
6262
6293
|
this.subscribe = function (clientId, source, fn) {
|
|
6263
|
-
_this.loggerService.
|
|
6294
|
+
_this.loggerService.info("busService subscribe", {
|
|
6264
6295
|
clientId: clientId,
|
|
6265
6296
|
source: source,
|
|
6266
6297
|
});
|
|
@@ -6279,7 +6310,7 @@ var BusService = /** @class */ (function () {
|
|
|
6279
6310
|
* @returns {Subscription} The subscription object.
|
|
6280
6311
|
*/
|
|
6281
6312
|
this.once = function (clientId, source, filterFn, fn) {
|
|
6282
|
-
_this.loggerService.
|
|
6313
|
+
_this.loggerService.info("busService once", {
|
|
6283
6314
|
clientId: clientId,
|
|
6284
6315
|
source: source,
|
|
6285
6316
|
});
|
|
@@ -6327,7 +6358,7 @@ var BusService = /** @class */ (function () {
|
|
|
6327
6358
|
*/
|
|
6328
6359
|
this.dispose = function (clientId) {
|
|
6329
6360
|
var e_1, _a;
|
|
6330
|
-
_this.loggerService.
|
|
6361
|
+
_this.loggerService.info("busService dispose", {
|
|
6331
6362
|
clientId: clientId,
|
|
6332
6363
|
});
|
|
6333
6364
|
try {
|