@mondaydotcomorg/agent-toolkit 5.70.3 → 5.71.1

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.
@@ -56,6 +56,14 @@ type MondayFetch = (request: MondayFetchRequest) => Promise<Response>;
56
56
  type FetchConfig = {
57
57
  fetch?: MondayFetch;
58
58
  };
59
+ type FlagChecker = (flagKey: string) => boolean;
60
+ type ToolkitLogger = {
61
+ warn(fields: Record<string, unknown>, message: string): void;
62
+ };
63
+ type MondayAgentToolkitDeps = {
64
+ flagChecker?: FlagChecker;
65
+ logger?: ToolkitLogger;
66
+ };
59
67
  type MondayAgentToolkitConfig = {
60
68
  mondayApiToken: ApiClientConfig['token'] | (() => string);
61
69
  mondayApiVersion?: ApiClientConfig['apiVersion'];
@@ -64,6 +72,7 @@ type MondayAgentToolkitConfig = {
64
72
  toolsConfiguration?: ToolsConfiguration;
65
73
  context?: MondayApiToolContext;
66
74
  fetchConfig?: FetchConfig;
75
+ deps?: MondayAgentToolkitDeps;
67
76
  };
68
77
 
69
78
  type MondayApiToolContext = {
@@ -73,6 +82,7 @@ type MondayApiToolContext = {
73
82
  agentClientName?: string;
74
83
  clientRedirectUris?: string[];
75
84
  fetchConfig?: FetchConfig;
85
+ deps?: MondayAgentToolkitDeps;
76
86
  };
77
87
  type BaseMondayApiToolConstructor = new (api: ApiClient) => BaseMondayApiTool<any>;
78
88
  declare abstract class BaseMondayApiTool<Input extends ZodRawShape | undefined, Output extends Record<string, unknown> = never> implements Tool<Input, Output> {
@@ -158,4 +168,4 @@ declare const allGraphqlApiTools: BaseMondayApiToolConstructor[];
158
168
 
159
169
  declare const allTools: (MondayAppsToolType | BaseMondayApiToolConstructor)[];
160
170
 
161
- export { Executable, FetchConfig, MondayAgentToolkitConfig, MondayFetch, MondayFetchRequest, SessionContext, Tool, ToolInputType, ToolMode, ToolOutputType, ToolType, ToolsConfiguration, allGraphqlApiTools, allMondayAppsTools, allMondayDevTools, allTools };
171
+ export { Executable, FetchConfig, FlagChecker, MondayAgentToolkitConfig, MondayAgentToolkitDeps, MondayFetch, MondayFetchRequest, SessionContext, Tool, ToolInputType, ToolMode, ToolOutputType, ToolType, ToolkitLogger, ToolsConfiguration, allGraphqlApiTools, allMondayAppsTools, allMondayDevTools, allTools };