@salesforce/afv-skills 1.68.0 → 1.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/package.json +1 -1
  2. package/skills/afcc-setup-coordinate/SKILL.md +348 -0
  3. package/skills/afcc-setup-coordinate/assets/console-app/AFCC_Service_Console.app-meta.xml +19 -0
  4. package/skills/afcc-setup-coordinate/assets/console-app/Admin.profile-meta.xml +8 -0
  5. package/skills/afcc-setup-coordinate/assets/console-app/Standard.profile-meta.xml +8 -0
  6. package/skills/afcc-setup-coordinate/assets/gap_report_template.md +35 -0
  7. package/skills/afcc-setup-coordinate/assets/org_profile_template.json +16 -0
  8. package/skills/afcc-setup-coordinate/references/gotchas.md +22 -0
  9. package/skills/afcc-setup-coordinate/scripts/audit_org.sh +159 -0
  10. package/skills/agentforce-bot-upgrade/SKILL.md +117 -66
  11. package/skills/agentforce-bot-upgrade/assets/_vendored/agent-spec-template.md +139 -0
  12. package/skills/agentforce-bot-upgrade/references/_vendored/agent-design-and-spec-creation.md +1211 -0
  13. package/skills/agentforce-bot-upgrade/references/_vendored/agent-script-core-language.md +1390 -0
  14. package/skills/agentforce-bot-upgrade/references/_vendored/agent-subagent-map-diagrams.md +341 -0
  15. package/skills/agentforce-bot-upgrade/references/_vendored/agent-user-setup.md +672 -0
  16. package/skills/agentforce-bot-upgrade/references/_vendored/agent-validation-and-debugging.md +904 -0
  17. package/skills/agentforce-bot-upgrade/references/_vendored/agentscript-toolchain.md +112 -0
  18. package/skills/agentforce-bot-upgrade/references/_vendored/architecture-patterns.md +277 -0
  19. package/skills/agentforce-bot-upgrade/references/_vendored/common-control-flow-pitfalls.md +255 -0
  20. package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-actions-sequencing.md +198 -0
  21. package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-lifecycle-side-effects.md +87 -0
  22. package/skills/agentforce-bot-upgrade/references/_vendored/data-library-reference.md +891 -0
  23. package/skills/agentforce-bot-upgrade/references/_vendored/instruction-resolution.md +658 -0
  24. package/skills/agentforce-bot-upgrade/references/_vendored/org-setup-for-adl.md +551 -0
  25. package/skills/agentforce-bot-upgrade/references/_vendored/patterns-by-requirement.md +88 -0
  26. package/skills/agentforce-bot-upgrade/references/_vendored/posture-and-determinism.md +215 -0
  27. package/skills/agentforce-bot-upgrade/references/extraction-blueprint.md +11 -4
  28. package/skills/agentforce-bot-upgrade/references/generate-agent-spec.md +19 -3
  29. package/skills/agentforce-bot-upgrade/references/handoff-output-format.md +82 -52
  30. package/skills/agentforce-bot-upgrade/references/input-contract.md +8 -8
  31. package/skills/agentforce-bot-upgrade/references/mapping-rules.md +19 -6
  32. package/skills/agentforce-bot-upgrade/references/post-conversion-enhancements-reference.md +65 -6
  33. package/skills/agentforce-bot-upgrade/references/quality-checklist.md +4 -4
  34. package/skills/agentforce-bot-upgrade/references/sf-cli-bot-reference.md +17 -3
  35. package/skills/agentforce-hyperclassifier-configure/README.md +24 -0
  36. package/skills/agentforce-hyperclassifier-configure/SKILL.md +111 -0
  37. package/skills/agentforce-hyperclassifier-configure/assets/customer-org.env.example +4 -0
  38. package/skills/agentforce-hyperclassifier-configure/assets/sample_descriptions.json +8 -0
  39. package/skills/agentforce-hyperclassifier-configure/assets/sample_evals.csv +17 -0
  40. package/skills/agentforce-hyperclassifier-configure/references/api-contract.md +41 -0
  41. package/skills/agentforce-hyperclassifier-configure/references/authentication.md +35 -0
  42. package/skills/agentforce-hyperclassifier-configure/references/evaluation.md +46 -0
  43. package/skills/agentforce-hyperclassifier-configure/references/installation.md +35 -0
  44. package/skills/agentforce-hyperclassifier-configure/references/onboarding.md +93 -0
  45. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/__init__.py +1 -0
  46. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/client.py +219 -0
  47. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/eca.py +178 -0
  48. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/evaluation.py +207 -0
  49. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/onboarding.py +191 -0
  50. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/optimizer.py +187 -0
  51. package/skills/agentforce-hyperclassifier-configure/scripts/hyperclassifier.py +111 -0
  52. package/skills/agentforce-hyperclassifier-configure/scripts/report_hyperclassifier.py +149 -0
  53. package/skills/agentforce-hyperclassifier-configure/scripts/setup_hyperclassifier.py +74 -0
  54. package/skills/agentforce-hyperclassifier-configure/scripts/tests/test_hyperclassifier_skill.py +887 -0
  55. package/skills/agentforce-offline-experimentation-run/scripts/btlib/judge.py +23 -31
  56. package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +2 -1
  57. package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +118 -2
  58. package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +2 -2
  59. package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +9 -2
  60. package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +12 -1
  61. package/skills/commerce-react-storefront-create/SKILL.md +54 -21
  62. package/skills/data360-code-extension-generate/SKILL.md +160 -252
  63. package/skills/data360-code-extension-generate/references/README.md +34 -172
  64. package/skills/data360-code-extension-generate/references/environment-setup.md +198 -0
  65. package/skills/data360-code-extension-generate/references/mcp-integration.md +36 -0
  66. package/skills/data360-code-extension-generate/references/quick-reference.md +132 -202
  67. package/skills/data360-code-extension-generate/references/run-logs.md +31 -0
  68. package/skills/data360-code-extension-generate/references/schema-discovery.md +45 -0
  69. package/skills/data360-code-extension-generate/references/troubleshooting.md +45 -0
  70. package/skills/data360-code-extension-generate/scripts/check_env.sh +197 -0
  71. package/skills/data360-code-extension-generate/scripts/venv_hook.sh +22 -0
  72. package/skills/dx-devops-work-item-manage/SKILL.md +24 -8
  73. package/skills/dx-devops-work-item-manage/examples/common-workflows.md +32 -0
  74. package/skills/dx-devops-work-item-manage/references/review-api.md +95 -0
  75. package/skills/dx-lifecycle-center/SKILL.md +24 -18
  76. package/skills/dx-lifecycle-center/examples/workflows.md +57 -34
  77. package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
  78. package/skills/dx-lifecycle-center/references/connect-org.md +59 -28
  79. package/skills/dx-lifecycle-center/references/deploy.md +3 -3
  80. package/skills/dx-lifecycle-center/references/hub-org.md +19 -3
  81. package/skills/dx-lifecycle-center/references/list-orgs.md +50 -24
  82. package/skills/dx-lifecycle-center/references/troubleshooting.md +22 -1
  83. package/skills/dx-lifecycle-center/scripts/hub-get.sh +41 -0
  84. package/skills/dx-lifecycle-center/scripts/resolve-environment.sh +151 -4
  85. package/skills/dx-org-manage/SKILL.md +12 -12
  86. package/skills/dx-org-manage/examples/scratch-orgs/display_output.json +1 -3
  87. package/skills/dx-org-manage/examples/scratch-orgs/success_shape.json +1 -3
  88. package/skills/dx-org-manage/references/opening-org.md +1 -1
  89. package/skills/dx-org-manage/references/scratch-org-operations.md +15 -20
  90. package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +63 -0
  91. package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +252 -0
  92. package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +3 -4
  93. package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +10 -7
  94. package/skills/dx-packaging-push-upgrade-configure/README.md +47 -0
  95. package/skills/dx-packaging-push-upgrade-configure/SKILL.md +355 -0
  96. package/skills/dx-packaging-push-upgrade-configure/references/best-practices.md +61 -0
  97. package/skills/dx-packaging-push-upgrade-configure/references/cli-reference.md +148 -0
  98. package/skills/dx-packaging-push-upgrade-configure/references/objects.md +106 -0
  99. package/skills/dx-packaging-push-upgrade-configure/references/soql-recipes.md +144 -0
  100. package/skills/education-cloud-academic-calendar-generate/SKILL.md +2 -2
  101. package/skills/education-cloud-course-catalog-migrate/SKILL.md +1 -1
  102. package/skills/education-cloud-domain-configure/references/domain-features/recruitment-admissions.md +8 -7
  103. package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -0
  104. package/skills/education-cloud-multi-campus-configure/references/error_handling.md +7 -6
  105. package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +2 -0
  106. package/skills/education-cloud-student-recruitment-agent-configure/references/customer-narration.md +2 -0
  107. package/skills/education-cloud-student-recruitment-agent-configure/references/flows.md +1 -1
  108. package/skills/education-cloud-student-recruitment-agent-configure/references/grounding.md +5 -4
  109. package/skills/education-cloud-student-recruitment-agent-configure/references/permissions.md +1 -1
  110. package/skills/education-cloud-student-recruitment-agent-configure/references/prerequisites.md +1 -1
  111. package/skills/education-cloud-student-recruitment-agent-configure/references/routing.md +1 -1
  112. package/skills/experience-afv-analytics-query/SKILL.md +239 -0
  113. package/skills/experience-afv-analytics-query/references/references.md +176 -0
  114. package/skills/experience-app-mcp-delivery-generate/SKILL.md +142 -0
  115. package/skills/experience-app-mcp-delivery-generate/references/eca-consumer-key.md +26 -0
  116. package/skills/experience-app-mcp-delivery-generate/references/mcp-config-delivery.md +38 -0
  117. package/skills/experience-app-mcp-delivery-generate/references/plugin-format-and-publishing.md +80 -0
  118. package/skills/experience-app-mcp-delivery-generate/scripts/developer_name.mjs +9 -0
  119. package/skills/experience-app-mcp-delivery-generate/scripts/discover_mcp_context.mjs +114 -0
  120. package/skills/experience-app-mcp-delivery-generate/scripts/generate_mcp_config.mjs +27 -0
  121. package/skills/experience-app-mcp-delivery-generate/scripts/generate_plugin.mjs +184 -0
  122. package/skills/experience-app-mcp-delivery-generate/scripts/mcp_config.mjs +57 -0
  123. package/skills/experience-app-mcp-delivery-generate/scripts/preflight.mjs +109 -0
  124. package/skills/experience-app-mcp-delivery-generate/scripts/retrieve_eca_consumer_key.mjs +143 -0
  125. package/skills/experience-app-mcp-generate/SKILL.md +174 -0
  126. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.eca-meta.xml +7 -0
  127. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaGlblOauth-meta.xml +15 -0
  128. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauth-meta.xml +6 -0
  129. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauthPlcy-meta.xml +12 -0
  130. package/skills/experience-app-mcp-generate/assets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xml +7 -0
  131. package/skills/experience-app-mcp-generate/assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml +5 -0
  132. package/skills/experience-app-mcp-generate/references/eca-fields.md +76 -0
  133. package/skills/experience-app-mcp-generate/references/mcp-objects.md +66 -0
  134. package/skills/experience-app-mcp-generate/references/tool-bindings.md +85 -0
  135. package/skills/experience-app-mcp-generate/references/troubleshooting.md +41 -0
  136. package/skills/experience-app-mcp-generate/references/ui-frameworks.md +19 -0
  137. package/skills/experience-app-mcp-generate/references/widget-resources.md +96 -0
  138. package/skills/experience-app-mcp-generate/scripts/activate_server.mjs +166 -0
  139. package/skills/experience-app-mcp-generate/scripts/check_setup_progress.mjs +212 -0
  140. package/skills/experience-app-mcp-generate/scripts/list_sites.mjs +211 -0
  141. package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +407 -0
  142. package/skills/experience-app-mcp-generate/scripts/preflight.mjs +127 -0
  143. package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +144 -0
  144. package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +64 -0
  145. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_prompts.mjs +145 -0
  146. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_tools.mjs +72 -0
  147. package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +195 -0
  148. package/skills/experience-app-mcp-generate/scripts/utils/callback_url.mjs +36 -0
  149. package/skills/experience-app-mcp-generate/scripts/utils/developer_name.mjs +9 -0
  150. package/skills/experience-app-mcp-generate/scripts/utils/eca_check.mjs +156 -0
  151. package/skills/experience-app-mcp-generate/scripts/utils/metadata_path.mjs +13 -0
  152. package/skills/experience-app-mcp-generate/scripts/verify_server.mjs +118 -0
  153. package/skills/experience-cms-content-type-generate/SKILL.md +8 -7
  154. package/skills/experience-cms-content-type-generate/references/agent-checklist.md +3 -3
  155. package/skills/experience-cms-content-type-generate/references/anti-patterns.md +2 -2
  156. package/skills/experience-cms-content-type-generate/references/discovery-details.md +1 -1
  157. package/skills/experience-cms-content-type-generate/references/retrieve-and-reconcile.md +5 -9
  158. package/skills/experience-ui-bundle-custom-app-generate/scripts/resolve-uibundle-path.mjs +10 -0
  159. package/skills/field-service-data-capture-migrate/references/converter-builder-contract.md +2 -2
  160. package/skills/field-service-data-capture-migrate/references/fsm-dc-capability-catalog.md +2 -2
  161. package/skills/field-service-data-capture-migrate/scripts/analyze_flow.py +1 -1
  162. package/skills/field-service-data-capture-migrate/scripts/convert_to_dc_spec.py +1 -1
  163. package/skills/field-service-data-capture-migrate/scripts/fsm_dc_catalog.py +2 -2
  164. package/skills/field-service-data-capture-migrate/scripts/generate_summary.py +2 -2
  165. package/skills/nonprofit-fundraising-configure/SKILL.md +1 -1
  166. package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +52 -4
  167. package/skills/nonprofit-fundraising-configure/references/permission-targeting.md +19 -2
  168. package/skills/platform-custom-application-generate/SKILL.md +97 -104
  169. package/skills/platform-custom-application-generate/references/app-properties.md +52 -0
  170. package/skills/platform-custom-application-generate/references/app-visibility.md +19 -0
  171. package/skills/platform-custom-application-generate/references/utility-bar.md +55 -0
  172. package/skills/platform-custom-field-generate/SKILL.md +24 -16
  173. package/skills/platform-custom-metadata-type-generate/SKILL.md +1 -0
  174. package/skills/platform-custom-setting-generate/SKILL.md +1 -0
  175. package/skills/platform-datamask-run/SKILL.md +1 -1
  176. package/skills/platform-datamask-run/references/policy-authoring.md +41 -18
  177. package/skills/platform-dataspace-access-configure/SKILL.md +25 -10
  178. package/skills/platform-dsar-policy-manage/SKILL.md +7 -6
  179. package/skills/platform-dsar-policy-manage/references/export-and-history.md +10 -8
  180. package/skills/platform-dsar-policy-manage/references/report-format.md +4 -2
  181. package/skills/platform-flexipage-generate/SKILL.md +7 -10
  182. package/skills/platform-flexipage-generate/references/mcp_action_examples.md +42 -38
  183. package/skills/platform-metadata-grounding-get/SKILL.md +7 -7
  184. package/skills/platform-policy-rule-generate/SKILL.md +9 -7
  185. package/skills/platform-policy-rule-generate/references/condition-model.md +3 -3
  186. package/skills/platform-policy-rule-generate/references/conjunction-expression.md +9 -1
  187. package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +9 -1
  188. package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +1 -2
  189. package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +1 -2
  190. package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +1 -2
  191. package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +1 -2
  192. package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +1 -0
  193. package/skills/platform-policy-rule-generate/references/headless-transport.md +2 -2
  194. package/skills/platform-policy-rule-generate/references/policy-schema-full.md +1 -1
  195. package/skills/platform-policy-rule-generate/references/policy-shapes.md +33 -0
  196. package/skills/platform-policy-rule-generate/references/templates-advanced.md +1 -1
  197. package/skills/platform-policy-rule-generate/references/ui-compatibility.md +5 -5
  198. package/skills/platform-report-generate/SKILL.md +29 -8
  199. package/skills/platform-report-generate/references/column-names.md +12 -1
  200. package/skills/platform-report-generate/references/errors-and-troubleshooting.md +1 -1
  201. package/skills/platform-report-generate/references/summary-formulas-sorting-limits.md +118 -0
  202. package/skills/platform-report-generate/references/verification-checklist.md +12 -0
  203. package/skills/platform-sharing-rules-generate/SKILL.md +12 -3
  204. package/skills/platform-sharing-rules-generate/references/rule-types.md +1 -0
  205. package/skills/service-agentforce-channel-configure/SKILL.md +6 -3
  206. package/skills/service-agentforce-channel-configure/references/agent-wiring.md +5 -3
  207. package/skills/service-agentforce-channel-configure/references/channel-branch-email.md +24 -15
  208. package/skills/service-agentforce-channel-configure/references/input-validation.md +23 -0
  209. package/skills/service-agentforce-channel-configure/references/live-traffic-gate.md +13 -7
  210. package/skills/service-agentforce-channel-configure/references/queue-resolution.md +3 -1
  211. package/skills/service-agentforce-human-escalation-configure/references/_vendored/input-validation.md +23 -0
  212. package/skills/service-agentforce-human-escalation-configure/references/_vendored/queue-resolution.md +146 -0
  213. package/skills/service-agentforce-human-escalation-configure/references/escalation-mechanism.md +1 -1
  214. package/skills/service-agentforce-human-escalation-configure/scripts/tests/_bootstrap.py +42 -11
  215. package/skills/service-agentforce-human-escalation-configure/scripts/tests/test_escalation_contracts.py +45 -0
  216. package/skills/service-agentforce-human-escalation-configure/scripts/verify-and-configure.sh +23 -9
  217. package/skills/service-de-channel-activate/SKILL.md +10 -10
  218. package/skills/service-de-channel-activate/references/gotchas.md +4 -4
  219. package/skills/service-de-channel-activate/references/phone-verification.md +43 -19
  220. package/skills/service-de-channel-create/SKILL.md +1 -1
  221. package/skills/service-de-channel-create/references/facebook.md +1 -1
  222. package/skills/service-de-channel-create/references/whatsapp.md +33 -6
  223. package/skills/service-de-channel-routing-configure/SKILL.md +5 -1
  224. package/skills/service-de-channel-routing-configure/references/gotchas.md +3 -1
  225. package/skills/service-de-channel-routing-configure/references/named-queue.md +39 -0
  226. package/skills/service-de-channel-settings-configure/SKILL.md +3 -1
  227. package/skills/service-de-channel-settings-configure/references/channel-settings-facets.md +2 -2
  228. package/skills/service-de-channel-settings-configure/references/gotchas.md +12 -1
  229. package/skills/service-de-headless-channel-configure/SKILL.md +68 -74
  230. package/skills/service-de-headless-channel-configure/references/gotchas.md +6 -2
  231. package/skills/service-de-headless-channel-configure/references/inputs.md +19 -0
  232. package/skills/service-de-headless-channel-configure/references/output-envelopes.md +23 -1
  233. package/skills/service-de-headless-channel-configure/references/partial-success.md +1 -0
  234. package/skills/service-de-headless-channel-configure/references/requested-settings.md +55 -0
  235. package/skills/service-de-headless-channel-configure/references/worked-examples.md +35 -1
  236. package/skills/service-digital-engagement-channel-configure/SKILL.md +45 -108
  237. package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +2 -0
  238. package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +2 -2
  239. package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +58 -0
  240. package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +2 -2
  241. package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
  242. package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +18 -14
  243. package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +17 -21
  244. package/skills/service-digital-engagement-channel-configure/references/prechat_params.md +10 -0
  245. package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +38 -0
  246. package/skills/service-digital-engagement-channel-configure/references/user_verification.md +9 -0
  247. package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +4 -4
  248. package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh +12 -7
  249. package/skills/service-digital-engagement-deployment-configure/SKILL.md +2 -2
  250. package/skills/service-digital-engagement-deployment-configure/references/onboarding_contract.md +4 -2
  251. package/skills/service-digital-engagement-deployment-configure/scripts/check-api-version.sh +1 -1
  252. package/skills/service-e911-configure/SKILL.md +242 -0
  253. package/skills/service-itsm-agentic-setup-agent-runtime-access-assign/SKILL.md +1 -1
  254. package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +1 -1
  255. package/skills/service-itsm-agentic-setup-agentforce-studio-configure/SKILL.md +1 -1
  256. package/skills/service-itsm-agentic-setup-agentforce-studio-validate/SKILL.md +1 -1
  257. package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +1 -1
  258. package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +1 -1
  259. package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +47 -44
  260. package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +110 -83
  261. package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +7 -3
  262. package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +7 -5
  263. package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +2 -2
  264. package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +437 -0
  265. package/skills/service-itsm-agentic-setup-itsm-agentforce-permset-assign/SKILL.md +1 -1
  266. package/skills/service-omni-command-center-configure/SKILL.md +1 -1
  267. package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
  268. package/skills/data360-schema-get/SKILL.md +0 -388
  269. package/skills/data360-schema-get/references/README.md +0 -191
  270. package/skills/data360-schema-get/scripts/get_dlo_schema.py +0 -244
  271. package/skills/data360-schema-get/scripts/get_dmo_schema.py +0 -233
  272. package/skills/dx-lifecycle-center/assets/widgets/connect-connected/connect-connected.json +0 -65
  273. package/skills/dx-lifecycle-center/assets/widgets/connect-connected/schema.json +0 -32
  274. package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/connect-sign-in.json +0 -57
  275. package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/schema.json +0 -21
  276. package/skills/dx-lifecycle-center/scripts/card-policy.jq +0 -71
  277. package/skills/dx-lifecycle-center/scripts/fill-widget.jq +0 -29
  278. package/skills/dx-lifecycle-center/scripts/widget.sh +0 -28
  279. package/skills/experience-content-media-image-generate/SKILL.md +0 -83
  280. package/skills/experience-content-media-image-generate/scripts/download-image.sh +0 -84
  281. package/skills/experience-content-media-stock-image-search/SKILL.md +0 -193
  282. package/skills/experience-content-media-stock-image-search/scripts/download-stock-image.py +0 -102
  283. package/skills/field-service-prework-brief-deployer-configure/SKILL.md +0 -646
  284. package/skills/field-service-voice-to-form-configure/SKILL.md +0 -650
@@ -0,0 +1,891 @@
1
+ # Data Library Reference (ADL)
2
+
3
+ How to provision an Agentforce Data Library (ADL) and wire it into an Agent Script `.agent` file so the agent can answer questions grounded on uploaded documents, Knowledge articles, or a custom retriever.
4
+
5
+ This reference is consumed by the **Create an Agent** and **Modify an Existing Agent** workflows in `SKILL.md`. The parent skill decides *whether* to provision an ADL (by asking the user); this file owns *how*.
6
+
7
+ ## Use `sf agent adl` CLI Commands
8
+
9
+ All ADL operations use the `sf agent adl` CLI. The CLI handles authentication, API version negotiation, polling, and error formatting automatically.
10
+
11
+ Available commands:
12
+
13
+ | Command | Purpose |
14
+ |---------|---------|
15
+ | `sf agent adl create` | Create a new library (SFDRIVE, KNOWLEDGE, or RETRIEVER) |
16
+ | `sf agent adl upload` | Upload file(s) to a SFDRIVE library and trigger indexing |
17
+ | `sf agent adl get` | Get full details of a library (status, retrieverId, config) |
18
+ | `sf agent adl status` | Get indexing stage details |
19
+ | `sf agent adl list` | List all libraries in the org |
20
+ | `sf agent adl update` | Update library metadata, content fields, or swap retriever |
21
+ | `sf agent adl delete` | Permanently delete a library |
22
+ | `sf agent adl file add` | Day-2: add files to an existing SFDRIVE library |
23
+ | `sf agent adl file list` | List files in a SFDRIVE library |
24
+ | `sf agent adl file delete` | Remove a file from a SFDRIVE library |
25
+
26
+ ### CLI Command Reference
27
+
28
+ #### `sf agent adl create`
29
+
30
+ Creates a new data library. The `--source-type` determines which additional flags are required.
31
+
32
+ ```text
33
+ FLAGS (required):
34
+ -n, --name=<value> Display name (max 80 chars)
35
+ -o, --target-org=<value> Target org alias or username
36
+ --developer-name=<value> API name (alphanumeric + underscores, starts with letter, max 80 chars)
37
+ --source-type=<option> sfdrive | knowledge | retriever
38
+
39
+ FLAGS (optional / conditional):
40
+ --description=<value> Description (max 255 chars)
41
+ --index-mode=<option> basic | enhanced (SFDRIVE only; defaults to basic when omitted; controls Intelligent Context — see "Index mode" under Option A)
42
+ --retriever-id=<value> Active Custom Retriever ID (required for RETRIEVER)
43
+ --primary-index-field1=<value> First primary index field (required for KNOWLEDGE, immutable)
44
+ --primary-index-field2=<value> Second primary index field (required for KNOWLEDGE, immutable)
45
+ --content-fields=<value> Comma-separated content fields (KNOWLEDGE only; mutable after creation)
46
+ --data-category-ids=<value> Comma-separated data category selection IDs (KNOWLEDGE only; mutually exclusive with --data-category-names)
47
+ --data-category-names=<value> Comma-separated data category names, qualified form "Group_API_Name.Category" (KNOWLEDGE only; mutually exclusive with --data-category-ids)
48
+ --wait=<value> Minutes to wait for indexing (KNOWLEDGE only; SFDRIVE indexes on upload, RETRIEVER is ready immediately)
49
+ --json Output as JSON (always use this)
50
+ ```
51
+
52
+ For KNOWLEDGE libraries, `--content-fields`, `--data-category-ids`, and `--data-category-names` can now be set at creation time (previously only `sf agent adl update` set content fields). `--data-category-ids` and `--data-category-names` are mutually exclusive — pass one or the other, not both.
53
+
54
+ #### `sf agent adl upload`
55
+
56
+ Uploads file(s) to a SFDRIVE library. Handles presigned URL, S3 upload, indexing trigger, and optional polling.
57
+
58
+ ```text
59
+ FLAGS (required):
60
+ -i, --library-id=<value> Library ID (18-char, prefix 1JD)
61
+ -f, --file=<value>... File path(s) — repeat flag for multiple files
62
+ -o, --target-org=<value> Target org
63
+
64
+ FLAGS (optional):
65
+ -w, --wait=<value> Minutes to poll for READY (omit = return immediately)
66
+ --json Output as JSON
67
+ ```
68
+
69
+ #### `sf agent adl get`
70
+
71
+ Returns full library details including status, retrieverId, and grounding source config.
72
+
73
+ ```text
74
+ FLAGS (required):
75
+ -i, --library-id=<value> Library ID
76
+ -o, --target-org=<value> Target org
77
+
78
+ FLAGS (optional):
79
+ --json Output as JSON
80
+ ```
81
+
82
+ #### `sf agent adl status`
83
+
84
+ Returns indexing stage details: `DATA_LAKE_OBJECT → DATA_MODEL_OBJECT → SEARCH_INDEX → INDEXING → RETRIEVER`. Each stage also reports an error classification when it fails.
85
+
86
+ ```text
87
+ FLAGS (required):
88
+ -i, --library-id=<value> Library ID
89
+ -o, --target-org=<value> Target org
90
+
91
+ FLAGS (optional):
92
+ --include-artifacts Resolve provisioned Data Cloud asset details (DataStream, DLO, DMO, SearchIndex, Retriever) on each stage. Slower — issues extra queries.
93
+ --json Output as JSON
94
+ ```
95
+
96
+ #### `sf agent adl list`
97
+
98
+ Lists all libraries in the org.
99
+
100
+ ```text
101
+ FLAGS (required):
102
+ -o, --target-org=<value> Target org
103
+
104
+ FLAGS (optional):
105
+ --source-type=<option> Filter: sfdrive | knowledge | retriever
106
+ --json Output as JSON
107
+ ```
108
+
109
+ #### `sf agent adl update`
110
+
111
+ Updates mutable properties. Some changes trigger re-indexing.
112
+
113
+ ```text
114
+ FLAGS (required):
115
+ -i, --library-id=<value> Library ID
116
+ -o, --target-org=<value> Target org
117
+
118
+ FLAGS (optional):
119
+ -n, --name=<value> New display name
120
+ --description=<value> New description
121
+ --content-fields=<value> Comma-separated fields (KNOWLEDGE; triggers re-index)
122
+ --[no-]restrict-to-public-articles Public articles only (KNOWLEDGE; triggers re-index)
123
+ --retriever-id=<value> Swap retriever (RETRIEVER only; must be active)
124
+ --json Output as JSON
125
+ ```
126
+
127
+ #### `sf agent adl delete`
128
+
129
+ Permanently deletes a library and all associated files/indexing data.
130
+
131
+ ```text
132
+ FLAGS (required):
133
+ -i, --library-id=<value> Library ID
134
+ -o, --target-org=<value> Target org
135
+ ```
136
+
137
+ #### `sf agent adl file add`
138
+
139
+ Day-2 operation: add files to an existing SFDRIVE library (must already be READY).
140
+
141
+ ```text
142
+ FLAGS (required):
143
+ -i, --library-id=<value> Library ID
144
+ -f, --path=<value>... File path(s) — repeat for batch
145
+ -o, --target-org=<value> Target org
146
+
147
+ Constraints: ≥1 file, no duplicate names in batch, max 1000 files per library.
148
+ ```
149
+
150
+ #### `sf agent adl file list`
151
+
152
+ Lists files in a SFDRIVE library (name, size, creation date, per-file indexing status). Paginated — returns one page at a time plus a total count, so it lists every file even in libraries with more than 200 files (unlike `sf agent adl get`, whose inline file list is capped at 200).
153
+
154
+ ```text
155
+ FLAGS (required):
156
+ -i, --library-id=<value> Library ID
157
+ -o, --target-org=<value> Target org
158
+
159
+ FLAGS (optional):
160
+ --page-size=<value> Files per page, 1–200 (default 50)
161
+ --offset=<value> Number of files to skip before returning results (pagination)
162
+ --status=<option> Filter by indexing status: uploaded | indexing | indexed | index_failed | deleting | delete_failed
163
+ --json Output as JSON
164
+ ```
165
+
166
+ When more files remain beyond the current page, the command reports how many of the total it is showing — increase `--page-size` or page through with `--offset` to see the rest.
167
+
168
+ #### `sf agent adl file delete`
169
+
170
+ Removes a file and triggers search index re-hydration. Deletion is asynchronous — the command reports that deletion was initiated; use `sf agent adl file list` to check when the file clears.
171
+
172
+ ```text
173
+ FLAGS (required):
174
+ -i, --library-id=<value> Library ID
175
+ --file-id=<value> AiGroundingFileRef record ID
176
+ -o, --target-org=<value> Target org
177
+ ```
178
+
179
+ ## Org setup prerequisite
180
+
181
+ If the org is fresh (just licensed, not yet configured), read [Org Setup for ADL](org-setup-for-adl.md) FIRST. That reference handles:
182
+ - Enabling Einstein GPT Platform + Agentforce (settings deploy)
183
+ - Admin user permsets (Data Cloud Architect, Prompt Template Manager, CopilotSalesforceAdmin)
184
+ - Lightning Knowledge enablement
185
+ - Data Cloud verification + CRM Connector
186
+ - Einstein Agent User creation + permissions (AllowViewKnowledge + viewAllRecords)
187
+
188
+ If Step 0 below fails, the org likely hasn't been set up yet — go to [Org Setup for ADL](org-setup-for-adl.md).
189
+
190
+ ## What this reference covers
191
+
192
+ - **Step 0** — Verify Data Cloud is provisioned. ADL has a hard dependency on Data Cloud.
193
+ - **Option A: SFDRIVE (File Library)** — Steps 1–7: Create library, upload file, trigger indexing, poll until ready. Step 8: Day-2 add more files.
194
+ - **Option B: KNOWLEDGE (Knowledge Article Library)** — Create library with knowledgeConfig, trigger indexing, poll until ready. Day-2: update config fields.
195
+ - **Option C: RETRIEVER (Custom Retriever Library)** — Create library with active retrieverId, immediately ready.
196
+ - **Wiring the ADL into Agent Script** — the `knowledge:` block + `AnswerQuestionsWithKnowledge` action (same for all source types).
197
+
198
+ ## Source type decision guide
199
+
200
+ Ask the user which grounding source they want:
201
+
202
+ | Source Type | Use When | Provisioning |
203
+ |-------------|----------|-------------|
204
+ | **SFDRIVE** | User has PDF/TXT/HTML docs to upload | Upload → Index → READY (2-10 min) |
205
+ | **KNOWLEDGE** | Org has Salesforce Knowledge articles | Create → Auto-index from KAV → READY (2-10 min) |
206
+ | **RETRIEVER** | User has an existing active Custom Retriever | Create → Immediately READY (no provisioning) |
207
+
208
+ If the user says "knowledge base" or "FAQ articles" → KNOWLEDGE. If they say "upload files" or "documents" → SFDRIVE. If they say "I have a retriever" or "custom search" → RETRIEVER.
209
+
210
+ **When intent is ambiguous, ASK — do not guess.** Common ambiguous cases:
211
+ - "knowledge-grounded agent from a PDF" — could be SFDRIVE (upload PDF directly) or KNOWLEDGE (extract content into articles, then ground on those). Ask which approach the user wants.
212
+ - "add knowledge to my agent" — generic word "knowledge" doesn't indicate source type. Ask.
213
+ - File path + "knowledge" in the same request — the file could be the grounding source (SFDRIVE) or input for creating articles (KNOWLEDGE). Ask.
214
+
215
+ ## Outputs the parent skill consumes
216
+
217
+ After Step 7 succeeds, hand the parent skill these values:
218
+ - `libraryId` — the raw library ID returned by the create call.
219
+ - `retrieverId` — populated once indexing completes.
220
+ - `rag_feature_config_id` — derived as `"ARFPC_" + libraryId`. This is the value that goes into the `.agent` file's `knowledge:` block. It is **not** the raw libraryId.
221
+
222
+ ## Prerequisites
223
+
224
+ `sf` (Salesforce CLI) must be on PATH. STOP if missing — do not proceed.
225
+
226
+ ```bash
227
+ command -v sf >/dev/null 2>&1 || echo "MISSING: sf (Salesforce CLI)"
228
+ ```
229
+
230
+ If `sf` is missing, do NOT auto-install. Offer:
231
+ - Homebrew (recommended on macOS): `brew install --cask sf`
232
+ - npm (Node 20+): `npm install -g @salesforce/cli`
233
+ - `.pkg` installer: https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm
234
+
235
+ Minimum version: `@salesforce/cli 2.139.6` (includes ADL commands). Check with `sf --version`.
236
+
237
+ Confirm the target org is authenticated:
238
+
239
+ ```bash
240
+ sf org display --target-org <org-alias> --json
241
+ ```
242
+
243
+ If auth is missing: `sf org login web --alias <alias> --instance-url https://<your-org>.my.salesforce.com`. Do not guess the alias — ask if unspecified.
244
+
245
+ Set the target-org alias as a shell variable now — every command from Step 0 onward references it:
246
+
247
+ ```bash
248
+ TARGET_ORG="<org-alias>"
249
+ ```
250
+
251
+ Substitute the user's real alias before continuing.
252
+
253
+ ## Step 0 — Verify Data Cloud is provisioned and ADL is reachable
254
+
255
+ ADL requires both (a) Data Cloud provisioning to be complete and (b) the ADL service routes to be healthy. The two are independent in practice — orgs can have DC provisioned but a broken ADL service. Run both checks; do not collapse them.
256
+
257
+ ### 0a. DC provisioning check — `DataKnowledgeSpace`
258
+
259
+ ```bash
260
+ sf data query --target-org "$TARGET_ORG" --json -q "SELECT COUNT() FROM DataKnowledgeSpace"
261
+ ```
262
+
263
+ - Returns without error (any `totalSize`, including 0) → ✅ Data Cloud is provisioned. Continue to 0b.
264
+ - `INVALID_TYPE` error → ❌ Data Cloud is NOT provisioned. Skip 0b and **STOP** with the A/B prompt below.
265
+
266
+ > **Why `DataKnowledgeSpace` and not `DataStream__dlm`:** `DataKnowledgeSpace` is the exact object the ADL pipeline depends on, and is queryable as soon as DC provisioning completes. `DataStream__dlm` only materializes after a user creates a data stream — querying it yields `INVALID_TYPE` even on fully-provisioned orgs that have never run a stream, so it produces a false-negative on healthy DC orgs.
267
+
268
+ ### 0b. ADL service health check — `sf agent adl list`
269
+
270
+ DC is provisioned. Confirm the ADL service itself is reachable on this org:
271
+
272
+ ```bash
273
+ sf agent adl list --target-org "$TARGET_ORG" --json
274
+ ```
275
+
276
+ - **`status: 0`** (success) → ✅ ADL service is healthy. The response includes `result.libraries[]` — useful for reuse if a matching `developerName` is already provisioned. Continue to Step 1.
277
+ - **Error with `"This feature is not currently enabled"`** → ⚠️ The ADL API checks both org-level and user-level access:
278
+ - **User-level:** Logged-in user needs ONE of: `CustomizeApplication` (System Admin), `EinsteinCopilotBuilder`, `EinsteinAgentPlatformBuilder`, or `SelfServiceCopilotBuilder`. The `CopilotSalesforceAdmin` permset grants these.
279
+ - **Org-level:** Org needs `EinsteinKnowledgeConfig` org perm AND the ADL Connect API gate enabled.
280
+ - **Fix:** First check if admin user has `CopilotSalesforceAdmin` permset (see [Org Setup for ADL](org-setup-for-adl.md), Step 0). If assigned and error persists, the org is missing the ADL feature gate — show the A/B prompt below.
281
+ - **Error with `"INTERNAL_ERROR"`** → ⚠️ DC is provisioned but the ADL service is unhealthy. Tell the user:
282
+
283
+ ```text
284
+ ⚠️ Data Cloud is provisioned, but the Agentforce Data Library service is
285
+ returning an internal error on this org. ADL provisioning will fail
286
+ until the service recovers. Options:
287
+
288
+ A. Skip knowledge grounding for this run — author the agent without an ADL.
289
+ B. Try a different org where ADL is healthy.
290
+ C. Open a support case if this org should have ADL working.
291
+ ```
292
+
293
+ Default to option A — author without a `knowledge:` block — unless the user picks B or C.
294
+ - **Auth error** → Re-authenticate: `sf org login web --alias "$TARGET_ORG"` and retry.
295
+
296
+ ### A/B prompt — DC not provisioned
297
+
298
+ ```text
299
+ ⚠️ Data Cloud is not provisioned in this org.
300
+
301
+ An ADL requires Data Cloud, which provisions asynchronously (~30 min – 2 hr).
302
+ Choose one:
303
+
304
+ A. Trigger Data Cloud provisioning now — I'll deploy CustomerDataPlatformSettings
305
+ and have you click "Get Started" on the Setup page. Provisioning runs in the
306
+ background. We'll skip ADL on this pass and you can re-run /agentforce-generate
307
+ to add grounding once it's live.
308
+ B. Skip knowledge grounding — the agent will be authored without an ADL. You can
309
+ add it later by re-running this workflow.
310
+ ```
311
+
312
+ - **If A — trigger DC and exit the ADL flow on this pass:**
313
+ 1. Create `force-app/main/default/settings/CustomerDataPlatform.settings-meta.xml`:
314
+ ```xml
315
+ <?xml version="1.0" encoding="UTF-8"?>
316
+ <CustomerDataPlatformSettings xmlns="http://soap.sforce.com/2006/04/metadata">
317
+ <enableCustomerDataPlatform>true</enableCustomerDataPlatform>
318
+ </CustomerDataPlatformSettings>
319
+ ```
320
+ 2. Deploy: `sf project deploy start --json --async --source-dir force-app/main/default/settings/CustomerDataPlatform.settings-meta.xml`
321
+ 3. Wait ~60s, re-run the `DataKnowledgeSpace` query from 0a. If it succeeds, re-run 0b. If both pass, continue to Step 1.
322
+ 4. Still `INVALID_TYPE` after ~2 min → open `sf org open --target-org "$TARGET_ORG" --path "/lightning/setup/CDPSetupHome/home"` and instruct the user:
323
+
324
+ ```text
325
+ 👤 I've opened the Data Cloud setup page. Click the "Get Started" button.
326
+ Provisioning runs async (~30 min – 2 hr). When it's live, re-run
327
+ /agentforce-generate to add knowledge grounding.
328
+ ```
329
+ 5. **Exit the ADL flow.** Tell the parent skill to author the agent without a `knowledge:` block on this pass.
330
+
331
+ - **If B — skip ADL:** Tell the parent skill the user opted out. Author the agent without a `knowledge:` block.
332
+
333
+ **Visual cross-check:** If you're uncertain about the verdict from 0a/0b, open `/lightning/setup/CDPSetupHome/home`. If the page reads *"Your Data Cloud instance is live and connected"*, DC is provisioned regardless of what the SOQL says. The page state is the ground truth the user sees in Setup.
334
+
335
+ ## Variables
336
+
337
+ Resolve these once after Step 0 passes (`TARGET_ORG` was already set in Prerequisites):
338
+
339
+ ```bash
340
+ FILE_NAME="<absolute-path-to-file>" # e.g. ~/docs/product-manual.pdf
341
+ ADL_DevName="<snake_case_unique>" # e.g. MyLib_0424_ab3
342
+ ADL_Name="<human readable label>" # e.g. "Product Documentation"
343
+ ```
344
+
345
+ All `sf agent adl` commands use `--target-org "$TARGET_ORG"` for authentication — no manual token management needed. If the session expires, re-authenticate with `sf org login web --alias "$TARGET_ORG"`.
346
+
347
+ Confirm the file to upload exists and is a supported type (PDF, TXT, HTML). Max file size: 100 MB.
348
+
349
+ **Important:** Read the file content before proceeding. Use the Read tool on the PDF to understand what it contains. Do NOT ask the user "what's in the file?" — inspect it yourself. The content determines:
350
+ - Agent description and instructions
351
+ - Test queries for preview validation
352
+ - Whether the file is suitable for grounding (empty or corrupt files will fail)
353
+
354
+ ## Option A: SFDRIVE — File Library
355
+
356
+ Use this when the user has PDF, TXT, or HTML documents to upload. The library ingests files, indexes them, and makes content available for grounded retrieval.
357
+
358
+ ### Step 1 — Create the SFDRIVE library
359
+
360
+ ```bash
361
+ sf agent adl create \
362
+ --target-org "$TARGET_ORG" \
363
+ --name "$ADL_Name" \
364
+ --developer-name "$ADL_DevName" \
365
+ --source-type sfdrive \
366
+ --json
367
+ ```
368
+
369
+ Read the JSON response and capture `result.libraryId`:
370
+
371
+ ```bash
372
+ LIBRARY_ID="<paste result.libraryId from the response>"
373
+ ```
374
+
375
+ #### Choosing `--index-mode` (Intelligent Context)
376
+
377
+ SFDRIVE libraries index through the **Just-in-Time (JIT)** pipeline, which is the default on new libraries. The optional `--index-mode` flag controls whether **Intelligent Context (IC)** — LLM-based content processing — is applied during indexing. IC is exposed as a toggle in the Setup UI; `--index-mode` is the API equivalent.
378
+
379
+ | `--index-mode` | UI label | Cost |
380
+ |----------------|----------|------|
381
+ | `enhanced` | "Intelligent Context" | Substantially higher per-file processing cost |
382
+ | `basic` | "Text Only" | Standard (lower) |
383
+
384
+ `enhanced` turns Intelligent Context on: the file is processed to better handle complex content such as tables, images, and document structure. `basic` is the toggle-off state, labeled "Text Only" in the UI. When `--index-mode` is omitted, the library is created with `basic` (the persisted `indexMode` is `BASIC`).
385
+
386
+ The tradeoff is cost vs. handling of complex content: `enhanced` (IC) is costly, and the toggle exists so it can be disabled when that processing isn't needed. Weigh whether the corpus has content — tables, images, infographics — that depends on IC's processing against the added cost.
387
+
388
+ ### Step 2 — Upload file(s) and wait for READY
389
+
390
+ The `upload` command handles the entire flow: readiness check, presigned URL, S3 upload, indexing trigger, and polling.
391
+
392
+ For a single file:
393
+
394
+ ```bash
395
+ sf agent adl upload \
396
+ -i "$LIBRARY_ID" \
397
+ --target-org "$TARGET_ORG" \
398
+ --file "$FILE_NAME" \
399
+ --wait 10 \
400
+ --json
401
+ ```
402
+
403
+ For multiple files (batch):
404
+
405
+ ```bash
406
+ sf agent adl upload \
407
+ -i "$LIBRARY_ID" \
408
+ --target-org "$TARGET_ORG" \
409
+ --file "$FILE_NAME_1" \
410
+ --file "$FILE_NAME_2" \
411
+ --wait 10 \
412
+ --json
413
+ ```
414
+
415
+ The `--wait 10` flag polls until the library reaches READY (up to 10 minutes). When it returns:
416
+
417
+ ```json
418
+ {
419
+ "status": "READY",
420
+ "libraryId": "1JD...",
421
+ "retrieverId": "1Cx...",
422
+ "ragFeatureConfigId": "ARFPC_1JD..."
423
+ }
424
+ ```
425
+
426
+ - `retrieverId` non-null → library is ready for grounding.
427
+ - `ragFeatureConfigId` — this is the value for the `.agent` file's `knowledge:` block.
428
+
429
+ If you omit `--wait`, the command returns immediately with `status: IN_PROGRESS`. Use `sf agent adl status` or `sf agent adl get` to check readiness later.
430
+
431
+ #### Checking status manually
432
+
433
+ ```bash
434
+ sf agent adl status -i "$LIBRARY_ID" --target-org "$TARGET_ORG"
435
+ ```
436
+
437
+ Shows stage progression: `DATA_LAKE_OBJECT → DATA_MODEL_OBJECT → SEARCH_INDEX → INDEXING → RETRIEVER`
438
+
439
+ #### Confirming readiness
440
+
441
+ ```bash
442
+ sf agent adl get -i "$LIBRARY_ID" --target-org "$TARGET_ORG" --json
443
+ ```
444
+
445
+ Check `result.retrieverId` — non-null means ready. The top-level `status` may lag behind; trust `retrieverId`.
446
+
447
+ At this point the parent skill receives:
448
+ - `libraryId` — from Step 1
449
+ - `retrieverId` — from Step 2 response
450
+ - `rag_feature_config_id` — from Step 2 response (or computed as `"ARFPC_" + libraryId`)
451
+
452
+ ### Step 3 — (Optional) Add more files to an existing library
453
+
454
+ For day-2 incremental additions to an already-provisioned SFDRIVE library:
455
+
456
+ ```bash
457
+ sf agent adl file add \
458
+ -i "$LIBRARY_ID" \
459
+ --path "$NEW_FILE_1" \
460
+ --path "$NEW_FILE_2" \
461
+ --target-org "$TARGET_ORG" \
462
+ --json
463
+ ```
464
+
465
+ `file add` vs `upload`: `upload` (Step 2) provisions the full Data Cloud pipeline — it creates the downstream assets (DLO, DMO, SearchIndex, Retriever) on first ingest. `file add` does **not** create new downstream assets; it appends files to the existing SearchIndex and triggers re-indexing. Use `upload` for the initial ingest and `file add` for day-2 additions to a READY library.
466
+
467
+ Constraints:
468
+ - Library must already be READY (Day-0 provisioning complete).
469
+ - At least one file required per invocation.
470
+ - No duplicate file names in a batch.
471
+ - Total file count in the library must stay ≤ 1000.
472
+ - Only works on SFDRIVE libraries.
473
+
474
+ #### List files in the library
475
+
476
+ ```bash
477
+ sf agent adl file list -i "$LIBRARY_ID" --target-org "$TARGET_ORG"
478
+ ```
479
+
480
+ For libraries with many files, page through with `--page-size` / `--offset`, or filter to a specific state with `--status` (e.g. `--status index_failed` to find only the files that failed):
481
+
482
+ ```bash
483
+ sf agent adl file list -i "$LIBRARY_ID" --status index_failed --target-org "$TARGET_ORG"
484
+ ```
485
+
486
+ #### Delete a file
487
+
488
+ ```bash
489
+ sf agent adl file delete -i "$LIBRARY_ID" --file-id "<fileId>" --target-org "$TARGET_ORG"
490
+ ```
491
+
492
+ #### Per-file indexing status (JIT)
493
+
494
+ The JIT pipeline surfaces **per-file** status, not just the library-level stage progression. `sf agent adl file list` and `sf agent adl get` return a `status` for each file, so you can tell exactly which file is holding a library back. Prefer `file list` for this: it is paginated and returns every file, whereas `get` inlines at most 200 files. When a library holds more than 200 files, `get` reports the true total separately so you know the inline list is partial.
495
+
496
+ A file reports one of exactly six status values:
497
+
498
+ | Status | Meaning |
499
+ |--------|---------|
500
+ | `UPLOADED` | File landed in the library; indexing not yet started (in progress). |
501
+ | `INDEXING` | JIT pipeline is processing the file (in progress). |
502
+ | `INDEXED` | File is chunked and searchable — this is the success end state. |
503
+ | `INDEX_FAILED` | Indexing failed for this file — a failure end state. |
504
+ | `DELETING` | File is being removed (in progress). |
505
+ | `DELETE_FAILED` | File removal failed — a failure end state. |
506
+
507
+ Confirm the file you care about reached `INDEXED` before relying on grounded answers about that file's content. For a file at `INDEX_FAILED`, delete it and re-add it to retry.
508
+
509
+ ## Wiring the ADL into Agent Script
510
+
511
+ An indexed ADL does nothing until the `.agent` file declares the `knowledge:` block and at least one subagent invokes `AnswerQuestionsWithKnowledge`. This section gives the exact snippets — copy them verbatim, substituting `<libraryId>` with the value from Step 1.
512
+
513
+ ### 1. Top-level `knowledge:` block
514
+
515
+ Place between `connection:` (if present) and `language:` per the block ordering in [Core Language](agent-script-core-language.md), Section 2:
516
+
517
+ ```agentscript
518
+ knowledge:
519
+ rag_feature_config_id: "ARFPC_<libraryId>" # e.g. ARFPC_1JDg7000001hilBGAQ
520
+ citations_enabled: True # True to render inline citations
521
+ citations_url: "" # optional base URL prepended to citations
522
+ ```
523
+
524
+ - `rag_feature_config_id` is **not** the raw `libraryId`. It is `ARFPC_` + `libraryId`.
525
+ - `citations_enabled: True` turns on inline citation rendering in the agent's response.
526
+ - `citations_url` is usually empty. Set it when citations should resolve to a public URL with a known prefix.
527
+ - Without the top-level `knowledge:` block, the `@knowledge.*` references inside the action's input defaults fail compilation.
528
+
529
+ ### 2. Subagent that invokes the action
530
+
531
+ Inside whichever execution block should answer grounded questions, declare the
532
+ action invocation in the `actions:` block under `reasoning:`. State the
533
+ call-before-answer and grounding duties directly:
534
+
535
+ ```agentscript
536
+ subagent general_faq:
537
+ description: "Answer customer questions by searching knowledge."
538
+
539
+ reasoning:
540
+ instructions: ->
541
+ | Ask one concise clarifying question if the request is too vague
542
+ to search.
543
+ | For every substantive question, call AnswerQuestionsWithKnowledge
544
+ before answering.
545
+ | Answer only from the returned knowledge summary. If it is empty,
546
+ say the knowledge base has no answer and suggest contacting support.
547
+ | Include only sources and URLs returned by the action.
548
+
549
+ actions:
550
+ AnswerQuestionsWithKnowledge: @actions.AnswerQuestionsWithKnowledge
551
+ with query = ...
552
+ with citationsUrl = ...
553
+ with ragFeatureConfigId = ...
554
+ with citationsEnabled = ...
555
+ ```
556
+
557
+ The four `with` lines bind the action's inputs. The trailing `...` tells the planner to fill them — `query` from the user's utterance, the other three from the top-level `knowledge:` block via the action definition's defaults.
558
+
559
+ #### Anti-hallucination guard
560
+
561
+ When retrieval misses (the user asks about something not in the corpus, or the
562
+ library is still warming up), the returned knowledge summary is empty. Keep
563
+ four duties explicit: call before answering, ground only in returned content,
564
+ decline to answer when retrieval is empty, and cite only returned sources.
565
+ Do not put authoring-only `@outputs` paths or formatting micromanagement in
566
+ model-facing instructions.
567
+
568
+ Tune the refuse message to the domain. A compliance agent should say something like *"I don't have that in the [Manual Name]. Please contact [the relevant team]."* rather than the generic line above.
569
+
570
+ ### 3. Action definition
571
+
572
+ Add this `actions:` block at the same level as `reasoning:` (still inside `subagent general_faq:`). Copy verbatim — `target` and `source` are platform-fixed values:
573
+
574
+ ```agentscript
575
+ actions:
576
+ AnswerQuestionsWithKnowledge:
577
+ description: "Answers questions about company policies, procedures, troubleshooting, or product information by searching knowledge articles. For example: 'What is your return policy?' or 'How do I fix an issue?'"
578
+ inputs:
579
+ query: string
580
+ description: "Required. A string created by generative AI to be used in the knowledge article search."
581
+ label: "Query"
582
+ is_required: True
583
+ is_user_input: True
584
+ citationsUrl: string = @knowledge.citations_url
585
+ description: "The URL to use for citations for custom Agents."
586
+ label: "Citations Url"
587
+ is_required: False
588
+ is_user_input: True
589
+ ragFeatureConfigId: string = @knowledge.rag_feature_config_id
590
+ description: "The RAG Feature ID to use for grounding this copilot action invocation."
591
+ label: "RAG Feature Configuration Id"
592
+ is_required: False
593
+ is_user_input: True
594
+ citationsEnabled: boolean = @knowledge.citations_enabled
595
+ description: "Whether or not citations are enabled."
596
+ label: "Citations Enabled"
597
+ is_required: False
598
+ is_user_input: True
599
+ outputs:
600
+ knowledgeSummary: object
601
+ description: "A string formatted as rich text that includes a summary of the information retrieved from the knowledge articles and citations to those articles."
602
+ label: "Knowledge Summary"
603
+ complex_data_type_name: "lightning__richTextType"
604
+ filter_from_agent: False
605
+ is_displayable: True
606
+ citationSources: object
607
+ description: "Source links for the chunks in the hydrated prompt that's used by the planner service."
608
+ label: "Citation Sources"
609
+ complex_data_type_name: "@apexClassType/AiCopilot__GenAiCitationInput"
610
+ filter_from_agent: False
611
+ is_displayable: False
612
+ target: "standardInvocableAction://streamKnowledgeSearch"
613
+ label: "Answer Questions with Knowledge"
614
+ require_user_confirmation: False
615
+ include_in_progress_indicator: True
616
+ progress_indicator_message: "Getting answers"
617
+ source: "EmployeeCopilot__AnswerQuestionsWithKnowledge"
618
+ ```
619
+
620
+ ### 4. Reuse an existing library
621
+
622
+ When modifying an existing agent: if the `.agent` already has a `knowledge:` block with a populated `rag_feature_config_id`, skip provisioning and reuse. Confirm the underlying library is still indexed by running `sf agent adl get -i <libraryId>` and checking `retrieverId` is present.
623
+
624
+ A complete minimal template lives at `assets/agents/knowledge-grounded.agent`.
625
+
626
+ ### 5. Permission prerequisite — Einstein Agent User access
627
+
628
+ Wiring the `knowledge:` block and `AnswerQuestionsWithKnowledge` action is only half the work. At runtime, the Einstein Agent User needs **three layers of access** — missing any one causes silent empty results:
629
+
630
+ #### 5a. Data Cloud permset
631
+
632
+ The agent user must hold a Data Cloud permset/PSL. Without it, `knowledgeSummary` returns empty for every query.
633
+
634
+ The permset name varies by org shape (`GenieDataPlatformStarterPsl` PSL, `GenieUserEnhancedSecurity` PS, or `DataCloudUser` PS). Don't hardcode a name — run the discovery-then-assign procedure documented at [Agent User Setup, Step 3b](agent-user-setup.md).
635
+
636
+ #### 5b. Knowledge object + field-level security (KNOWLEDGE source type only)
637
+
638
+ For KNOWLEDGE libraries, the agent user must also have:
639
+ - **Object-level Read** on `Knowledge__kav`
640
+ - **Field-level Read** on ALL fields configured in the library (`primaryIndexField1`, `primaryIndexField2`, and all `contentFields`)
641
+
642
+ Without these, the runtime returns: `"Looks like you don't have access to one or more fields used by the assigned data library."` — but the error is only visible in server logs, not surfaced to the user.
643
+
644
+ Deploy a permset with the required access:
645
+ ```xml
646
+ <?xml version="1.0" encoding="UTF-8"?>
647
+ <PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata">
648
+ <label>Knowledge FLS for Agent</label>
649
+ <objectPermissions>
650
+ <allowRead>true</allowRead>
651
+ <object>Knowledge__kav</object>
652
+ </objectPermissions>
653
+ <fieldPermissions>
654
+ <editable>false</editable>
655
+ <field>Knowledge__kav.Answer__c</field>
656
+ <readable>true</readable>
657
+ </fieldPermissions>
658
+ <!-- Add all contentFields configured in the library -->
659
+ </PermissionSet>
660
+ ```
661
+
662
+ Note: Standard fields like `Title` and `ArticleNumber` cannot be set via permset deploy (they're always-readable). Only custom fields (e.g. `Answer__c`, `Summary`) need explicit FLS grants.
663
+
664
+ #### 5c. Language alignment (KNOWLEDGE source type only)
665
+
666
+ The retriever filters chunks by language at query time. If the article language doesn't match the user's language context, results are silently excluded. Even subtle mismatches like `en_US` vs `en_GB` cause empty results (confirmed by W-21956266).
667
+
668
+ Before declaring a KNOWLEDGE library ready:
669
+ ```bash
670
+ # Check article languages in the org
671
+ sf data query --target-org "$TARGET_ORG" -q \
672
+ "SELECT Language, COUNT(Id) ct FROM Knowledge__kav WHERE PublishStatus='Online' GROUP BY Language"
673
+ ```
674
+
675
+ If the agent user's locale doesn't match the article language:
676
+ - Publish articles in the agent user's language variant, OR
677
+ - Use a RETRIEVER source type with a custom retriever that disables language filtering
678
+
679
+ Reference: https://www.salesforce.com/blog/multi-language-guide/
680
+
681
+ #### 5d. Data Space scope
682
+
683
+ If the assignment lands but grounded queries still return empty results, also check the **Data Space scope** on the assigned permset (UI-only, no API) — see [Agent User Setup, Step 3b.4](agent-user-setup.md).
684
+
685
+ ## Common pitfalls
686
+
687
+ - `INVALID_SESSION_ID` mid-flow → access token expired. Re-authenticate with `sf org login web`.
688
+ - `LightningDomain` login error → use the `*.my.salesforce.com` domain, not `*.lightning.force.com`.
689
+ - `sf agent adl upload` fails with `"One or more files have not been uploaded..."` → the org's `bypass-s3-file-exist` gate hasn't rolled out. Skip ADL on this pass; the user can upload via the Setup UI later.
690
+ - `sf agent adl get` shows top-level `status` stuck on `IN_PROGRESS` with all sub-stages `SUCCESS` → normal. Top-level lag of 10–30 minutes is common (longer for large files). **Do not block on it.** Use `retrieverId is not null` as the readiness gate.
691
+ - `.agent` validation fails with `unresolved reference @knowledge.rag_feature_config_id` → the top-level `knowledge:` block is missing or misordered. It must precede `language:` per Core Language Section 2.
692
+ - Agent published, ADL indexed (`retrieverId` populated), but every grounded query returns empty `knowledgeSummary` and the agent refuses → Einstein Agent User lacks Data Cloud access. See "Wiring → Permission prerequisite" above and [Agent User Setup, Step 3b](agent-user-setup.md).
693
+ - `"To create a File data library, enable Agentforce in your org. Required org preferences: EinsteinGPTPlatformEnabled, AgentPlatformEnabled"` → Deploy both `EinsteinGpt.settings-meta.xml` AND `AgentPlatform.settings-meta.xml`. See [Org Setup for ADL](org-setup-for-adl.md) Steps 0a and 0b2.
694
+
695
+ ### Reference (Option A)
696
+
697
+ - Grounding source type: `SFDRIVE` (File)
698
+ - All operations use `sf agent adl` CLI commands which auto-negotiate API version
699
+
700
+ ---
701
+
702
+ ## Option B: KNOWLEDGE — Knowledge Article Library
703
+
704
+ Use this when the org has Salesforce Knowledge articles (KAV) and the user wants to ground the agent on article content. No file upload needed — the library indexes directly from Knowledge articles.
705
+
706
+ ### Prerequisites (Knowledge-specific)
707
+
708
+ - "Knowledge User" enabled for the user
709
+ - Knowledge articles exist in the org (at least one published article)
710
+ - The `isAsyncKnowledgeAdlEnabled` gate must be open on the org
711
+
712
+ ### Step K1 — Create the Knowledge library
713
+
714
+ Ask the user which Knowledge fields to index. Required: two primary index fields (immutable after creation). Optional: contentFields for additional searchable content.
715
+
716
+ Common field choices:
717
+ - `ArticleNumber` — unique article identifier
718
+ - `Title` — article title
719
+ - `UrlName` — URL-friendly name
720
+ - `Summary` — article summary
721
+ - Custom fields like `Answer__c`, `Detail__c`
722
+
723
+ ```bash
724
+ sf agent adl create \
725
+ --target-org "$TARGET_ORG" \
726
+ --name "$ADL_Name" \
727
+ --developer-name "$ADL_DevName" \
728
+ --source-type knowledge \
729
+ --primary-index-field1 ArticleNumber \
730
+ --primary-index-field2 Title \
731
+ --json
732
+ ```
733
+
734
+ Capture `result.libraryId` from the response. Indexing is auto-triggered on creation.
735
+
736
+ ```bash
737
+ LIBRARY_ID="<paste result.libraryId>"
738
+ ```
739
+
740
+ You can also set `--content-fields` and data categories at creation time rather than waiting for a day-2 `update`:
741
+
742
+ ```bash
743
+ sf agent adl create \
744
+ --target-org "$TARGET_ORG" \
745
+ --name "$ADL_Name" \
746
+ --developer-name "$ADL_DevName" \
747
+ --source-type knowledge \
748
+ --primary-index-field1 ArticleNumber \
749
+ --primary-index-field2 Title \
750
+ --content-fields "Answer__c,Summary__c" \
751
+ --data-category-names "Group_API_Name.Category" \
752
+ --json
753
+ ```
754
+
755
+ Pass either `--data-category-ids` or `--data-category-names`, not both. Add `--wait <minutes>` to block until KNOWLEDGE indexing completes instead of polling separately.
756
+
757
+ ### Step K2 — Poll status until READY
758
+
759
+ Knowledge libraries provision through stages: `DATA_STREAM → DATA_LAKE_OBJECT → DATA_MODEL_OBJECT → SEARCH_INDEX → RETRIEVER`
760
+
761
+ ```bash
762
+ sf agent adl status -i "$LIBRARY_ID" --target-org "$TARGET_ORG"
763
+ ```
764
+
765
+ Check readiness via the detail endpoint:
766
+
767
+ ```bash
768
+ sf agent adl get -i "$LIBRARY_ID" --target-org "$TARGET_ORG" --json
769
+ ```
770
+
771
+ Once `result.retrieverId` is non-null, the pipeline is set up: `rag_feature_config_id = "ARFPC_" + LIBRARY_ID`
772
+
773
+ **IMPORTANT — KNOWLEDGE Day 0 race condition (W-22773383):** The library may show READY with `retrieverId` populated but have 0 chunks. This happens because the Day 0 chunking job runs before the CRM Connector's data commit propagates through the lakehouse (~17s visibility window). The chunking job sees 0 rows, skips processing, and emits READY anyway.
774
+
775
+ **Do NOT declare success based on `retrieverId` alone for KNOWLEDGE.** After `retrieverId` is populated:
776
+ 1. Wait ~10 minutes (chunking jobs run on ~10 min intervals)
777
+ 2. Send a test grounded query to verify non-empty `knowledgeSummary`
778
+ 3. If still empty after 10 min, try `sf agent adl update -i "$LIBRARY_ID" --content-fields "<fields>"` to force a re-index
779
+
780
+ Unlike SFDRIVE (which uses JIT indexing and serves immediately), KNOWLEDGE chunking is asynchronous and may lag behind the READY status.
781
+
782
+ ### Step K3 (Day-2) — Update Knowledge config
783
+
784
+ Update which fields are indexed. This triggers full server-side re-indexing.
785
+
786
+ ```bash
787
+ sf agent adl update \
788
+ -i "$LIBRARY_ID" \
789
+ --target-org "$TARGET_ORG" \
790
+ --content-fields "Answer__c,Summary__c" \
791
+ --restrict-to-public-articles
792
+ ```
793
+
794
+ Important constraints:
795
+ - `primaryIndexField1` and `primaryIndexField2` are **immutable** after creation
796
+ - Updates are **blocked while provisioning is in progress** (server returns `INVALID_REQUEST_STATE`)
797
+ - Knowledge articles re-index automatically when articles are updated in the org
798
+ - Metadata-only updates (masterLabel, description) do NOT trigger re-indexing
799
+
800
+ ### Knowledge validation errors
801
+
802
+ | Error | Cause |
803
+ |-------|-------|
804
+ | `MISSING_REQUIRED_FIELD` | primaryIndexField1 or primaryIndexField2 missing |
805
+ | `DUPLICATE_PRIMARY_FIELDS` | Same field for both primary fields |
806
+ | `OVERLAPPING_CONTENT_FIELD` | A contentField matches a primary field |
807
+ | `DUPLICATE_CONTENT_FIELDS` | Same field appears twice in contentFields |
808
+ | `DataCategoryMutuallyExclusive` | Both `--data-category-ids` and `--data-category-names` passed — provide only one |
809
+ | `PRIMARY_FIELDS_IMMUTABLE` | Attempt to change primary fields after creation |
810
+ | `ADL_UNSUPPORTED_SOURCE_TYPE` | Knowledge gate not enabled on org |
811
+
812
+ ---
813
+
814
+ ## Option C: RETRIEVER — Custom Retriever Library
815
+
816
+ Use this when the user has an existing active Custom Retriever and wants to wrap it in an ADL library. No file upload or indexing needed — the library is immediately ready.
817
+
818
+ ### Prerequisites (Retriever-specific)
819
+
820
+ - An active Custom Retriever exists in the org (18-char ID with prefix `1Cx` or `0pm`)
821
+ - The retriever must be in active state (inactive retrievers are rejected)
822
+
823
+ ### Finding an active retriever ID
824
+
825
+ If the user doesn't know their retriever ID, find one from existing READY libraries:
826
+
827
+ ```bash
828
+ sf agent adl list --target-org "$TARGET_ORG" --json
829
+ ```
830
+
831
+ Then get the retrieverId from a READY library:
832
+
833
+ ```bash
834
+ sf agent adl get -i <READY_LIBRARY_ID> --target-org "$TARGET_ORG" --json
835
+ ```
836
+
837
+ Look for `result.retrieverId` in the response.
838
+
839
+ ### Step R1 — Create the Retriever library
840
+
841
+ ```bash
842
+ sf agent adl create \
843
+ --target-org "$TARGET_ORG" \
844
+ --name "$ADL_Name" \
845
+ --developer-name "$ADL_DevName" \
846
+ --source-type retriever \
847
+ --retriever-id "<active-retriever-id>" \
848
+ --json
849
+ ```
850
+
851
+ Expected: JSON with `libraryId`, `sourceType: "RETRIEVER"`, `groundingSource.retrieverId` populated. The library is **immediately usable** — no indexing or polling needed.
852
+
853
+ ### Step R2 — Verify READY status
854
+
855
+ ```bash
856
+ sf agent adl get -i "$LIBRARY_ID" --target-org "$TARGET_ORG" --json
857
+ ```
858
+
859
+ Expected: `status: "READY"`, `retrieverId` matches input.
860
+
861
+ The `rag_feature_config_id = "ARFPC_" + LIBRARY_ID` — wire this into the agent immediately.
862
+
863
+ ### Step R3 (Day-2) — Update metadata or swap retriever
864
+
865
+ ```bash
866
+ # Update metadata
867
+ sf agent adl update -i "$LIBRARY_ID" --target-org "$TARGET_ORG" \
868
+ --name "Updated Retriever Library" --description "Updated description"
869
+
870
+ # Swap to a different retriever
871
+ sf agent adl update -i "$LIBRARY_ID" --target-org "$TARGET_ORG" \
872
+ --retriever-id "<new-active-retriever-id>"
873
+ ```
874
+
875
+ ### Retriever validation errors
876
+
877
+ | Error | Cause |
878
+ |-------|-------|
879
+ | `INVALID_REQUEST_STATE: retriever not active` | retrieverId points to an inactive retriever |
880
+ | `retriever not found` | retrieverId doesn't exist |
881
+ | `retrieverId is required` | sourceType RETRIEVER without retrieverId |
882
+ | `ADL_UNSUPPORTED_SOURCE_TYPE` | File operations (upload, add, indexing) on RETRIEVER library |
883
+
884
+ ### Unsupported operations for RETRIEVER
885
+
886
+ These endpoints return `400: ADL_UNSUPPORTED_SOURCE_TYPE`:
887
+ - `POST /file-upload-urls`
888
+ - `POST /files`
889
+ - `POST /indexing`
890
+ - `GET /upload-readiness`
891
+ - `DELETE /files/{fileId}`