feat: add agent adl commands for Agentforce Data Library management @W-22787736#435
Open
bobby-sf wants to merge 6 commits into
Open
feat: add agent adl commands for Agentforce Data Library management @W-22787736#435bobby-sf wants to merge 6 commits into
bobby-sf wants to merge 6 commits into
Conversation
…W-22787736@ Implements CLI commands for the ADL Connect API under `agent adl`: Library CRUD: - list, create, get, update, delete, status File operations (SFDRIVE): - upload (multi-step: readiness → presigned URL → S3 PUT → indexing) - file add (day-1 additions to READY libraries) - file list (via detail endpoint groundingFileRefs) - file delete Source type support: - SFDRIVE: full upload + indexing lifecycle with --wait polling - KNOWLEDGE: auto-triggers /indexing on create; update supports --content-fields and --restrict-to-public-articles (server-side re-index) - RETRIEVER: immediately READY on create with --retriever-id Key behaviors: - Upload-readiness retries up to 3x (6 min total) for slow UDLO activation - S3 upload uses fetch() directly (not connection.request) with verbatim headers - Polling gates on retrieverId from detail endpoint (not top-level status) - All commands in preview state pending ADL GA - Table output for list command Includes 21 unit tests + NUT tests for all three source types: TARGET_ORG=sdb3 RETRIEVER_ID=<id> yarn test:nuts --grep "agent adl" Also fixes pre-existing TS error in agent test create (testRunner option). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Thanks for the contribution! It looks like @bobby-sf is an internal user so signing the CLA is not required. However, we need to confirm this. |
Author
Manual Testing Nuts tests (against an test org with Data Cloud Tenant provisioned in sdb14).Unit Tests |
- update command now validates sourceType is KNOWLEDGE before sending knowledgeConfig - Fix Answer**c typo in messages (should be Answer__c) - Revert test/create.ts type assertion (not our change to own) - Update unit tests for new update validation flow
…le delete - F-003: --index-mode enhanced passes ENHANCED to groundingSource - K-010: knowledge flags on non-KNOWLEDGE library triggers warning - F-013: file delete command unit tests (success + error)
…file list - RETRIEVER described as existing active Custom Retriever in create description - retriever-id flag clarifies retriever must be active - source-type flag describes each type inline - upload description mentions RETRIEVER does not need upload - file list removes paginated (not using paginated endpoint yet)
DylanZeigler
approved these changes
Jun 2, 2026
Author
|
/cla |
Author
|
recheck |
Author
|
/cla |
Author
|
recheck |
shetzel
approved these changes
Jun 2, 2026
Author
|
/cla |
Author
|
recheck |
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.
Implements CLI commands for the ADL Connect API under
agent adl:Library CRUD:
File operations (SFDRIVE):
Source type support:
Key behaviors:
Includes 21 unit tests + NUT tests for all three source types:
TARGET_ORG=sdb3 RETRIEVER_ID= yarn test:nuts --grep "agent adl"
Also fixes pre-existing TS error in agent test create (testRunner option).
What does this PR do?
Adds
sf agent adlCLI commands for Agentforce Data Library management — thin wrappers aroundAgentDataLibraryfrom@salesforce/agents. 10 commands covering library CRUD, indexing status, file upload (Day-0), and file additions (Day-1) for SFDRIVE, KNOWLEDGE, and RETRIEVER source types. All commands in preview state.Depends on: forcedotcom/agents#296
What issues does this PR fix or reference?
@W-22787736@