agent-swarm-kit 1.0.80 → 1.0.81
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 +13 -13
- package/build/index.mjs +13 -13
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -463,8 +463,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
463
463
|
return __generator(this, function (_b) {
|
|
464
464
|
switch (_b.label) {
|
|
465
465
|
case 0:
|
|
466
|
-
GLOBAL_CONFIG.
|
|
467
|
-
swarm.loggerService.
|
|
466
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
467
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_WAIT_FOR_INIT, {
|
|
468
468
|
clientId: this.clientId,
|
|
469
469
|
agentName: agentName,
|
|
470
470
|
});
|
|
@@ -486,8 +486,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
486
486
|
*/
|
|
487
487
|
this.push = function (value, agentName) { return __awaiter(_this, void 0, void 0, function () {
|
|
488
488
|
return __generator(this, function (_a) {
|
|
489
|
-
GLOBAL_CONFIG.
|
|
490
|
-
swarm.loggerService.
|
|
489
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
490
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_PUSH, {
|
|
491
491
|
clientId: this.clientId,
|
|
492
492
|
agentName: agentName,
|
|
493
493
|
});
|
|
@@ -506,8 +506,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
506
506
|
*/
|
|
507
507
|
this.dispose = function (agentName) { return __awaiter(_this, void 0, void 0, function () {
|
|
508
508
|
return __generator(this, function (_a) {
|
|
509
|
-
GLOBAL_CONFIG.
|
|
510
|
-
swarm.loggerService.
|
|
509
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
510
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_DISPOSE, {
|
|
511
511
|
clientId: this.clientId,
|
|
512
512
|
agentName: agentName,
|
|
513
513
|
});
|
|
@@ -518,8 +518,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
518
518
|
return [2 /*return*/, Promise.resolve()];
|
|
519
519
|
});
|
|
520
520
|
}); };
|
|
521
|
-
GLOBAL_CONFIG.
|
|
522
|
-
swarm.loggerService.
|
|
521
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
522
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_CTOR, {
|
|
523
523
|
clientId: this.clientId,
|
|
524
524
|
});
|
|
525
525
|
if (callbacks.onInit) {
|
|
@@ -536,8 +536,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
536
536
|
return __generator(this, function (_g) {
|
|
537
537
|
switch (_g.label) {
|
|
538
538
|
case 0:
|
|
539
|
-
GLOBAL_CONFIG.
|
|
540
|
-
swarm.loggerService.
|
|
539
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
540
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_ITERATE_CONDITION, {
|
|
541
541
|
clientId: this.clientId,
|
|
542
542
|
agentName: agentName,
|
|
543
543
|
});
|
|
@@ -635,8 +635,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
635
635
|
return __generator(this, function (_g) {
|
|
636
636
|
switch (_g.label) {
|
|
637
637
|
case 0:
|
|
638
|
-
GLOBAL_CONFIG.
|
|
639
|
-
swarm.loggerService.
|
|
638
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
639
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_ITERATE, {
|
|
640
640
|
clientId: this.clientId,
|
|
641
641
|
agentName: agentName,
|
|
642
642
|
});
|
|
@@ -966,7 +966,7 @@ var CC_AGENT_SYSTEM_PROMPT = undefined;
|
|
|
966
966
|
var CC_STORAGE_SEARCH_SIMILARITY = 0.65;
|
|
967
967
|
var CC_STORAGE_SEARCH_POOL = 5;
|
|
968
968
|
var CC_LOGGER_ENABLE_INFO = false;
|
|
969
|
-
var CC_LOGGER_ENABLE_DEBUG =
|
|
969
|
+
var CC_LOGGER_ENABLE_DEBUG = false;
|
|
970
970
|
var CC_LOGGER_ENABLE_LOG = true;
|
|
971
971
|
var CC_NAME_TO_TITLE = nameToTitle;
|
|
972
972
|
var GLOBAL_CONFIG = {
|
package/build/index.mjs
CHANGED
|
@@ -461,8 +461,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
461
461
|
return __generator(this, function (_b) {
|
|
462
462
|
switch (_b.label) {
|
|
463
463
|
case 0:
|
|
464
|
-
GLOBAL_CONFIG.
|
|
465
|
-
swarm.loggerService.
|
|
464
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
465
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_WAIT_FOR_INIT, {
|
|
466
466
|
clientId: this.clientId,
|
|
467
467
|
agentName: agentName,
|
|
468
468
|
});
|
|
@@ -484,8 +484,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
484
484
|
*/
|
|
485
485
|
this.push = function (value, agentName) { return __awaiter(_this, void 0, void 0, function () {
|
|
486
486
|
return __generator(this, function (_a) {
|
|
487
|
-
GLOBAL_CONFIG.
|
|
488
|
-
swarm.loggerService.
|
|
487
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
488
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_PUSH, {
|
|
489
489
|
clientId: this.clientId,
|
|
490
490
|
agentName: agentName,
|
|
491
491
|
});
|
|
@@ -504,8 +504,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
504
504
|
*/
|
|
505
505
|
this.dispose = function (agentName) { return __awaiter(_this, void 0, void 0, function () {
|
|
506
506
|
return __generator(this, function (_a) {
|
|
507
|
-
GLOBAL_CONFIG.
|
|
508
|
-
swarm.loggerService.
|
|
507
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
508
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_DISPOSE, {
|
|
509
509
|
clientId: this.clientId,
|
|
510
510
|
agentName: agentName,
|
|
511
511
|
});
|
|
@@ -516,8 +516,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
516
516
|
return [2 /*return*/, Promise.resolve()];
|
|
517
517
|
});
|
|
518
518
|
}); };
|
|
519
|
-
GLOBAL_CONFIG.
|
|
520
|
-
swarm.loggerService.
|
|
519
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
520
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_CTOR, {
|
|
521
521
|
clientId: this.clientId,
|
|
522
522
|
});
|
|
523
523
|
if (callbacks.onInit) {
|
|
@@ -534,8 +534,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
534
534
|
return __generator(this, function (_g) {
|
|
535
535
|
switch (_g.label) {
|
|
536
536
|
case 0:
|
|
537
|
-
GLOBAL_CONFIG.
|
|
538
|
-
swarm.loggerService.
|
|
537
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
538
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_ITERATE_CONDITION, {
|
|
539
539
|
clientId: this.clientId,
|
|
540
540
|
agentName: agentName,
|
|
541
541
|
});
|
|
@@ -633,8 +633,8 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
633
633
|
return __generator(this, function (_g) {
|
|
634
634
|
switch (_g.label) {
|
|
635
635
|
case 0:
|
|
636
|
-
GLOBAL_CONFIG.
|
|
637
|
-
swarm.loggerService.
|
|
636
|
+
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
637
|
+
swarm.loggerService.debug(INSTANCE_METHOD_NAME_ITERATE, {
|
|
638
638
|
clientId: this.clientId,
|
|
639
639
|
agentName: agentName,
|
|
640
640
|
});
|
|
@@ -964,7 +964,7 @@ var CC_AGENT_SYSTEM_PROMPT = undefined;
|
|
|
964
964
|
var CC_STORAGE_SEARCH_SIMILARITY = 0.65;
|
|
965
965
|
var CC_STORAGE_SEARCH_POOL = 5;
|
|
966
966
|
var CC_LOGGER_ENABLE_INFO = false;
|
|
967
|
-
var CC_LOGGER_ENABLE_DEBUG =
|
|
967
|
+
var CC_LOGGER_ENABLE_DEBUG = false;
|
|
968
968
|
var CC_LOGGER_ENABLE_LOG = true;
|
|
969
969
|
var CC_NAME_TO_TITLE = nameToTitle;
|
|
970
970
|
var GLOBAL_CONFIG = {
|