@mondaydotcomorg/agent-toolkit 5.56.0 → 5.56.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.56.1
4
+
5
+ ### search — actionable error and whitespace handling for searchTerm
6
+
7
+ - `searchTerm` validation now returns an actionable message (`searchTerm must be a non-empty search string.`) instead of the generic Zod `String must contain at least 1 character(s)`, helping agents recover from empty-term calls
8
+ - `searchTerm` is now trimmed before validation, so whitespace-only values (e.g. `" "`) are correctly rejected and surrounding whitespace is stripped from valid terms before querying
9
+
3
10
  ## 5.54.1
4
11
 
5
12
  ### publish_workflow — restrict to explicit user request
@@ -2123,7 +2123,7 @@
2123
2123
  }
2124
2124
  }
2125
2125
  }
2126
- `,Xh=e=>e.toLocaleLowerCase().replace(/[^\p{L}\d]/gu,""),Zh={searchTerm:n.z.string().min(1).describe("The search term to use."),searchType:n.z.preprocess((e=>"string"==typeof e?km[e.toUpperCase()]??e.toUpperCase():e),n.z.nativeEnum(Om)).describe("The type of search to perform. Valid values: BOARD, DOCUMENTS, FOLDERS, WORKSPACES, UPDATES, ITEMS, TIMELINE_ITEMS."),limit:n.z.preprocess((e=>"number"==typeof e&&e>20?20:e),n.z.number()).optional().default(20).describe("The number of items to get. Maximum is 20."),workspaceIds:n.z.array(n.z.number()).optional().describe("Array of workspace IDs (numbers) to search in. Required for FOLDERS search. For BOARD and DOCUMENTS search, only pass this if the user explicitly asked to search within specific workspaces. Example: [12345, 67890]."),boardIds:n.z.array(n.z.number()).optional().describe("Array of board IDs (numbers) to scope the search to. Only applies to UPDATES search, and only pass it if the user explicitly asked to search within specific boards. Example: [12345, 67890]."),creatorIds:n.z.array(n.z.number()).optional().describe("Array of user IDs (numbers) whose updates to search. Only applies to UPDATES search, and only pass it if the user explicitly asked to search updates by specific authors. Example: [12345, 67890].")};const ef=n.z.object({id:n.z.string().describe("The ID of the entity to mention"),type:n.z.nativeEnum(_r).describe("The type of mention: User, Team, Board, or Project")}),tf=n.z.array(ef),af={itemId:n.z.number().describe("The id of the item to which the update will be added"),body:n.z.string().describe("The update text to be created. Do not use @ to mention users, use the mentionsList field instead."),mentionsList:n.z.string().optional().describe('Optional JSON array of mentions in the format: [{"id": "123", "type": "User"}, {"id": "456", "type": "Team"}]. Valid types are: User, Team, Board, Project')};const nf=Fd`
2126
+ `,Xh=e=>e.toLocaleLowerCase().replace(/[^\p{L}\d]/gu,""),Zh={searchTerm:n.z.string().trim().min(1,{message:"searchTerm must be a non-empty search string."}).describe("The non-empty term to search for (at least one non-whitespace character)."),searchType:n.z.preprocess((e=>"string"==typeof e?km[e.toUpperCase()]??e.toUpperCase():e),n.z.nativeEnum(Om)).describe("The type of search to perform. Valid values: BOARD, DOCUMENTS, FOLDERS, WORKSPACES, UPDATES, ITEMS, TIMELINE_ITEMS."),limit:n.z.preprocess((e=>"number"==typeof e&&e>20?20:e),n.z.number()).optional().default(20).describe("The number of items to get. Maximum is 20."),workspaceIds:n.z.array(n.z.number()).optional().describe("Array of workspace IDs (numbers) to search in. Required for FOLDERS search. For BOARD and DOCUMENTS search, only pass this if the user explicitly asked to search within specific workspaces. Example: [12345, 67890]."),boardIds:n.z.array(n.z.number()).optional().describe("Array of board IDs (numbers) to scope the search to. Only applies to UPDATES search, and only pass it if the user explicitly asked to search within specific boards. Example: [12345, 67890]."),creatorIds:n.z.array(n.z.number()).optional().describe("Array of user IDs (numbers) whose updates to search. Only applies to UPDATES search, and only pass it if the user explicitly asked to search updates by specific authors. Example: [12345, 67890].")};const ef=n.z.object({id:n.z.string().describe("The ID of the entity to mention"),type:n.z.nativeEnum(_r).describe("The type of mention: User, Team, Board, or Project")}),tf=n.z.array(ef),af={itemId:n.z.number().describe("The id of the item to which the update will be added"),body:n.z.string().describe("The update text to be created. Do not use @ to mention users, use the mentionsList field instead."),mentionsList:n.z.string().optional().describe('Optional JSON array of mentions in the format: [{"id": "123", "type": "User"}, {"id": "456", "type": "Team"}]. Valid types are: User, Team, Board, Project')};const nf=Fd`
2127
2127
  mutation updateAssetsOnItem($boardId: ID!, $itemId: ID!, $columnId: String!, $files: [FileInput!]!) {
2128
2128
  update_assets_on_item(board_id: $boardId, item_id: $itemId, column_id: $columnId, files: $files) {
2129
2129
  id