@flutchai/flutch-sdk 0.5.0 → 0.6.0

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
@@ -359,8 +359,8 @@ exports.ENDPOINT_METADATA_KEY = void 0; var UI_ENDPOINT_CLASS_METADATA_KEY, UI_E
359
359
  var init_endpoint_decorators = __esm({
360
360
  "src/agent-ui/endpoint.decorators.ts"() {
361
361
  exports.ENDPOINT_METADATA_KEY = "graph:endpoints";
362
- UI_ENDPOINT_CLASS_METADATA_KEY = Symbol("ui_endpoint_class");
363
- UI_ENDPOINT_METHOD_METADATA_KEY = Symbol("ui_endpoint_methods");
362
+ UI_ENDPOINT_CLASS_METADATA_KEY = /* @__PURE__ */ Symbol("ui_endpoint_class");
363
+ UI_ENDPOINT_METHOD_METADATA_KEY = /* @__PURE__ */ Symbol("ui_endpoint_methods");
364
364
  }
365
365
  });
366
366
  exports.UIEndpointsDiscoveryService = void 0;
@@ -373,6 +373,9 @@ var init_ui_endpoints_discovery = __esm({
373
373
  this.metadataScanner = metadataScanner;
374
374
  this.endpointRegistry = endpointRegistry;
375
375
  }
376
+ discoveryService;
377
+ metadataScanner;
378
+ endpointRegistry;
376
379
  logger = new common.Logger(exports.UIEndpointsDiscoveryService.name);
377
380
  async onModuleInit() {
378
381
  await this.discoverUIEndpoints();
@@ -449,6 +452,8 @@ var init_ui_dispatch_controller = __esm({
449
452
  this.endpointRegistry = endpointRegistry;
450
453
  this.builderRegistry = builderRegistry;
451
454
  }
455
+ endpointRegistry;
456
+ builderRegistry;
452
457
  logger = new common.Logger(exports.UIDispatchController.name);
453
458
  async dispatchUIEndpoint(dto) {
454
459
  this.logger.debug(
@@ -723,8 +728,8 @@ function findCallbackMethod(target, handler) {
723
728
  var CALLBACK_METADATA_KEY, CALLBACK_CLASS_METADATA_KEY;
724
729
  var init_callback_decorators = __esm({
725
730
  "src/callbacks/callback.decorators.ts"() {
726
- CALLBACK_METADATA_KEY = Symbol("callbacks");
727
- CALLBACK_CLASS_METADATA_KEY = Symbol("callback_class");
731
+ CALLBACK_METADATA_KEY = /* @__PURE__ */ Symbol("callbacks");
732
+ CALLBACK_CLASS_METADATA_KEY = /* @__PURE__ */ Symbol("callback_class");
728
733
  }
729
734
  });
730
735
 
@@ -1514,6 +1519,10 @@ exports.UniversalGraphService = class UniversalGraphService {
1514
1519
  this.logger.error("GRAPH_ENGINE is not properly injected!");
1515
1520
  }
1516
1521
  }
1522
+ configService;
1523
+ builders;
1524
+ engine;
1525
+ endpointRegistry;
1517
1526
  logger = new common.Logger(exports.UniversalGraphService.name);
1518
1527
  /**
1519
1528
  * Returns graph types supported by the service
@@ -2027,6 +2036,8 @@ exports.GraphController = class GraphController {
2027
2036
  this.graphService = graphService;
2028
2037
  this.builderRegistry = builderRegistry;
2029
2038
  }
2039
+ graphService;
2040
+ builderRegistry;
2030
2041
  logger = new common.Logger(exports.GraphController.name);
2031
2042
  async healthCheck() {
2032
2043
  try {
@@ -2413,6 +2424,7 @@ var CallbackStore = class {
2413
2424
  this.redis = redis;
2414
2425
  this.isProduction = process.env.NODE_ENV === "production";
2415
2426
  }
2427
+ redis;
2416
2428
  isProduction;
2417
2429
  /**
2418
2430
  * Issues a new callback token and persists its payload.
@@ -2619,6 +2631,7 @@ exports.IdempotencyManager = class IdempotencyManager {
2619
2631
  constructor(redis) {
2620
2632
  this.redis = redis;
2621
2633
  }
2634
+ redis;
2622
2635
  logger = new common.Logger(exports.IdempotencyManager.name);
2623
2636
  defaultConfig = {
2624
2637
  ttlSeconds: 3600,
@@ -2869,6 +2882,14 @@ exports.SmartCallbackRouter = class SmartCallbackRouter {
2869
2882
  this.idempotencyManager = idempotencyManager;
2870
2883
  this.patchService = patchService;
2871
2884
  }
2885
+ registry;
2886
+ store;
2887
+ acl;
2888
+ auditor;
2889
+ metrics;
2890
+ rateLimiter;
2891
+ idempotencyManager;
2892
+ patchService;
2872
2893
  logger = new common.Logger(exports.SmartCallbackRouter.name);
2873
2894
  circuitBreakers = /* @__PURE__ */ new Map();
2874
2895
  defaultConfig = {
@@ -3128,6 +3149,8 @@ var UniversalCallbackService = class {
3128
3149
  this.store = store;
3129
3150
  this.router = router;
3130
3151
  }
3152
+ store;
3153
+ router;
3131
3154
  async handle(record, user, metadata) {
3132
3155
  try {
3133
3156
  const result = await this.router.route(record, user, metadata);
@@ -3919,6 +3942,7 @@ exports.CallbackRateLimiter = class CallbackRateLimiter {
3919
3942
  constructor(redis) {
3920
3943
  this.redis = redis;
3921
3944
  }
3945
+ redis;
3922
3946
  logger = new common.Logger(exports.CallbackRateLimiter.name);
3923
3947
  defaultConfig = {
3924
3948
  windowMs: 6e4,
@@ -4084,6 +4108,8 @@ exports.CallbackPatchService = class CallbackPatchService {
4084
4108
  this.telegram = telegram;
4085
4109
  this.web = web;
4086
4110
  }
4111
+ telegram;
4112
+ web;
4087
4113
  logger = new common.Logger(exports.CallbackPatchService.name);
4088
4114
  async apply(record, patch, context) {
4089
4115
  if (!patch) return;
@@ -4144,6 +4170,8 @@ exports.CallbackTokenGuard = class CallbackTokenGuard {
4144
4170
  this.store = store;
4145
4171
  this.acl = acl;
4146
4172
  }
4173
+ store;
4174
+ acl;
4147
4175
  logger = new common.Logger(exports.CallbackTokenGuard.name);
4148
4176
  async canActivate(context) {
4149
4177
  const request = context.switchToHttp().getRequest();
@@ -4201,6 +4229,7 @@ exports.CallbackController = class CallbackController {
4201
4229
  constructor(callbackService) {
4202
4230
  this.callbackService = callbackService;
4203
4231
  }
4232
+ callbackService;
4204
4233
  async handleCallback(req) {
4205
4234
  return this.callbackService.handle(req.callbackRecord, req.user);
4206
4235
  }
@@ -4742,6 +4771,7 @@ exports.GraphEngineFactory = class GraphEngineFactory {
4742
4771
  constructor(langgraph) {
4743
4772
  this.langgraph = langgraph;
4744
4773
  }
4774
+ langgraph;
4745
4775
  /**
4746
4776
  * Get engine for the specified type
4747
4777
  */
@@ -5399,6 +5429,8 @@ exports.LangGraphEngine = class LangGraphEngine {
5399
5429
  this.logger.error("EventProcessor is undefined/null!");
5400
5430
  }
5401
5431
  }
5432
+ eventProcessor;
5433
+ configService;
5402
5434
  logger = new common.Logger(exports.LangGraphEngine.name);
5403
5435
  /**
5404
5436
  * Deserialize input recursively
@@ -6375,6 +6407,7 @@ var McpToolFilter = class _McpToolFilter {
6375
6407
  this.mcpRuntimeUrl = mcpRuntimeUrl;
6376
6408
  this.mcpConverter = new McpConverter(this.mcpRuntimeUrl);
6377
6409
  }
6410
+ mcpRuntimeUrl;
6378
6411
  logger = new common.Logger(_McpToolFilter.name);
6379
6412
  mcpConverter;
6380
6413
  /**
@@ -6815,6 +6848,8 @@ var ModelInitializer = class _ModelInitializer {
6815
6848
  this.apiKeyResolver = apiKeyResolver;
6816
6849
  this.logger = logger2 || new common.Logger(_ModelInitializer.name);
6817
6850
  }
6851
+ configFetcher;
6852
+ apiKeyResolver;
6818
6853
  logger;
6819
6854
  // Cache for model configurations to avoid repeated API calls
6820
6855
  modelConfigCache = /* @__PURE__ */ new Map();
@@ -7708,6 +7743,7 @@ exports.StaticDiscovery = class StaticDiscovery {
7708
7743
  constructor(services) {
7709
7744
  this.services = services;
7710
7745
  }
7746
+ services;
7711
7747
  /**
7712
7748
  * Get list of services by category
7713
7749
  */
@@ -7900,6 +7936,7 @@ var FileTokenStore = class {
7900
7936
  constructor(filePath) {
7901
7937
  this.filePath = filePath;
7902
7938
  }
7939
+ filePath;
7903
7940
  async get(provider) {
7904
7941
  const data = this.readFile();
7905
7942
  return data[provider] ?? null;
@@ -7940,6 +7977,7 @@ var MongoTokenStore = class {
7940
7977
  this.db = db;
7941
7978
  this.collectionName = collectionName ?? DEFAULT_COLLECTION;
7942
7979
  }
7980
+ db;
7943
7981
  collectionName;
7944
7982
  initialized = false;
7945
7983
  async get(provider) {