Repository navigation
Add add_note and update_note tools for diary notes - #77
Open
paultristanwagner wants to merge 1 commit into
Open
paultristanwagner wants to merge 1 commit into
paultristanwagner wants to merge 1 commit into
Conversation
The app writes day notes through /photoupload: a multipart form carrying the session token as `sessionKey`, noteId 0 to create or the note's id to overwrite it, plus day, order and the text. Verified against the live API. Claude-Session: https://claude.ai/code/session_01MCJFDo71qoSqTRtcGfkpXJ
9 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #73.
Adds
add_noteandupdate_notetools for diary notes.The app writes notes through its photo upload endpoint, not the JSON API:
POST /photoupload, as amultipart form, authenticated by the session token in a
sessionKeyfield.
actiondiaryImagediaryImagesessionKeynoteId0day,orderdeleteExistingPhototruetruenoteTextIt answers
{"noteId": …, "text": …, "day": …, "order": …}. Verifiedagainst the live API on 1900-01-02. Notes show up in
get_diaryas"type": "Note"entries. Deleting them needs the v3 delete with the notekeyed by
id(#74).Changes:
add_note(text, day, diary_group)andupdate_note(note_id, text, day), sharing_save_note. The form isbuilt with httpx and posted through the client's existing connection.
update_notefinds the note inget_diaryso it keeps its day andposition.
add_noteandupdate_notetools.https://claude.ai/code/session_01MCJFDo71qoSqTRtcGfkpXJ