@dudousxd/nestjs-agent 1.1.2 → 1.2.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.
@@ -760,7 +760,7 @@ AgentDurableModule = _ts_decorate4([
760
760
  ], AgentDurableModule);
761
761
 
762
762
  // src/agent.module.ts
763
- import { AGENT_ACTOR_RESOLVER as AGENT_ACTOR_RESOLVER8, AGENT_APPROVAL_PORT, AGENT_DEPS_FACTORY as AGENT_DEPS_FACTORY6, AGENT_DURABLE_RUNNER as AGENT_DURABLE_RUNNER2, AGENT_MEMORY as AGENT_MEMORY3, AGENT_MODEL as AGENT_MODEL2, AGENT_OPTIONS as AGENT_OPTIONS4, AGENT_PROMPT_CONTRIBUTORS as AGENT_PROMPT_CONTRIBUTORS3, AGENT_QUOTA_STORE as AGENT_QUOTA_STORE3, AGENT_REGISTRY as AGENT_REGISTRY5, AGENT_ROLES_POLICY as AGENT_ROLES_POLICY2, AGENT_RUNNER as AGENT_RUNNER2, AGENT_SINK as AGENT_SINK3, AGENT_SKILLS as AGENT_SKILLS3, AGENT_SKILL_SOURCES as AGENT_SKILL_SOURCES2, AGENT_STORE as AGENT_STORE6, AGENT_TOOL_REGISTRY as AGENT_TOOL_REGISTRY3, AgentRegistry as AgentRegistry5, DefaultRolesPolicy, ToolRegistry as ToolRegistry3 } from "@dudousxd/nestjs-agent-core";
763
+ import { AGENT_ACTOR_RESOLVER as AGENT_ACTOR_RESOLVER9, AGENT_APPROVAL_PORT, AGENT_DEPS_FACTORY as AGENT_DEPS_FACTORY7, AGENT_DURABLE_RUNNER as AGENT_DURABLE_RUNNER2, AGENT_MEMORY as AGENT_MEMORY3, AGENT_MODEL as AGENT_MODEL2, AGENT_OPTIONS as AGENT_OPTIONS4, AGENT_PROMPT_CONTRIBUTORS as AGENT_PROMPT_CONTRIBUTORS3, AGENT_QUOTA_STORE as AGENT_QUOTA_STORE3, AGENT_REGISTRY as AGENT_REGISTRY6, AGENT_ROLES_POLICY as AGENT_ROLES_POLICY2, AGENT_RUNNER as AGENT_RUNNER2, AGENT_SINK as AGENT_SINK3, AGENT_SKILLS as AGENT_SKILLS3, AGENT_SKILL_SOURCES as AGENT_SKILL_SOURCES2, AGENT_STORE as AGENT_STORE6, AGENT_TOOL_REGISTRY as AGENT_TOOL_REGISTRY3, AgentRegistry as AgentRegistry6, DefaultRolesPolicy, ToolRegistry as ToolRegistry3 } from "@dudousxd/nestjs-agent-core";
764
764
  import { Global as Global2, Module as Module2 } from "@nestjs/common";
765
765
  import { DiscoveryModule, RouterModule } from "@nestjs/core";
766
766
 
@@ -2611,9 +2611,90 @@ ToolCallController = _ts_decorate15([
2611
2611
  ])
2612
2612
  ], ToolCallController);
2613
2613
 
2614
+ // src/controller/tools.controller.ts
2615
+ import { AGENT_ACTOR_RESOLVER as AGENT_ACTOR_RESOLVER8, AGENT_DEPS_FACTORY as AGENT_DEPS_FACTORY5, AGENT_REGISTRY as AGENT_REGISTRY3, AgentRegistry as AgentRegistry4 } from "@dudousxd/nestjs-agent-core";
2616
+ import { Controller as Controller9, Get as Get8, Inject as Inject14, NotFoundException as NotFoundException3, Query as Query3, Req as Req8 } from "@nestjs/common";
2617
+ function _ts_decorate16(decorators, target, key, desc) {
2618
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2619
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
2620
+ r = Reflect.decorate(decorators, target, key, desc);
2621
+ } else {
2622
+ for (var i = decorators.length - 1; i >= 0; i--) {
2623
+ if (d = decorators[i]) {
2624
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2625
+ }
2626
+ }
2627
+ }
2628
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
2629
+ }
2630
+ __name(_ts_decorate16, "_ts_decorate");
2631
+ function _ts_metadata15(metadataKey, metadataValue) {
2632
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
2633
+ return Reflect.metadata(metadataKey, metadataValue);
2634
+ }
2635
+ }
2636
+ __name(_ts_metadata15, "_ts_metadata");
2637
+ function _ts_param14(paramIndex, decorator) {
2638
+ return function(target, key) {
2639
+ decorator(target, key, paramIndex);
2640
+ };
2641
+ }
2642
+ __name(_ts_param14, "_ts_param");
2643
+ var ToolsController = class {
2644
+ static {
2645
+ __name(this, "ToolsController");
2646
+ }
2647
+ actorResolver;
2648
+ depsFactory;
2649
+ agents;
2650
+ constructor(actorResolver, depsFactory, agents) {
2651
+ this.actorResolver = actorResolver;
2652
+ this.depsFactory = depsFactory;
2653
+ this.agents = agents;
2654
+ }
2655
+ async list(req, agent) {
2656
+ if (agent !== void 0 && this.agents.get(agent) === void 0) {
2657
+ throw new NotFoundException3(`No agent named "${agent}"`);
2658
+ }
2659
+ const actor = await this.actorResolver.resolve(req);
2660
+ const deps = this.depsFactory.forAgent(agent);
2661
+ const specs = await deps.registry.visibleSpecs(actor, deps.rolesPolicy, deps.toolAllowList);
2662
+ return specs.map((spec) => ({
2663
+ name: spec.name,
2664
+ kind: spec.kind,
2665
+ ...spec.presentation !== void 0 ? {
2666
+ presentation: spec.presentation
2667
+ } : {}
2668
+ }));
2669
+ }
2670
+ };
2671
+ _ts_decorate16([
2672
+ Get8(),
2673
+ _ts_param14(0, Req8()),
2674
+ _ts_param14(1, Query3("agent")),
2675
+ _ts_metadata15("design:type", Function),
2676
+ _ts_metadata15("design:paramtypes", [
2677
+ typeof Request === "undefined" ? Object : Request,
2678
+ String
2679
+ ]),
2680
+ _ts_metadata15("design:returntype", Promise)
2681
+ ], ToolsController.prototype, "list", null);
2682
+ ToolsController = _ts_decorate16([
2683
+ Controller9("tools"),
2684
+ _ts_param14(0, Inject14(AGENT_ACTOR_RESOLVER8)),
2685
+ _ts_param14(1, Inject14(AGENT_DEPS_FACTORY5)),
2686
+ _ts_param14(2, Inject14(AGENT_REGISTRY3)),
2687
+ _ts_metadata15("design:type", Function),
2688
+ _ts_metadata15("design:paramtypes", [
2689
+ typeof ActorResolver === "undefined" ? Object : ActorResolver,
2690
+ typeof AgentDepsFactory === "undefined" ? Object : AgentDepsFactory,
2691
+ typeof AgentRegistry4 === "undefined" ? Object : AgentRegistry4
2692
+ ])
2693
+ ], ToolsController);
2694
+
2614
2695
  // src/discovery/agent-discovery.service.ts
2615
- import { AGENT_PROMPT_CONTRIBUTORS as AGENT_PROMPT_CONTRIBUTORS2, AGENT_REGISTRY as AGENT_REGISTRY3, AgentRegistry as AgentRegistry4 } from "@dudousxd/nestjs-agent-core";
2616
- import { Inject as Inject14, Injectable as Injectable7, Logger as Logger2 } from "@nestjs/common";
2696
+ import { AGENT_PROMPT_CONTRIBUTORS as AGENT_PROMPT_CONTRIBUTORS2, AGENT_REGISTRY as AGENT_REGISTRY4, AgentRegistry as AgentRegistry5 } from "@dudousxd/nestjs-agent-core";
2697
+ import { Inject as Inject15, Injectable as Injectable7, Logger as Logger2 } from "@nestjs/common";
2617
2698
  import { DiscoveryService, MetadataScanner } from "@nestjs/core";
2618
2699
 
2619
2700
  // src/decorator/agent.decorator.ts
@@ -2630,7 +2711,7 @@ var SYSTEM_PROMPT_METADATA = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent:
2630
2711
  var SYSTEM_PROMPT_CONTRIBUTOR_METADATA = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent:system-prompt-contributor");
2631
2712
 
2632
2713
  // src/discovery/agent-discovery.service.ts
2633
- function _ts_decorate16(decorators, target, key, desc) {
2714
+ function _ts_decorate17(decorators, target, key, desc) {
2634
2715
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2635
2716
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
2636
2717
  r = Reflect.decorate(decorators, target, key, desc);
@@ -2643,19 +2724,19 @@ function _ts_decorate16(decorators, target, key, desc) {
2643
2724
  }
2644
2725
  return c > 3 && r && Object.defineProperty(target, key, r), r;
2645
2726
  }
2646
- __name(_ts_decorate16, "_ts_decorate");
2647
- function _ts_metadata15(metadataKey, metadataValue) {
2727
+ __name(_ts_decorate17, "_ts_decorate");
2728
+ function _ts_metadata16(metadataKey, metadataValue) {
2648
2729
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
2649
2730
  return Reflect.metadata(metadataKey, metadataValue);
2650
2731
  }
2651
2732
  }
2652
- __name(_ts_metadata15, "_ts_metadata");
2653
- function _ts_param14(paramIndex, decorator) {
2733
+ __name(_ts_metadata16, "_ts_metadata");
2734
+ function _ts_param15(paramIndex, decorator) {
2654
2735
  return function(target, key) {
2655
2736
  decorator(target, key, paramIndex);
2656
2737
  };
2657
2738
  }
2658
- __name(_ts_param14, "_ts_param");
2739
+ __name(_ts_param15, "_ts_param");
2659
2740
  var AgentDiscoveryService = class _AgentDiscoveryService {
2660
2741
  static {
2661
2742
  __name(this, "AgentDiscoveryService");
@@ -2782,22 +2863,22 @@ var AgentDiscoveryService = class _AgentDiscoveryService {
2782
2863
  return (ctx) => candidate.call(instance, ctx);
2783
2864
  }
2784
2865
  };
2785
- AgentDiscoveryService = _ts_decorate16([
2866
+ AgentDiscoveryService = _ts_decorate17([
2786
2867
  Injectable7(),
2787
- _ts_param14(2, Inject14(AGENT_REGISTRY3)),
2788
- _ts_param14(3, Inject14(AGENT_PROMPT_CONTRIBUTORS2)),
2789
- _ts_metadata15("design:type", Function),
2790
- _ts_metadata15("design:paramtypes", [
2868
+ _ts_param15(2, Inject15(AGENT_REGISTRY4)),
2869
+ _ts_param15(3, Inject15(AGENT_PROMPT_CONTRIBUTORS2)),
2870
+ _ts_metadata16("design:type", Function),
2871
+ _ts_metadata16("design:paramtypes", [
2791
2872
  typeof DiscoveryService === "undefined" ? Object : DiscoveryService,
2792
2873
  typeof MetadataScanner === "undefined" ? Object : MetadataScanner,
2793
- typeof AgentRegistry4 === "undefined" ? Object : AgentRegistry4,
2874
+ typeof AgentRegistry5 === "undefined" ? Object : AgentRegistry5,
2794
2875
  Array
2795
2876
  ])
2796
2877
  ], AgentDiscoveryService);
2797
2878
 
2798
2879
  // src/discovery/ai-tool-discovery.service.ts
2799
- import { AGENT_OPTIONS as AGENT_OPTIONS3, AGENT_REGISTRY as AGENT_REGISTRY4, AGENT_TOOL_REGISTRY as AGENT_TOOL_REGISTRY2, normalizeDelegation as normalizeDelegation2 } from "@dudousxd/nestjs-agent-core";
2800
- import { Inject as Inject15, Injectable as Injectable8, Logger as Logger3 } from "@nestjs/common";
2880
+ import { AGENT_OPTIONS as AGENT_OPTIONS3, AGENT_REGISTRY as AGENT_REGISTRY5, AGENT_TOOL_REGISTRY as AGENT_TOOL_REGISTRY2, normalizeDelegation as normalizeDelegation2 } from "@dudousxd/nestjs-agent-core";
2881
+ import { Inject as Inject16, Injectable as Injectable8, Logger as Logger3 } from "@nestjs/common";
2801
2882
  import { DiscoveryService as DiscoveryService2 } from "@nestjs/core";
2802
2883
  import { z } from "zod";
2803
2884
 
@@ -2817,7 +2898,7 @@ function isBrandedFunctionalTool(value) {
2817
2898
  __name(isBrandedFunctionalTool, "isBrandedFunctionalTool");
2818
2899
 
2819
2900
  // src/discovery/ai-tool-discovery.service.ts
2820
- function _ts_decorate17(decorators, target, key, desc) {
2901
+ function _ts_decorate18(decorators, target, key, desc) {
2821
2902
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2822
2903
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
2823
2904
  r = Reflect.decorate(decorators, target, key, desc);
@@ -2830,19 +2911,19 @@ function _ts_decorate17(decorators, target, key, desc) {
2830
2911
  }
2831
2912
  return c > 3 && r && Object.defineProperty(target, key, r), r;
2832
2913
  }
2833
- __name(_ts_decorate17, "_ts_decorate");
2834
- function _ts_metadata16(metadataKey, metadataValue) {
2914
+ __name(_ts_decorate18, "_ts_decorate");
2915
+ function _ts_metadata17(metadataKey, metadataValue) {
2835
2916
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
2836
2917
  return Reflect.metadata(metadataKey, metadataValue);
2837
2918
  }
2838
2919
  }
2839
- __name(_ts_metadata16, "_ts_metadata");
2840
- function _ts_param15(paramIndex, decorator) {
2920
+ __name(_ts_metadata17, "_ts_metadata");
2921
+ function _ts_param16(paramIndex, decorator) {
2841
2922
  return function(target, key) {
2842
2923
  decorator(target, key, paramIndex);
2843
2924
  };
2844
2925
  }
2845
- __name(_ts_param15, "_ts_param");
2926
+ __name(_ts_param16, "_ts_param");
2846
2927
  var AiToolDiscoveryService = class _AiToolDiscoveryService {
2847
2928
  static {
2848
2929
  __name(this, "AiToolDiscoveryService");
@@ -2896,6 +2977,9 @@ var AiToolDiscoveryService = class _AiToolDiscoveryService {
2896
2977
  } : {},
2897
2978
  ...meta.enabled !== void 0 ? {
2898
2979
  enabled: meta.enabled
2980
+ } : {},
2981
+ ...meta.presentation !== void 0 ? {
2982
+ presentation: meta.presentation
2899
2983
  } : {}
2900
2984
  }, {
2901
2985
  execute: /* @__PURE__ */ __name((input, ctx) => instance.execute(input, ctx), "execute"),
@@ -2969,13 +3053,13 @@ var AiToolDiscoveryService = class _AiToolDiscoveryService {
2969
3053
  return true;
2970
3054
  }
2971
3055
  };
2972
- AiToolDiscoveryService = _ts_decorate17([
3056
+ AiToolDiscoveryService = _ts_decorate18([
2973
3057
  Injectable8(),
2974
- _ts_param15(1, Inject15(AGENT_TOOL_REGISTRY2)),
2975
- _ts_param15(2, Inject15(AGENT_REGISTRY4)),
2976
- _ts_param15(3, Inject15(AGENT_OPTIONS3)),
2977
- _ts_metadata16("design:type", Function),
2978
- _ts_metadata16("design:paramtypes", [
3058
+ _ts_param16(1, Inject16(AGENT_TOOL_REGISTRY2)),
3059
+ _ts_param16(2, Inject16(AGENT_REGISTRY5)),
3060
+ _ts_param16(3, Inject16(AGENT_OPTIONS3)),
3061
+ _ts_metadata17("design:type", Function),
3062
+ _ts_metadata17("design:paramtypes", [
2979
3063
  typeof DiscoveryService2 === "undefined" ? Object : DiscoveryService2,
2980
3064
  typeof ToolRegistry === "undefined" ? Object : ToolRegistry,
2981
3065
  typeof AgentRegistry === "undefined" ? Object : AgentRegistry,
@@ -2985,7 +3069,7 @@ AiToolDiscoveryService = _ts_decorate17([
2985
3069
 
2986
3070
  // src/discovery/skill-discovery.service.ts
2987
3071
  import { AGENT_SKILL_SOURCES } from "@dudousxd/nestjs-agent-core";
2988
- import { Inject as Inject16, Injectable as Injectable9, Logger as Logger4 } from "@nestjs/common";
3072
+ import { Inject as Inject17, Injectable as Injectable9, Logger as Logger4 } from "@nestjs/common";
2989
3073
  import { DiscoveryService as DiscoveryService3 } from "@nestjs/core";
2990
3074
 
2991
3075
  // src/decorator/skill.decorator.ts
@@ -3002,7 +3086,7 @@ function skillScope(options) {
3002
3086
  __name(skillScope, "skillScope");
3003
3087
 
3004
3088
  // src/discovery/skill-discovery.service.ts
3005
- function _ts_decorate18(decorators, target, key, desc) {
3089
+ function _ts_decorate19(decorators, target, key, desc) {
3006
3090
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3007
3091
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
3008
3092
  r = Reflect.decorate(decorators, target, key, desc);
@@ -3015,19 +3099,19 @@ function _ts_decorate18(decorators, target, key, desc) {
3015
3099
  }
3016
3100
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3017
3101
  }
3018
- __name(_ts_decorate18, "_ts_decorate");
3019
- function _ts_metadata17(metadataKey, metadataValue) {
3102
+ __name(_ts_decorate19, "_ts_decorate");
3103
+ function _ts_metadata18(metadataKey, metadataValue) {
3020
3104
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
3021
3105
  return Reflect.metadata(metadataKey, metadataValue);
3022
3106
  }
3023
3107
  }
3024
- __name(_ts_metadata17, "_ts_metadata");
3025
- function _ts_param16(paramIndex, decorator) {
3108
+ __name(_ts_metadata18, "_ts_metadata");
3109
+ function _ts_param17(paramIndex, decorator) {
3026
3110
  return function(target, key) {
3027
3111
  decorator(target, key, paramIndex);
3028
3112
  };
3029
3113
  }
3030
- __name(_ts_param16, "_ts_param");
3114
+ __name(_ts_param17, "_ts_param");
3031
3115
  var SkillDiscoveryService = class _SkillDiscoveryService {
3032
3116
  static {
3033
3117
  __name(this, "SkillDiscoveryService");
@@ -3071,11 +3155,11 @@ var SkillDiscoveryService = class _SkillDiscoveryService {
3071
3155
  return flat === void 0 ? void 0 : () => flat;
3072
3156
  }
3073
3157
  };
3074
- SkillDiscoveryService = _ts_decorate18([
3158
+ SkillDiscoveryService = _ts_decorate19([
3075
3159
  Injectable9(),
3076
- _ts_param16(1, Inject16(AGENT_SKILL_SOURCES)),
3077
- _ts_metadata17("design:type", Function),
3078
- _ts_metadata17("design:paramtypes", [
3160
+ _ts_param17(1, Inject17(AGENT_SKILL_SOURCES)),
3161
+ _ts_metadata18("design:type", Function),
3162
+ _ts_metadata18("design:paramtypes", [
3079
3163
  typeof DiscoveryService3 === "undefined" ? Object : DiscoveryService3,
3080
3164
  Array
3081
3165
  ])
@@ -3105,9 +3189,9 @@ var LedgerQuotaStore = class {
3105
3189
  };
3106
3190
 
3107
3191
  // src/runner/inline-agent-runner.ts
3108
- import { AGENT_DEPS_FACTORY as AGENT_DEPS_FACTORY5, AGENT_STORE as AGENT_STORE5, RunCancelledError as RunCancelledError2, agentFailureCode as agentFailureCode2, encodeStreamEvent as encodeStreamEvent2, publishAgentRunFailed as publishAgentRunFailed2, runAgentLoop as runAgentLoop2, settleAll as settleAll2, settleUnsettledDelegation as settleUnsettledDelegation2 } from "@dudousxd/nestjs-agent-core";
3109
- import { Inject as Inject17, Injectable as Injectable10, Logger as Logger5 } from "@nestjs/common";
3110
- function _ts_decorate19(decorators, target, key, desc) {
3192
+ import { AGENT_DEPS_FACTORY as AGENT_DEPS_FACTORY6, AGENT_STORE as AGENT_STORE5, RunCancelledError as RunCancelledError2, agentFailureCode as agentFailureCode2, encodeStreamEvent as encodeStreamEvent2, publishAgentRunFailed as publishAgentRunFailed2, runAgentLoop as runAgentLoop2, settleAll as settleAll2, settleUnsettledDelegation as settleUnsettledDelegation2 } from "@dudousxd/nestjs-agent-core";
3193
+ import { Inject as Inject18, Injectable as Injectable10, Logger as Logger5 } from "@nestjs/common";
3194
+ function _ts_decorate20(decorators, target, key, desc) {
3111
3195
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3112
3196
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
3113
3197
  r = Reflect.decorate(decorators, target, key, desc);
@@ -3120,19 +3204,19 @@ function _ts_decorate19(decorators, target, key, desc) {
3120
3204
  }
3121
3205
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3122
3206
  }
3123
- __name(_ts_decorate19, "_ts_decorate");
3124
- function _ts_metadata18(metadataKey, metadataValue) {
3207
+ __name(_ts_decorate20, "_ts_decorate");
3208
+ function _ts_metadata19(metadataKey, metadataValue) {
3125
3209
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
3126
3210
  return Reflect.metadata(metadataKey, metadataValue);
3127
3211
  }
3128
3212
  }
3129
- __name(_ts_metadata18, "_ts_metadata");
3130
- function _ts_param17(paramIndex, decorator) {
3213
+ __name(_ts_metadata19, "_ts_metadata");
3214
+ function _ts_param18(paramIndex, decorator) {
3131
3215
  return function(target, key) {
3132
3216
  decorator(target, key, paramIndex);
3133
3217
  };
3134
3218
  }
3135
- __name(_ts_param17, "_ts_param");
3219
+ __name(_ts_param18, "_ts_param");
3136
3220
  var InlineAgentRunner = class _InlineAgentRunner {
3137
3221
  static {
3138
3222
  __name(this, "InlineAgentRunner");
@@ -3483,12 +3567,12 @@ var InlineAgentRunner = class _InlineAgentRunner {
3483
3567
  }
3484
3568
  }
3485
3569
  };
3486
- InlineAgentRunner = _ts_decorate19([
3570
+ InlineAgentRunner = _ts_decorate20([
3487
3571
  Injectable10(),
3488
- _ts_param17(0, Inject17(AGENT_DEPS_FACTORY5)),
3489
- _ts_param17(1, Inject17(AGENT_STORE5)),
3490
- _ts_metadata18("design:type", Function),
3491
- _ts_metadata18("design:paramtypes", [
3572
+ _ts_param18(0, Inject18(AGENT_DEPS_FACTORY6)),
3573
+ _ts_param18(1, Inject18(AGENT_STORE5)),
3574
+ _ts_metadata19("design:type", Function),
3575
+ _ts_metadata19("design:paramtypes", [
3492
3576
  typeof AgentDepsFactory === "undefined" ? Object : AgentDepsFactory,
3493
3577
  typeof AgentStore === "undefined" ? Object : AgentStore
3494
3578
  ])
@@ -3533,7 +3617,7 @@ function resolveSkillsConfig(options, declared) {
3533
3617
  __name(resolveSkillsConfig, "resolveSkillsConfig");
3534
3618
 
3535
3619
  // src/agent.module.ts
3536
- function _ts_decorate20(decorators, target, key, desc) {
3620
+ function _ts_decorate21(decorators, target, key, desc) {
3537
3621
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3538
3622
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
3539
3623
  r = Reflect.decorate(decorators, target, key, desc);
@@ -3546,7 +3630,7 @@ function _ts_decorate20(decorators, target, key, desc) {
3546
3630
  }
3547
3631
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3548
3632
  }
3549
- __name(_ts_decorate20, "_ts_decorate");
3633
+ __name(_ts_decorate21, "_ts_decorate");
3550
3634
  var DEFAULT_PATH = "agent";
3551
3635
  function sharedProviders(durable, includeStore) {
3552
3636
  const providers = [
@@ -3556,8 +3640,8 @@ function sharedProviders(durable, includeStore) {
3556
3640
  },
3557
3641
  // Starts empty; AgentDiscoveryService populates it from `@Agent`-decorated providers at boot.
3558
3642
  {
3559
- provide: AGENT_REGISTRY5,
3560
- useFactory: /* @__PURE__ */ __name(() => new AgentRegistry5(), "useFactory")
3643
+ provide: AGENT_REGISTRY6,
3644
+ useFactory: /* @__PURE__ */ __name(() => new AgentRegistry6(), "useFactory")
3561
3645
  },
3562
3646
  // A shared, mutable list AgentDiscoveryService fills with `@SystemPromptContributor()` methods.
3563
3647
  {
@@ -3605,7 +3689,7 @@ function sharedProviders(durable, includeStore) {
3605
3689
  ]
3606
3690
  },
3607
3691
  {
3608
- provide: AGENT_ACTOR_RESOLVER8,
3692
+ provide: AGENT_ACTOR_RESOLVER9,
3609
3693
  useFactory: /* @__PURE__ */ __name((options) => options.actorResolver, "useFactory"),
3610
3694
  inject: [
3611
3695
  AGENT_OPTIONS4
@@ -3631,7 +3715,7 @@ function sharedProviders(durable, includeStore) {
3631
3715
  },
3632
3716
  AgentDepsFactory2,
3633
3717
  {
3634
- provide: AGENT_DEPS_FACTORY6,
3718
+ provide: AGENT_DEPS_FACTORY7,
3635
3719
  useExisting: AgentDepsFactory2
3636
3720
  },
3637
3721
  // Populates the registry + contributors (onModuleInit) BEFORE AiToolDiscoveryService synthesizes
@@ -3687,10 +3771,10 @@ function exportsFor(includeStore) {
3687
3771
  return [
3688
3772
  AGENT_OPTIONS4,
3689
3773
  AGENT_TOOL_REGISTRY3,
3690
- AGENT_REGISTRY5,
3774
+ AGENT_REGISTRY6,
3691
3775
  AGENT_SINK3,
3692
3776
  AGENT_ROLES_POLICY2,
3693
- AGENT_ACTOR_RESOLVER8,
3777
+ AGENT_ACTOR_RESOLVER9,
3694
3778
  AGENT_MODEL2,
3695
3779
  ...includeStore ? [
3696
3780
  AGENT_STORE6
@@ -3699,7 +3783,7 @@ function exportsFor(includeStore) {
3699
3783
  AGENT_PROMPT_CONTRIBUTORS3,
3700
3784
  AGENT_SKILLS3,
3701
3785
  AGENT_MEMORY3,
3702
- AGENT_DEPS_FACTORY6,
3786
+ AGENT_DEPS_FACTORY7,
3703
3787
  AgentDepsFactory2,
3704
3788
  AgentService,
3705
3789
  InlineAgentRunner,
@@ -3714,7 +3798,8 @@ var BASE_CONTROLLERS = [
3714
3798
  QuotaController,
3715
3799
  AgentsController,
3716
3800
  SkillsController,
3717
- MemoriesController
3801
+ MemoriesController,
3802
+ ToolsController
3718
3803
  ];
3719
3804
  var GUARDABLE_CONTROLLERS = [
3720
3805
  ...BASE_CONTROLLERS,
@@ -3817,7 +3902,7 @@ var AgentModule = class _AgentModule {
3817
3902
  };
3818
3903
  }
3819
3904
  };
3820
- AgentModule = _ts_decorate20([
3905
+ AgentModule = _ts_decorate21([
3821
3906
  Global2(),
3822
3907
  Module2({})
3823
3908
  ], AgentModule);