Skip to content

Commit 4aabdba

Browse files
committed
Running ESLint and PNPM, adding annotations
1 parent b42c5a7 commit 4aabdba

File tree

8 files changed

+216
-33
lines changed

8 files changed

+216
-33
lines changed

components/airweave/actions/create-collection/create-collection.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ export default {
55
name: "Create Collection",
66
description: "Create a new Airweave collection. Collections are logical groups of data sources that provide unified search capabilities. The newly created collection is initially empty until you add source connections to it. [See the documentation](https://docs.airweave.ai/api-reference/collections/create)",
77
version: "0.0.1",
8+
annotations: {
9+
destructiveHint: false,
10+
openWorldHint: true,
11+
readOnlyHint: false,
12+
},
813
type: "action",
914
props: {
1015
airweave,
@@ -33,7 +38,7 @@ export default {
3338
});
3439

3540
$.export("$summary", `Successfully created collection: ${response.name} (${response.readable_id})`);
36-
41+
3742
return response;
3843
},
3944
};

components/airweave/actions/delete-collection/delete-collection.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ export default {
55
name: "Delete Collection",
66
description: "Delete a collection and all associated data. This permanently removes the collection including all synced data and source connections. This action cannot be undone. [See the documentation](https://docs.airweave.ai/api-reference/collections/delete)",
77
version: "0.0.1",
8+
annotations: {
9+
destructiveHint: true,
10+
openWorldHint: true,
11+
readOnlyHint: false,
12+
},
813
type: "action",
914
props: {
1015
airweave,
@@ -28,7 +33,7 @@ export default {
2833
const response = await this.airweave.deleteCollection(this.collectionId);
2934

3035
$.export("$summary", `Successfully deleted collection: ${response.name} (${response.readable_id})`);
31-
36+
3237
return response;
3338
},
3439
};

components/airweave/actions/get-collection/get-collection.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ export default {
55
name: "Get Collection",
66
description: "Retrieve details of a specific collection by its readable ID. [See the documentation](https://docs.airweave.ai/api-reference/collections/get)",
77
version: "0.0.1",
8+
annotations: {
9+
destructiveHint: false,
10+
openWorldHint: true,
11+
readOnlyHint: true,
12+
},
813
type: "action",
914
props: {
1015
airweave,
@@ -19,7 +24,7 @@ export default {
1924
const response = await this.airweave.getCollection(this.collectionId);
2025

2126
$.export("$summary", `Successfully retrieved collection: ${response.name} (${response.readable_id})`);
22-
27+
2328
return response;
2429
},
2530
};

components/airweave/actions/list-collections/list-collections.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ export default {
55
name: "List Collections",
66
description: "List all collections in your organization. Collections are logical groups of data sources that provide unified search capabilities. [See the documentation](https://docs.airweave.ai/api-reference/collections/list)",
77
version: "0.0.1",
8+
annotations: {
9+
destructiveHint: false,
10+
openWorldHint: true,
11+
readOnlyHint: true,
12+
},
813
type: "action",
914
props: {
1015
airweave,
@@ -34,7 +39,7 @@ export default {
3439

3540
const count = response.length;
3641
$.export("$summary", `Successfully retrieved ${count} collection(s)`);
37-
42+
3843
return response;
3944
},
4045
};

components/airweave/actions/list-sources/list-sources.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ export default {
55
name: "List Available Sources",
66
description: "List all available data source connectors. These are the types of integrations Airweave can connect to (e.g., GitHub, Slack, Google Drive, PostgreSQL, etc.). [See the documentation](https://docs.airweave.ai/api-reference/sources/list)",
77
version: "0.0.1",
8+
annotations: {
9+
destructiveHint: false,
10+
openWorldHint: true,
11+
readOnlyHint: true,
12+
},
813
type: "action",
914
props: {
1015
airweave,
@@ -14,7 +19,7 @@ export default {
1419

1520
const count = response.length;
1621
$.export("$summary", `Successfully retrieved ${count} available source connector(s)`);
17-
22+
1823
return response;
1924
},
2025
};

components/airweave/actions/search-collection/search-collection.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ export default {
55
name: "Search Collection",
66
description: "Search across all data sources within a collection using semantic and keyword search. [See the documentation](https://docs.airweave.ai/api-reference/collections/search)",
77
version: "0.0.1",
8+
annotations: {
9+
destructiveHint: false,
10+
openWorldHint: true,
11+
readOnlyHint: true,
12+
},
813
type: "action",
914
props: {
1015
airweave,
@@ -69,7 +74,7 @@ export default {
6974

7075
const resultCount = response.results?.length || 0;
7176
$.export("$summary", `Successfully searched collection "${this.collectionId}" and found ${resultCount} result(s)`);
72-
77+
7378
return response;
7479
},
7580
};

components/airweave/actions/trigger-sync/trigger-sync.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ export default {
55
name: "Trigger Source Connection Sync",
66
description: "Manually trigger a data sync for a source connection. The sync job runs asynchronously in the background and returns immediately with job details. [See the documentation](https://docs.airweave.ai/api-reference/source-connections/run)",
77
version: "0.0.1",
8+
annotations: {
9+
destructiveHint: false,
10+
openWorldHint: true,
11+
readOnlyHint: false,
12+
},
813
type: "action",
914
props: {
1015
airweave,
@@ -31,7 +36,7 @@ export default {
3136
);
3237

3338
$.export("$summary", `Successfully triggered sync job: ${response.id} (Status: ${response.status})`);
34-
39+
3540
return response;
3641
},
3742
};

0 commit comments

Comments
 (0)