Skip to content

Commit f8be8b5

Browse files
committed
Merge branch 'main' of github.com:nodetool-ai/nodetool
2 parents 313f2dd + f323e1f commit f8be8b5

File tree

3 files changed

+1
-380
lines changed

3 files changed

+1
-380
lines changed

src/nodetool/metadata/nodes.json

-128
Original file line numberDiff line numberDiff line change
@@ -992,21 +992,6 @@
992992
"node_type": "apple.notes.ReadNotes",
993993
"layout": "default",
994994
"properties": [
995-
{
996-
"name": "search_term",
997-
"type": {
998-
"type": "str",
999-
"optional": false,
1000-
"values": null,
1001-
"type_args": [],
1002-
"type_name": null
1003-
},
1004-
"default": "",
1005-
"title": "Search Term",
1006-
"description": "Optional search term to filter notes",
1007-
"min": null,
1008-
"max": null
1009-
},
1010995
{
1011996
"name": "note_limit",
1012997
"type": {
@@ -1062,7 +1047,6 @@
10621047
"the_model_info": {},
10631048
"recommended_models": [],
10641049
"basic_fields": [
1065-
"search_term",
10661050
"note_limit",
10671051
"note_limit_per_folder"
10681052
],
@@ -30950,118 +30934,6 @@
3095030934
"basic_fields": [],
3095130935
"is_dynamic": false
3095230936
},
30953-
{
30954-
"title": "Copy Text To Clipboard",
30955-
"description": "Copies text to system clipboard.\n clipboard, system, copy\n\n Use cases:\n - Copy text to clipboard\n - Save output for external use",
30956-
"namespace": "nodetool.os",
30957-
"node_type": "nodetool.os.CopyTextToClipboard",
30958-
"layout": "default",
30959-
"properties": [
30960-
{
30961-
"name": "text",
30962-
"type": {
30963-
"type": "str",
30964-
"optional": false,
30965-
"values": null,
30966-
"type_args": [],
30967-
"type_name": null
30968-
},
30969-
"default": "",
30970-
"title": "Text",
30971-
"description": "Text to copy to clipboard",
30972-
"min": null,
30973-
"max": null
30974-
}
30975-
],
30976-
"outputs": [],
30977-
"the_model_info": {},
30978-
"recommended_models": [],
30979-
"basic_fields": [
30980-
"text"
30981-
],
30982-
"is_dynamic": false
30983-
},
30984-
{
30985-
"title": "Paste Text From Clipboard",
30986-
"description": "Pastes text from system clipboard.\n clipboard, system, paste\n\n Use cases:\n - Read clipboard content\n - Import external data",
30987-
"namespace": "nodetool.os",
30988-
"node_type": "nodetool.os.PasteTextFromClipboard",
30989-
"layout": "default",
30990-
"properties": [],
30991-
"outputs": [
30992-
{
30993-
"type": {
30994-
"type": "str",
30995-
"optional": false,
30996-
"values": null,
30997-
"type_args": [],
30998-
"type_name": null
30999-
},
31000-
"name": "output",
31001-
"stream": false
31002-
}
31003-
],
31004-
"the_model_info": {},
31005-
"recommended_models": [],
31006-
"basic_fields": [],
31007-
"is_dynamic": false
31008-
},
31009-
{
31010-
"title": "Copy Image To Clipboard",
31011-
"description": "Copies an image to system clipboard.\n clipboard, system, copy, image\n\n Use cases:\n - Copy images to clipboard\n - Share screenshots or processed images",
31012-
"namespace": "nodetool.os",
31013-
"node_type": "nodetool.os.CopyImageToClipboard",
31014-
"layout": "default",
31015-
"properties": [
31016-
{
31017-
"name": "image",
31018-
"type": {
31019-
"type": "image",
31020-
"optional": false,
31021-
"values": null,
31022-
"type_args": [],
31023-
"type_name": null
31024-
},
31025-
"default": null,
31026-
"title": "Image",
31027-
"description": "Image to copy to clipboard",
31028-
"min": null,
31029-
"max": null
31030-
}
31031-
],
31032-
"outputs": [],
31033-
"the_model_info": {},
31034-
"recommended_models": [],
31035-
"basic_fields": [
31036-
"image"
31037-
],
31038-
"is_dynamic": false
31039-
},
31040-
{
31041-
"title": "Paste Image From Clipboard",
31042-
"description": "Reads an image from the system clipboard.\n clipboard, system, paste, image\n\n Use cases:\n - Capture screenshots from clipboard\n - Process clipboard images\n - Import clipboard content\n\n Requires:\n - Windows: Pillow\n - macOS: Pillow, pyobjc-framework-Cocoa\n - Linux: Pillow, xclip",
31043-
"namespace": "nodetool.os",
31044-
"node_type": "nodetool.os.PasteImageFromClipboard",
31045-
"layout": "default",
31046-
"properties": [],
31047-
"outputs": [
31048-
{
31049-
"type": {
31050-
"type": "image",
31051-
"optional": false,
31052-
"values": null,
31053-
"type_args": [],
31054-
"type_name": null
31055-
},
31056-
"name": "output",
31057-
"stream": false
31058-
}
31059-
],
31060-
"the_model_info": {},
31061-
"recommended_models": [],
31062-
"basic_fields": [],
31063-
"is_dynamic": false
31064-
},
3106530937
{
3106630938
"title": "File Exists",
3106730939
"description": "Check if a file or directory exists at the specified path.\n files, check, exists\n\n Use cases:\n - Validate file presence before processing\n - Implement conditional logic based on file existence",

src/nodetool/nodes/apple/notes.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ class ReadNotes(BaseNode):
7979
- Get notes content for further processing
8080
"""
8181

82-
search_term: str = Field(
83-
default="", description="Optional search term to filter notes"
84-
)
8582
note_limit: int = Field(
8683
default=10, description="Maximum number of notes to export (0 for unlimited)"
8784
)
@@ -152,12 +149,7 @@ async def process(self, context: ProcessingContext) -> list[dict]:
152149
"folder": folder,
153150
}
154151

155-
# Apply search filter if specified
156-
if not self.search_term or (
157-
self.search_term.lower() in note["title"].lower()
158-
or self.search_term.lower() in note["content"].lower()
159-
):
160-
notes.append(note)
152+
notes.append(note)
161153

162154
return notes
163155

0 commit comments

Comments
 (0)