[PR #105] [MERGED] [core] Refactor Tools and add get-feed Tool #106

Closed
opened 2025-10-31 16:57:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/feeddeck/feeddeck/pull/105
Author: @ricoberger
Created: 12/17/2023
Status: Merged
Merged: 12/17/2023
Merged by: @ricoberger

Base: mainHead: core-refactor-tools-and-add-get-feed-tool


📝 Commits (1)

  • 3f49937 [core] Refactor Tools and add get-feed Tool

📊 Changes

6 files changed (+170 additions, -116 deletions)

View changed files

📝 CONTRIBUTING.md (+12 -0)
📝 supabase/functions/_cmd/cmd.ts (+5 -41)
supabase/functions/_cmd/tools/apple-secret-key.ts (+79 -0)
📝 supabase/functions/_cmd/tools/tools.ts (+71 -70)
📝 supabase/functions/_shared/feed/nitter_test.ts (+0 -2)
📝 supabase/functions/_shared/feed/utils/getAndParseFeed.ts (+3 -3)

📄 Description

This commit refactors the existing tools, by moving the tools logic to a new tools.ts file, so that the main cmd.ts file remains clear.

Besides that we also add a new tool get-feed which can be used to run the getFeed function from the command line. The function is called with a source and returns the generated source and items, as they are saved in the database by the add-source-v1 Supabase edge function.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/feeddeck/feeddeck/pull/105 **Author:** [@ricoberger](https://github.com/ricoberger) **Created:** 12/17/2023 **Status:** ✅ Merged **Merged:** 12/17/2023 **Merged by:** [@ricoberger](https://github.com/ricoberger) **Base:** `main` ← **Head:** `core-refactor-tools-and-add-get-feed-tool` --- ### 📝 Commits (1) - [`3f49937`](https://github.com/feeddeck/feeddeck/commit/3f49937c8087a0c3962c4d585f92bc7a8a0c48b4) [core] Refactor Tools and add `get-feed` Tool ### 📊 Changes **6 files changed** (+170 additions, -116 deletions) <details> <summary>View changed files</summary> 📝 `CONTRIBUTING.md` (+12 -0) 📝 `supabase/functions/_cmd/cmd.ts` (+5 -41) ➕ `supabase/functions/_cmd/tools/apple-secret-key.ts` (+79 -0) 📝 `supabase/functions/_cmd/tools/tools.ts` (+71 -70) 📝 `supabase/functions/_shared/feed/nitter_test.ts` (+0 -2) 📝 `supabase/functions/_shared/feed/utils/getAndParseFeed.ts` (+3 -3) </details> ### 📄 Description This commit refactors the existing tools, by moving the tools logic to a new `tools.ts` file, so that the main `cmd.ts` file remains clear. Besides that we also add a new tool `get-feed` which can be used to run the `getFeed` function from the command line. The function is called with a source and returns the generated source and items, as they are saved in the database by the `add-source-v1` Supabase edge function. <!-- Keep PR title verbose enough and add prefix telling about what source it touches e.g "[rss] Add feature xyz" or if the the PR is not realated to a source use "[core]", e.g. "[core] Fix xyz". If you add a breaking change within your PR you should add ":warning:" to the title, e.g. ":warning: [core] My breaking change" --> <!-- Description of what have been changed. Please also reference an issue, when available. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-10-31 16:57:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/feeddeck#106