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