@mondaydotcomorg/atp-client 0.23.1 → 0.23.2

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.js CHANGED
@@ -1421,24 +1421,10 @@ function createExploreApiTool(client) {
1421
1421
  const results = await Promise.all(pathsToExplore.map(async (path) => {
1422
1422
  try {
1423
1423
  const result = await client.exploreAPI(path);
1424
- if (result.type === "directory") {
1425
- return {
1426
- success: true,
1427
- type: "directory",
1428
- path: result.path,
1429
- items: result.items
1430
- };
1431
- } else {
1432
- return {
1433
- success: true,
1434
- type: "function",
1435
- name: result.name,
1436
- description: result.description,
1437
- definition: result.definition,
1438
- group: result.group,
1439
- path: result.path
1440
- };
1441
- }
1424
+ return {
1425
+ success: true,
1426
+ ...result
1427
+ };
1442
1428
  } catch (error) {
1443
1429
  const message = error instanceof Error ? error.message : String(error);
1444
1430
  return {