@mondaydotcomorg/agent-toolkit 5.22.1 → 5.32.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.24.0
4
+
5
+ ### manage_automations — rename from manage_workflows
6
+
7
+ - Renamed `manage_workflows` tool to `manage_automations` for consistency with `list_automations` and `create_automation`
8
+ - Updated tool title and description accordingly; removed the now-unnecessary "Terminology: workflows = automations" note
9
+ - No functional changes — activate, deactivate, and delete behaviour is unchanged
10
+
11
+ ### automations-tools — directory restructure
12
+
13
+ - Renamed `workflows-tools/` → `automations-tools/` and `list-workflows/` → `list-automations/` to align directory names with tool naming convention
14
+ - Removed stale note from `publish_workflow` description that incorrectly referenced `manage_automations` as a way to retrieve draft IDs
15
+
3
16
  ## 5.22.0
4
17
 
5
18
  ### plan_workflow — new tool
@@ -38,14 +38,15 @@ type MondayApiToolContext = {
38
38
  };
39
39
  type BaseMondayApiToolConstructor = new (api: ApiClient) => BaseMondayApiTool<any>;
40
40
  declare abstract class BaseMondayApiTool<Input extends ZodRawShape | undefined, Output extends Record<string, unknown> = never> implements Tool<Input, Output> {
41
- protected readonly mondayApi: ApiClient;
42
41
  protected readonly context?: MondayApiToolContext | undefined;
43
42
  abstract name: string;
44
43
  abstract type: ToolType;
45
44
  abstract annotations: ToolAnnotations;
46
45
  enabledByDefault?: boolean;
47
46
  protected sessionContext: SessionContext;
48
- constructor(mondayApi: ApiClient, context?: MondayApiToolContext | undefined);
47
+ private readonly _mondayApiProvider;
48
+ constructor(mondayApi: ApiClient | (() => ApiClient), context?: MondayApiToolContext | undefined);
49
+ protected get mondayApi(): ApiClient;
49
50
  abstract getDescription(): string;
50
51
  abstract getInputSchema(): Input;
51
52
  /**
@@ -77,9 +78,10 @@ declare abstract class BaseMondayAppsTool<Input extends ZodRawShape | undefined,
77
78
  abstract name: string;
78
79
  abstract type: ToolType;
79
80
  abstract category: MondayAppsToolCategory;
80
- private mondayApiToken?;
81
+ private readonly _mondayApiTokenProvider?;
81
82
  abstract annotations: ToolAnnotations;
82
- constructor(mondayApiToken?: string);
83
+ constructor(mondayApiToken?: string | (() => string));
84
+ private get mondayApiToken();
83
85
  abstract getDescription(): string;
84
86
  abstract getInputSchema(): Input;
85
87
  /**
@@ -132,7 +134,7 @@ type ToolsConfiguration = {
132
134
  enableToolManager?: boolean;
133
135
  };
134
136
  type MondayAgentToolkitConfig = {
135
- mondayApiToken: ApiClientConfig['token'];
137
+ mondayApiToken: ApiClientConfig['token'] | (() => string);
136
138
  mondayApiVersion?: ApiClientConfig['apiVersion'];
137
139
  mondayApiEndpoint?: ApiClientConfig['endpoint'];
138
140
  mondayApiRequestConfig?: ApiClientConfig['requestConfig'];