agent-swarm-kit 1.0.65 → 1.0.66
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 +3 -0
- package/build/index.mjs +3 -0
- package/package.json +1 -1
- package/types.d.ts +5 -0
package/build/index.cjs
CHANGED
|
@@ -478,6 +478,9 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
478
478
|
if (callbacks.onInit) {
|
|
479
479
|
callbacks.onInit(clientId);
|
|
480
480
|
}
|
|
481
|
+
if (callbacks.onRef) {
|
|
482
|
+
callbacks.onRef(this);
|
|
483
|
+
}
|
|
481
484
|
if (callbacks.filterCondition) {
|
|
482
485
|
this.iterate = function (agentName) {
|
|
483
486
|
return __asyncGenerator(this, arguments, function () {
|
package/build/index.mjs
CHANGED
|
@@ -476,6 +476,9 @@ var HistoryInstance = /** @class */ (function () {
|
|
|
476
476
|
if (callbacks.onInit) {
|
|
477
477
|
callbacks.onInit(clientId);
|
|
478
478
|
}
|
|
479
|
+
if (callbacks.onRef) {
|
|
480
|
+
callbacks.onRef(this);
|
|
481
|
+
}
|
|
479
482
|
if (callbacks.filterCondition) {
|
|
480
483
|
this.iterate = function (agentName) {
|
|
481
484
|
return __asyncGenerator(this, arguments, function () {
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -436,6 +436,11 @@ interface IHistoryInstanceCallbacks {
|
|
|
436
436
|
* @param clientId - The client ID.
|
|
437
437
|
*/
|
|
438
438
|
onInit: (clientId: string) => void;
|
|
439
|
+
/**
|
|
440
|
+
* Callback to obtain history ref
|
|
441
|
+
* @param clientId - The client ID.
|
|
442
|
+
*/
|
|
443
|
+
onRef: (history: HistoryInstance) => void;
|
|
439
444
|
}
|
|
440
445
|
/**
|
|
441
446
|
* Interface for History Adapter
|