From aebbc75dea4036fbc49dc600feb7a688bd2ae2e5 Mon Sep 17 00:00:00 2001 From: Vini Brasil Date: Wed, 16 Apr 2025 10:18:26 -0300 Subject: [PATCH 1/4] Notify downstream repo of changes (#2615) * Notify downstream repo of changes * Add permissions block --- .github/workflows/notify-downstream.yml | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/notify-downstream.yml diff --git a/.github/workflows/notify-downstream.yml b/.github/workflows/notify-downstream.yml new file mode 100644 index 000000000..11eab8d2b --- /dev/null +++ b/.github/workflows/notify-downstream.yml @@ -0,0 +1,33 @@ +name: Notify Downstream + +on: + push: + branches: + - main + +permissions: + contents: read + +jobs: + notify-downstream: + runs-on: ubuntu-latest + + steps: + - name: Generate GitHub App token + id: app-token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.OSS_SYNC_APP_ID }} + private_key: ${{ secrets.OSS_SYNC_APP_PRIVATE_KEY }} + + - name: Notify Repo B + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ steps.app-token.outputs.token }} + repository: ${{ secrets.OSS_SYNC_DOWNSTREAM_REPO }} + event-type: upstream-commit + client-payload: | + { + "commit_sha": "${{ github.sha }}" + } + From 6eb40453392dba76c69f9a8550bc19dbf2edab91 Mon Sep 17 00:00:00 2001 From: Vini Brasil Date: Wed, 16 Apr 2025 10:39:51 -0300 Subject: [PATCH 2/4] Update .github/workflows/notify-downstream.yml (#2621) --- .github/workflows/notify-downstream.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/notify-downstream.yml b/.github/workflows/notify-downstream.yml index 11eab8d2b..fa7b2f14e 100644 --- a/.github/workflows/notify-downstream.yml +++ b/.github/workflows/notify-downstream.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: tibdex/github-app-token@v1 + uses: tibdex/github-app-token@v2 with: app_id: ${{ secrets.OSS_SYNC_APP_ID }} private_key: ${{ secrets.OSS_SYNC_APP_PRIVATE_KEY }} From 37359a34f0e12ae3a34c2a77dd3f20c11053bc50 Mon Sep 17 00:00:00 2001 From: Vini Brasil Date: Wed, 16 Apr 2025 11:25:41 -0300 Subject: [PATCH 3/4] Remove redundant comment from sqlite.py (#2622) --- src/crewai/flow/persistence/sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/flow/persistence/sqlite.py b/src/crewai/flow/persistence/sqlite.py index 21e906afd..8b2a0f3f2 100644 --- a/src/crewai/flow/persistence/sqlite.py +++ b/src/crewai/flow/persistence/sqlite.py @@ -21,7 +21,7 @@ class SQLiteFlowPersistence(FlowPersistence): moderate performance requirements. """ - db_path: str # Type annotation for instance variable + db_path: str def __init__(self, db_path: Optional[str] = None): """Initialize SQLite persistence. From 1d91ab5d1b40365bc8b890f0484a507e12fadd2e Mon Sep 17 00:00:00 2001 From: Lorenze Jay <63378463+lorenzejay@users.noreply.github.com> Date: Wed, 16 Apr 2025 10:05:09 -0700 Subject: [PATCH 4/4] fix: pass original agent reference to lite agent initialization (#2625) --- src/crewai/agent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crewai/agent.py b/src/crewai/agent.py index 73c07b08c..2a8067576 100644 --- a/src/crewai/agent.py +++ b/src/crewai/agent.py @@ -535,6 +535,7 @@ class Agent(BaseAgent): verbose=self.verbose, response_format=response_format, i18n=self.i18n, + original_agent=self, ) return await lite_agent.kickoff_async(messages)