@agentforge/core 0.16.80 → 0.16.82

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/index.cjs CHANGED
@@ -316,6 +316,8 @@ var MissingDescriptionError = class extends Error {
316
316
  this.fieldType = fieldType;
317
317
  this.name = "MissingDescriptionError";
318
318
  }
319
+ fieldPath;
320
+ fieldType;
319
321
  };
320
322
  function validateSchemaDescriptions(schema, fieldPath = []) {
321
323
  const def = schema._def;
@@ -606,6 +608,9 @@ var ToolBuilder = class _ToolBuilder {
606
608
  this._schema = _schema;
607
609
  this._invoke = _invoke;
608
610
  }
611
+ metadata;
612
+ _schema;
613
+ _invoke;
609
614
  name(name) {
610
615
  this.metadata.name = name;
611
616
  return this;
@@ -2929,6 +2934,8 @@ var LRUCache = class {
2929
2934
  this.maxSize = maxSize;
2930
2935
  this.evictionStrategy = evictionStrategy;
2931
2936
  }
2937
+ maxSize;
2938
+ evictionStrategy;
2932
2939
  cache = /* @__PURE__ */ new Map();
2933
2940
  get(key) {
2934
2941
  const entry = this.cache.get(key);
@@ -3077,6 +3084,8 @@ var TokenBucket = class {
3077
3084
  this.tokens = maxTokens;
3078
3085
  this.lastRefill = Date.now();
3079
3086
  }
3087
+ maxTokens;
3088
+ refillRate;
3080
3089
  tokens;
3081
3090
  lastRefill;
3082
3091
  tryConsume() {
@@ -3104,6 +3113,8 @@ var SlidingWindow = class {
3104
3113
  this.maxRequests = maxRequests;
3105
3114
  this.windowMs = windowMs;
3106
3115
  }
3116
+ maxRequests;
3117
+ windowMs;
3107
3118
  requests = [];
3108
3119
  tryConsume() {
3109
3120
  const now = Date.now();
@@ -3124,6 +3135,8 @@ var FixedWindow = class {
3124
3135
  this.windowMs = windowMs;
3125
3136
  this.windowStart = Date.now();
3126
3137
  }
3138
+ maxRequests;
3139
+ windowMs;
3127
3140
  count = 0;
3128
3141
  windowStart;
3129
3142
  tryConsume() {
@@ -3163,6 +3176,11 @@ var RateLimiterRegistry = class {
3163
3176
  this.onRateLimitExceeded = onRateLimitExceeded;
3164
3177
  this.onRateLimitReset = onRateLimitReset;
3165
3178
  }
3179
+ maxRequests;
3180
+ windowMs;
3181
+ strategy;
3182
+ onRateLimitExceeded;
3183
+ onRateLimitReset;
3166
3184
  limiters = /* @__PURE__ */ new Map();
3167
3185
  async execute(state, key, executor) {
3168
3186
  const limiter = this.getOrCreate(key);
@@ -3331,6 +3349,13 @@ var ConcurrencyController = class {
3331
3349
  this.onQueueFull = onQueueFull;
3332
3350
  this.queueTimeout = queueTimeout;
3333
3351
  }
3352
+ maxConcurrent;
3353
+ maxQueueSize;
3354
+ onQueued;
3355
+ onExecutionStart;
3356
+ onExecutionComplete;
3357
+ onQueueFull;
3358
+ queueTimeout;
3334
3359
  activeCount = 0;
3335
3360
  queue = [];
3336
3361
  async execute(state, priority, executor) {
@@ -4617,6 +4642,7 @@ var MockDatabaseConnection = class {
4617
4642
  constructor(config) {
4618
4643
  this.config = config;
4619
4644
  }
4645
+ config;
4620
4646
  closed = false;
4621
4647
  async query(_sql, _params) {
4622
4648
  if (this.closed) {
@@ -4659,6 +4685,7 @@ var DatabasePool = class {
4659
4685
  healthCheck: options.healthCheck
4660
4686
  });
4661
4687
  }
4688
+ options;
4662
4689
  pool;
4663
4690
  async acquire() {
4664
4691
  return this.pool.acquire();
@@ -4701,6 +4728,7 @@ var MockHttpClient = class {
4701
4728
  constructor(_config) {
4702
4729
  this._config = _config;
4703
4730
  }
4731
+ _config;
4704
4732
  closed = false;
4705
4733
  async get(url, config) {
4706
4734
  return this.request({ ...config, url, method: "GET" });
@@ -4759,6 +4787,7 @@ var HttpPool = class {
4759
4787
  healthCheck: options.healthCheck
4760
4788
  });
4761
4789
  }
4790
+ options;
4762
4791
  pool;
4763
4792
  async acquire() {
4764
4793
  return this.pool.acquire();
@@ -4793,6 +4822,7 @@ var MemoryManager = class {
4793
4822
  constructor(options) {
4794
4823
  this.options = options;
4795
4824
  }
4825
+ options;
4796
4826
  cleanupHandlers = /* @__PURE__ */ new Map();
4797
4827
  checkTimer;
4798
4828
  leakDetectionTimer;
@@ -4902,6 +4932,7 @@ var BatchProcessor = class {
4902
4932
  constructor(options) {
4903
4933
  this.options = options;
4904
4934
  }
4935
+ options;
4905
4936
  pending = [];
4906
4937
  timer;
4907
4938
  processing = false;
@@ -5008,6 +5039,7 @@ var CircuitBreaker = class {
5008
5039
  constructor(options) {
5009
5040
  this.options = options;
5010
5041
  }
5042
+ options;
5011
5043
  state = "closed";
5012
5044
  failures = 0;
5013
5045
  successes = 0;
@@ -5143,6 +5175,7 @@ var HealthChecker = class {
5143
5175
  constructor(options) {
5144
5176
  this.options = options;
5145
5177
  }
5178
+ options;
5146
5179
  checkTimer;
5147
5180
  lastReport;
5148
5181
  startTime = Date.now();
@@ -5489,6 +5522,7 @@ var AlertManager = class {
5489
5522
  constructor(options) {
5490
5523
  this.options = options;
5491
5524
  }
5525
+ options;
5492
5526
  lastAlertTime = /* @__PURE__ */ new Map();
5493
5527
  monitorTimer;
5494
5528
  running = false;
@@ -5563,6 +5597,7 @@ var AuditLogger = class {
5563
5597
  this.startCleanup();
5564
5598
  }
5565
5599
  }
5600
+ options;
5566
5601
  logs = [];
5567
5602
  cleanupTimer;
5568
5603
  async log(entry) {
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { z, ZodTypeAny, output, ZodType, ZodTypeDef } from 'zod';
1
+ import { z, ZodType, ZodTypeDef, ZodTypeAny, output } from 'zod';
2
2
  import * as _langchain_core_tools from '@langchain/core/tools';
3
3
  import { DynamicStructuredTool } from '@langchain/core/tools';
4
4
  import * as _langchain_langgraph from '@langchain/langgraph';
@@ -724,7 +724,7 @@ declare class ToolRegistry {
724
724
  on(event: RegistryEvent, handler: EventHandler): void;
725
725
  off(event: RegistryEvent, handler: EventHandler): void;
726
726
  private emit;
727
- toLangChainTools(): _langchain_core_tools.DynamicStructuredTool<_langchain_core_tools.ToolSchemaBase, any, any, any, string>[];
727
+ toLangChainTools(): _langchain_core_tools.DynamicStructuredTool<_langchain_core_tools.ToolSchemaBase, any, any, any, unknown, string>[];
728
728
  generatePrompt(options?: PromptOptions): string;
729
729
  }
730
730
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z, ZodTypeAny, output, ZodType, ZodTypeDef } from 'zod';
1
+ import { z, ZodType, ZodTypeDef, ZodTypeAny, output } from 'zod';
2
2
  import * as _langchain_core_tools from '@langchain/core/tools';
3
3
  import { DynamicStructuredTool } from '@langchain/core/tools';
4
4
  import * as _langchain_langgraph from '@langchain/langgraph';
@@ -724,7 +724,7 @@ declare class ToolRegistry {
724
724
  on(event: RegistryEvent, handler: EventHandler): void;
725
725
  off(event: RegistryEvent, handler: EventHandler): void;
726
726
  private emit;
727
- toLangChainTools(): _langchain_core_tools.DynamicStructuredTool<_langchain_core_tools.ToolSchemaBase, any, any, any, string>[];
727
+ toLangChainTools(): _langchain_core_tools.DynamicStructuredTool<_langchain_core_tools.ToolSchemaBase, any, any, any, unknown, string>[];
728
728
  generatePrompt(options?: PromptOptions): string;
729
729
  }
730
730
 
package/dist/index.js CHANGED
@@ -140,6 +140,8 @@ var MissingDescriptionError = class extends Error {
140
140
  this.fieldType = fieldType;
141
141
  this.name = "MissingDescriptionError";
142
142
  }
143
+ fieldPath;
144
+ fieldType;
143
145
  };
144
146
  function validateSchemaDescriptions(schema, fieldPath = []) {
145
147
  const def = schema._def;
@@ -430,6 +432,9 @@ var ToolBuilder = class _ToolBuilder {
430
432
  this._schema = _schema;
431
433
  this._invoke = _invoke;
432
434
  }
435
+ metadata;
436
+ _schema;
437
+ _invoke;
433
438
  name(name) {
434
439
  this.metadata.name = name;
435
440
  return this;
@@ -2753,6 +2758,8 @@ var LRUCache = class {
2753
2758
  this.maxSize = maxSize;
2754
2759
  this.evictionStrategy = evictionStrategy;
2755
2760
  }
2761
+ maxSize;
2762
+ evictionStrategy;
2756
2763
  cache = /* @__PURE__ */ new Map();
2757
2764
  get(key) {
2758
2765
  const entry = this.cache.get(key);
@@ -2901,6 +2908,8 @@ var TokenBucket = class {
2901
2908
  this.tokens = maxTokens;
2902
2909
  this.lastRefill = Date.now();
2903
2910
  }
2911
+ maxTokens;
2912
+ refillRate;
2904
2913
  tokens;
2905
2914
  lastRefill;
2906
2915
  tryConsume() {
@@ -2928,6 +2937,8 @@ var SlidingWindow = class {
2928
2937
  this.maxRequests = maxRequests;
2929
2938
  this.windowMs = windowMs;
2930
2939
  }
2940
+ maxRequests;
2941
+ windowMs;
2931
2942
  requests = [];
2932
2943
  tryConsume() {
2933
2944
  const now = Date.now();
@@ -2948,6 +2959,8 @@ var FixedWindow = class {
2948
2959
  this.windowMs = windowMs;
2949
2960
  this.windowStart = Date.now();
2950
2961
  }
2962
+ maxRequests;
2963
+ windowMs;
2951
2964
  count = 0;
2952
2965
  windowStart;
2953
2966
  tryConsume() {
@@ -2987,6 +3000,11 @@ var RateLimiterRegistry = class {
2987
3000
  this.onRateLimitExceeded = onRateLimitExceeded;
2988
3001
  this.onRateLimitReset = onRateLimitReset;
2989
3002
  }
3003
+ maxRequests;
3004
+ windowMs;
3005
+ strategy;
3006
+ onRateLimitExceeded;
3007
+ onRateLimitReset;
2990
3008
  limiters = /* @__PURE__ */ new Map();
2991
3009
  async execute(state, key, executor) {
2992
3010
  const limiter = this.getOrCreate(key);
@@ -3155,6 +3173,13 @@ var ConcurrencyController = class {
3155
3173
  this.onQueueFull = onQueueFull;
3156
3174
  this.queueTimeout = queueTimeout;
3157
3175
  }
3176
+ maxConcurrent;
3177
+ maxQueueSize;
3178
+ onQueued;
3179
+ onExecutionStart;
3180
+ onExecutionComplete;
3181
+ onQueueFull;
3182
+ queueTimeout;
3158
3183
  activeCount = 0;
3159
3184
  queue = [];
3160
3185
  async execute(state, priority, executor) {
@@ -4441,6 +4466,7 @@ var MockDatabaseConnection = class {
4441
4466
  constructor(config) {
4442
4467
  this.config = config;
4443
4468
  }
4469
+ config;
4444
4470
  closed = false;
4445
4471
  async query(_sql, _params) {
4446
4472
  if (this.closed) {
@@ -4483,6 +4509,7 @@ var DatabasePool = class {
4483
4509
  healthCheck: options.healthCheck
4484
4510
  });
4485
4511
  }
4512
+ options;
4486
4513
  pool;
4487
4514
  async acquire() {
4488
4515
  return this.pool.acquire();
@@ -4525,6 +4552,7 @@ var MockHttpClient = class {
4525
4552
  constructor(_config) {
4526
4553
  this._config = _config;
4527
4554
  }
4555
+ _config;
4528
4556
  closed = false;
4529
4557
  async get(url, config) {
4530
4558
  return this.request({ ...config, url, method: "GET" });
@@ -4583,6 +4611,7 @@ var HttpPool = class {
4583
4611
  healthCheck: options.healthCheck
4584
4612
  });
4585
4613
  }
4614
+ options;
4586
4615
  pool;
4587
4616
  async acquire() {
4588
4617
  return this.pool.acquire();
@@ -4617,6 +4646,7 @@ var MemoryManager = class {
4617
4646
  constructor(options) {
4618
4647
  this.options = options;
4619
4648
  }
4649
+ options;
4620
4650
  cleanupHandlers = /* @__PURE__ */ new Map();
4621
4651
  checkTimer;
4622
4652
  leakDetectionTimer;
@@ -4726,6 +4756,7 @@ var BatchProcessor = class {
4726
4756
  constructor(options) {
4727
4757
  this.options = options;
4728
4758
  }
4759
+ options;
4729
4760
  pending = [];
4730
4761
  timer;
4731
4762
  processing = false;
@@ -4832,6 +4863,7 @@ var CircuitBreaker = class {
4832
4863
  constructor(options) {
4833
4864
  this.options = options;
4834
4865
  }
4866
+ options;
4835
4867
  state = "closed";
4836
4868
  failures = 0;
4837
4869
  successes = 0;
@@ -4967,6 +4999,7 @@ var HealthChecker = class {
4967
4999
  constructor(options) {
4968
5000
  this.options = options;
4969
5001
  }
5002
+ options;
4970
5003
  checkTimer;
4971
5004
  lastReport;
4972
5005
  startTime = Date.now();
@@ -5313,6 +5346,7 @@ var AlertManager = class {
5313
5346
  constructor(options) {
5314
5347
  this.options = options;
5315
5348
  }
5349
+ options;
5316
5350
  lastAlertTime = /* @__PURE__ */ new Map();
5317
5351
  monitorTimer;
5318
5352
  running = false;
@@ -5387,6 +5421,7 @@ var AuditLogger = class {
5387
5421
  this.startCleanup();
5388
5422
  }
5389
5423
  }
5424
+ options;
5390
5425
  logs = [];
5391
5426
  cleanupTimer;
5392
5427
  async log(entry) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentforge/core",
3
- "version": "0.16.80",
3
+ "version": "0.16.82",
4
4
  "description": "Production-ready TypeScript agent framework built on LangGraph with orchestration, middleware, and typed abstractions.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",