From 97152f991bbcd5770079362bf68436ac1912e58d Mon Sep 17 00:00:00 2001 From: dsorajisto <103614897+dsorajisto@users.noreply.github.com> Date: Fri, 9 Oct 2026 20:08:46 -0400 Subject: [PATCH] fix: deploy employee agent recipes in two batches A single deploy accepts at most 50 AiAuthoringBundle instances on Summer '26 orgs and 100 on the current release, and each bundle counts twice. force-app has 26 bundles, so deploying it in one go fails on Summer '26 orgs. CI, the install scripts and the README now deploy the shared objects and tabs with 01-03 first, then 04 with the shared app and permission sets. Closes #140 --- .github/workflows/ci-pr.yml | 7 +++++-- .github/workflows/ci.yml | 7 +++++-- README.md | 5 +++-- bin/install-scratch.bat | 4 +++- bin/install-scratch.sh | 3 ++- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 27510e0..2090305 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -180,9 +180,12 @@ jobs: - name: 'Assign Manage Prompt Template permission set' run: sf org assign permset -n EinsteinGPTPromptTemplateManager - # Deploy employee agent source to scratch org + # Deploy employee agent source to scratch org in two batches: + # a single deploy accepts at most 25 agent bundles - name: 'Deploy employee agent recipes' - run: sf project deploy start --source-dir force-app + run: | + sf project deploy start --source-dir force-app/main/shared/objects --source-dir force-app/main/shared/tabs --source-dir force-app/main/01_languageEssentials --source-dir force-app/main/02_actionConfiguration --source-dir force-app/main/03_reasoningMechanics + sf project deploy start --source-dir force-app/main/04_architecturalPatterns --source-dir force-app/main/shared/applications --source-dir force-app/main/shared/permissionsets # Assign permission sets - name: 'Assign permission sets to default user' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5e6de4..908f671 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,9 +120,12 @@ jobs: - name: 'Assign Manage Prompt Template permission set' run: sf org assign permset -n EinsteinGPTPromptTemplateManager - # Deploy employee agent source to scratch org + # Deploy employee agent source to scratch org in two batches: + # a single deploy accepts at most 25 agent bundles - name: 'Deploy employee agent recipes' - run: sf project deploy start --source-dir force-app + run: | + sf project deploy start --source-dir force-app/main/shared/objects --source-dir force-app/main/shared/tabs --source-dir force-app/main/01_languageEssentials --source-dir force-app/main/02_actionConfiguration --source-dir force-app/main/03_reasoningMechanics + sf project deploy start --source-dir force-app/main/04_architecturalPatterns --source-dir force-app/main/shared/applications --source-dir force-app/main/shared/permissionsets # Assign permission sets - name: 'Assign permission sets to default user' diff --git a/README.md b/README.md index e94b8aa..229ca5c 100644 --- a/README.md +++ b/README.md @@ -59,10 +59,11 @@ If you don't have an org yet, you can sign up for a free [Developer Edition Org] sf org login web -s -a agent-script-recipes ``` -1. Deploy the app to your org: +1. Deploy the app to your org. A single deploy accepts at most 25 agent bundles, so the recipes are deployed in two batches: ```bash - sf project deploy start -d force-app + sf project deploy start --source-dir force-app/main/shared/objects --source-dir force-app/main/shared/tabs --source-dir force-app/main/01_languageEssentials --source-dir force-app/main/02_actionConfiguration --source-dir force-app/main/03_reasoningMechanics + sf project deploy start --source-dir force-app/main/04_architecturalPatterns --source-dir force-app/main/shared/applications --source-dir force-app/main/shared/permissionsets ``` 1. Assign the `Agent_Script_Recipes_Data` and `Agent_Script_Recipes_App` permission sets to the default user: diff --git a/bin/install-scratch.bat b/bin/install-scratch.bat index 3f0ca46..880a12a 100755 --- a/bin/install-scratch.bat +++ b/bin/install-scratch.bat @@ -24,7 +24,9 @@ call :checkForError @echo: echo Deploying employee agent recipes... -cmd.exe /c sf project deploy start --source-dir force-app +cmd.exe /c sf project deploy start --source-dir force-app/main/shared/objects --source-dir force-app/main/shared/tabs --source-dir force-app/main/01_languageEssentials --source-dir force-app/main/02_actionConfiguration --source-dir force-app/main/03_reasoningMechanics +call :checkForError +cmd.exe /c sf project deploy start --source-dir force-app/main/04_architecturalPatterns --source-dir force-app/main/shared/applications --source-dir force-app/main/shared/permissionsets call :checkForError @echo: diff --git a/bin/install-scratch.sh b/bin/install-scratch.sh index 7f557b7..e1fcf67 100755 --- a/bin/install-scratch.sh +++ b/bin/install-scratch.sh @@ -23,7 +23,8 @@ sf org assign permset -n EinsteinGPTPromptTemplateManager && \ echo "" && \ echo "Deploying employee agent recipes..." && \ -sf project deploy start --source-dir force-app && \ +sf project deploy start --source-dir force-app/main/shared/objects --source-dir force-app/main/shared/tabs --source-dir force-app/main/01_languageEssentials --source-dir force-app/main/02_actionConfiguration --source-dir force-app/main/03_reasoningMechanics && \ +sf project deploy start --source-dir force-app/main/04_architecturalPatterns --source-dir force-app/main/shared/applications --source-dir force-app/main/shared/permissionsets && \ echo "" && \ echo "Assigning Agent Script permission sets..." && \