@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,197 @@
1
+ #!/usr/bin/env bash
2
+ # Read-only prerequisite check for Data 360 code extension development.
3
+ # Usage: bash check_env.sh [PROJECT_DIR] [ORG] [system|venv]
4
+ # Pass "" to let the script resolve a value (see SKILL.md Phase 0a):
5
+ # PROJECT_DIR: argument > $D360_PROJECT_DIR > /home/codebuilder/dx-project (Code Builder) > current folder
6
+ # ORG: argument > $D360_TARGET_ORG > CLI default org if Connected > the only Connected org
7
+ # Prints the resolved values, the org's API version, the Python mode, and the <PY_ENV>
8
+ # line to start every shell block with, then checks everything else. Printed values are
9
+ # literal (no $(...)), so agents can copy them into commands that need no extra approval.
10
+ # Changes nothing. Exits 1 if any required check fails (including an unresolved org).
11
+
12
+ PROJECT_DIR="${1:-}"
13
+ ORG_ALIAS="${2:-}"
14
+ MODE="${3:-}"
15
+
16
+ fail=0
17
+ ok() { printf '✅ %s\n' "$1"; }
18
+ bad() { printf '❌ %s\n → %s\n' "$1" "$2"; fail=1; }
19
+ warn() { printf '⚠️ %s\n → %s\n' "$1" "$2"; }
20
+ pyver() { "$1" -c 'import sys; print("%d.%d" % sys.version_info[:2])' 2>/dev/null; }
21
+ ext_managed() { "$1" -c 'import os, sys, sysconfig; sys.exit(0 if os.path.exists(os.path.join(sysconfig.get_path("stdlib"), "EXTERNALLY-MANAGED")) else 1)' 2>/dev/null; }
22
+ org_status() { sf org display --target-org "$1" --json 2>/dev/null | jq -r '.result.connectedStatus // empty' 2>/dev/null; }
23
+
24
+ # ---- sf must be able to run here --------------------------------------------
25
+ # Agent sandboxes (for example Codex) can block sf from writing ~/.sf, so every sf
26
+ # call crashes with EPERM. The plugin and org checks would then report false ❌s.
27
+ if command -v sf >/dev/null 2>&1 && [ -z "$(sf --version 2>/dev/null)" ]; then
28
+ bad "sf CLI is installed but can't run in this shell (usually a sandbox blocking writes to ~/.sf)" \
29
+ "rerun this check with permission to run outside the sandbox; the plugin, org and other results can't be trusted until then"
30
+ exit 1
31
+ fi
32
+
33
+ # ---- Resolve PROJECT_DIR ----------------------------------------------------
34
+ if [ -n "$PROJECT_DIR" ]; then PROJECT_SRC="argument"
35
+ elif [ -n "$D360_PROJECT_DIR" ]; then PROJECT_DIR="$D360_PROJECT_DIR"; PROJECT_SRC="D360_PROJECT_DIR"
36
+ elif [ -d /home/codebuilder/dx-project ]; then PROJECT_DIR=/home/codebuilder/dx-project; PROJECT_SRC="Code Builder workspace"
37
+ else PROJECT_DIR="$PWD"; PROJECT_SRC="current folder"
38
+ fi
39
+ PROJECT_DIR="${PROJECT_DIR%/}"
40
+
41
+ # ---- Resolve the org (alias, or username if it has no alias) ----------------
42
+ ORG_CANDIDATES=""
43
+ if [ -n "$ORG_ALIAS" ]; then ORG_SRC="argument"
44
+ elif [ -n "$D360_TARGET_ORG" ]; then ORG_ALIAS="$D360_TARGET_ORG"; ORG_SRC="D360_TARGET_ORG"
45
+ elif command -v sf >/dev/null 2>&1 && command -v jq >/dev/null 2>&1; then
46
+ default=$(sf config get target-org --json 2>/dev/null | jq -r '.result[0].value // empty')
47
+ if [ -n "$default" ] && [ "$(org_status "$default")" = "Connected" ]; then
48
+ ORG_ALIAS="$default"; ORG_SRC="CLI default org, Connected"
49
+ else
50
+ # Every Connected org, once, as "alias-or-username".
51
+ connected=$(sf org list --json 2>/dev/null | jq -r '[.result[]?[]? | select(.connectedStatus == "Connected")]
52
+ | unique_by(.username) | .[] | (.alias // .username)')
53
+ count=$(printf '%s' "$connected" | grep -c .)
54
+ if [ "$count" = 1 ]; then ORG_ALIAS="$connected"; ORG_SRC="only Connected org"
55
+ elif [ "$count" -gt 1 ]; then ORG_CANDIDATES=$(printf '%s' "$connected" | paste -sd, - | sed 's/,/, /g')
56
+ fi
57
+ fi
58
+ fi
59
+
60
+ echo "PROJECT_DIR=$PROJECT_DIR ($PROJECT_SRC)"
61
+ if [ -n "$ORG_ALIAS" ]; then
62
+ echo "ORG_ALIAS=$ORG_ALIAS ($ORG_SRC)"
63
+ elif [ -n "$ORG_CANDIDATES" ]; then
64
+ echo "ORG_ALIAS= (ambiguous: several Connected orgs and no Connected default: $ORG_CANDIDATES)"
65
+ else
66
+ echo "ORG_ALIAS= (no Connected org found)"
67
+ fi
68
+
69
+ # ---- Python mode ------------------------------------------------------------
70
+ if [ -z "$MODE" ]; then
71
+ if [ -d "$PROJECT_DIR/.venv" ]; then
72
+ MODE=venv # an existing venv always wins
73
+ elif [ "$(pyver python3)" = "3.11" ] && python3 -m pip --version >/dev/null 2>&1 && ! ext_managed python3; then
74
+ MODE=system
75
+ elif command -v python3.11 >/dev/null 2>&1; then
76
+ MODE=venv # 3.11 exists but is not the default python3 (typical macOS)
77
+ else
78
+ MODE=none
79
+ fi
80
+ fi
81
+
82
+ case "$MODE" in
83
+ venv) PY_ENV="source $(printf '%q' "$PROJECT_DIR/.venv/bin/activate")" ;;
84
+ system) USER_BIN="$(python3 -m site --user-base 2>/dev/null)/bin"
85
+ PY_ENV="export PATH=\"$USER_BIN:\$PATH\"" ;;
86
+ *) PY_ENV="" ;;
87
+ esac
88
+ echo "MODE=$MODE"
89
+ [ -n "$PY_ENV" ] && echo "PY_ENV=$PY_ENV"
90
+ echo
91
+
92
+ # ---- sf CLI and plugin ------------------------------------------------------
93
+ if command -v sf >/dev/null 2>&1; then
94
+ ok "sf CLI: $(sf --version 2>/dev/null | head -1)"
95
+ plugin=$(sf plugins 2>/dev/null | grep -i 'data-code-extension')
96
+ [ -n "$plugin" ] && ok "plugin: $plugin" \
97
+ || bad "data-code-extension plugin missing" "sf plugins install @salesforce/plugin-data-code-extension"
98
+ else
99
+ bad "sf CLI missing" "environment-setup.md §2"
100
+ fi
101
+
102
+ # ---- Python -----------------------------------------------------------------
103
+ case "$MODE" in
104
+ none)
105
+ bad "no Python 3.11 found (python3 is $(pyver python3 || echo missing))" "environment-setup.md §3"
106
+ ;;
107
+ venv)
108
+ if [ -f "$PROJECT_DIR/.venv/bin/activate" ]; then
109
+ # Apply the mode exactly as the agent will, then check what the plugin sees.
110
+ . "$PROJECT_DIR/.venv/bin/activate"
111
+ v=$(pyver python3)
112
+ [ "$v" = "3.11" ] && ok "venv python3 is 3.11 ($(command -v python3))" \
113
+ || bad "venv python3 is ${v:-missing}, must be 3.11" "recreate: rm -rf .venv && python3.11 -m venv .venv"
114
+ python3 -m pip --version >/dev/null 2>&1 \
115
+ || bad "venv has no pip (created with uv venv?)" "recreate with: python3.11 -m venv .venv"
116
+ if [ -n "$PYSPARK_PYTHON" ] && [ "$PYSPARK_PYTHON" = "$PYSPARK_DRIVER_PYTHON" ]; then
117
+ ok "PYSPARK_PYTHON=$PYSPARK_PYTHON"
118
+ else
119
+ bad "PySpark hook missing from .venv/bin/activate (run fails with PYTHON_VERSION_MISMATCH)" "bash <SKILL_DIR>/scripts/venv_hook.sh $PROJECT_DIR"
120
+ fi
121
+ else
122
+ bad "no venv at $PROJECT_DIR/.venv" "python3.11 -m venv .venv (not uv venv), then scripts/venv_hook.sh"
123
+ fi
124
+ ;;
125
+ system)
126
+ eval "$PY_ENV"
127
+ v=$(pyver python3)
128
+ [ "$v" = "3.11" ] && ok "python3 is 3.11 ($(python3 --version 2>&1), $(command -v python3))" \
129
+ || bad "python3 is ${v:-missing}, system mode needs 3.11" "use venv mode (environment-setup.md §3b)"
130
+ python3 -m pip --version >/dev/null 2>&1 && ok "python3 -m pip available" \
131
+ || bad "python3 has no pip" "environment-setup.md §3a (install pip for this Python)"
132
+ ext_managed python3 \
133
+ && bad "system Python is externally managed (PEP 668); pip install will be refused" "use venv mode (environment-setup.md §3b)"
134
+ # The plugin tries pip3 first; a pip3 from another Python can report the SDK as installed
135
+ # while python3 can't import it.
136
+ if command -v pip3 >/dev/null 2>&1; then
137
+ case "$(pip3 --version 2>/dev/null)" in
138
+ *'python 3.11'*) ok "pip3 belongs to Python 3.11" ;;
139
+ *) warn "pip3 belongs to another Python: $(pip3 --version 2>/dev/null)" "always install with python3 -m pip" ;;
140
+ esac
141
+ fi
142
+ ;;
143
+ esac
144
+
145
+ # ---- SDK and pipreqs (as the plugin will see them) --------------------------
146
+ if [ "$MODE" != none ] && command -v python3 >/dev/null 2>&1; then
147
+ sdk=$(python3 -c 'import importlib.metadata as m; print(m.version("salesforce-data-customcode"))' 2>/dev/null)
148
+ if [ -n "$sdk" ] && python3 -c 'import datacustomcode' 2>/dev/null; then
149
+ ok "salesforce-data-customcode $sdk (importable by python3)"
150
+ else
151
+ [ "$MODE" = system ] && cmd="python3 -m pip install --user --upgrade salesforce-data-customcode pipreqs" \
152
+ || cmd="python3 -m pip install --upgrade salesforce-data-customcode pipreqs"
153
+ bad "SDK not importable by python3" "$cmd"
154
+ fi
155
+ command -v pipreqs >/dev/null 2>&1 && ok "pipreqs on PATH ($(command -v pipreqs))" \
156
+ || bad "pipreqs not on PATH (scan fails with PipreqsScanError)" "$PY_ENV && python3 -m pip install $( [ "$MODE" = system ] && echo '--user ')pipreqs"
157
+ fi
158
+
159
+ # ---- Java -------------------------------------------------------------------
160
+ if command -v java >/dev/null 2>&1 || [ -n "$JAVA_HOME" ]; then
161
+ jv=$("${JAVA_HOME:+$JAVA_HOME/bin/}java" -version 2>&1 | head -1)
162
+ case "$jv" in
163
+ *'"17'*|*'"11'*|*' 17'*|*' 11'*) ok "Java: $jv" ;;
164
+ *'"21'*|*' 21'*) warn "Java: $jv" "works for SDK reads, transforms and local run; df.toPandas() with Arrow fails on Java 21 (PySpark 3.5). Use JDK 17 if your code calls toPandas or pandas UDFs" ;;
165
+ *'Unable to locate'*|'') bad "no JDK found" "environment-setup.md §1 Java" ;;
166
+ *) warn "Java: $jv" "JDK 17 recommended for PySpark 3.5 (11 also works)" ;;
167
+ esac
168
+ else
169
+ bad "no Java found" "environment-setup.md §1 Java"
170
+ fi
171
+
172
+ # ---- Docker (deploy only) ---------------------------------------------------
173
+ if docker info --format '{{.ServerVersion}}' >/dev/null 2>&1; then
174
+ ok "Docker running"
175
+ else
176
+ warn "Docker not running or not installed" "needed for deploy only; without it you can develop and run here and deploy elsewhere"
177
+ fi
178
+
179
+ # ---- jq ---------------------------------------------------------------------
180
+ command -v jq >/dev/null 2>&1 && ok "jq installed" || warn "jq missing" "install jq"
181
+
182
+ # ---- Org connection ---------------------------------------------------------
183
+ if [ -n "$ORG_ALIAS" ] && command -v sf >/dev/null 2>&1; then
184
+ org_json=$(sf org display --target-org "$ORG_ALIAS" --json 2>/dev/null)
185
+ status=$(printf '%s' "$org_json" | jq -r '.result.connectedStatus // empty' 2>/dev/null)
186
+ api=$(printf '%s' "$org_json" | jq -r '.result.apiVersion // empty' 2>/dev/null)
187
+ [ "$status" = "Connected" ] && { ok "org $ORG_ALIAS: Connected"; echo "API_VERSION=$api"; } \
188
+ || bad "org $ORG_ALIAS: ${status:-not found}" "sf org login web --instance-url <ORG_URL> --alias $ORG_ALIAS (user must log in)"
189
+ elif [ -n "$ORG_CANDIDATES" ]; then
190
+ bad "org not resolved: several Connected orgs ($ORG_CANDIDATES)" "ask the user which one, then pass it as the second argument"
191
+ else
192
+ bad "no Connected org" "sf org login web --instance-url <ORG_URL> --alias <ORG_ALIAS> (user must log in)"
193
+ fi
194
+
195
+ echo
196
+ echo "Manual check (no API): Data Cloud Setup → Feature Manager → 'Code Extension' must be ON."
197
+ exit $fail
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env bash
2
+ # Venv mode only. Pins PySpark to the project venv's Python by adding two exports
3
+ # to <PROJECT_DIR>/.venv/bin/activate. Safe to rerun; adds the lines once.
4
+ # Usage: bash venv_hook.sh <PROJECT_DIR>
5
+ # Rerun after recreating the venv (a new venv regenerates activate).
6
+
7
+ PROJECT_DIR="${1:?usage: venv_hook.sh <PROJECT_DIR>}"
8
+ ACTIVATE="$PROJECT_DIR/.venv/bin/activate"
9
+
10
+ [ -f "$ACTIVATE" ] || { echo "❌ $ACTIVATE not found; create the venv first: python3.11 -m venv .venv"; exit 1; }
11
+
12
+ if grep -q 'PYSPARK_PYTHON' "$ACTIVATE"; then
13
+ echo "✅ PySpark hook already present in $ACTIVATE, skipping"
14
+ else
15
+ cat >> "$ACTIVATE" <<'EOF'
16
+
17
+ # Data 360 code extension: Spark driver and workers must use this venv's Python 3.11
18
+ export PYSPARK_PYTHON="$VIRTUAL_ENV/bin/python"
19
+ export PYSPARK_DRIVER_PYTHON="$VIRTUAL_ENV/bin/python"
20
+ EOF
21
+ echo "✅ PySpark hook added to $ACTIVATE"
22
+ fi
@@ -4,7 +4,7 @@ description: "Use this skill to manage the full lifecycle of DevOps Center work
4
4
  metadata:
5
5
  relatedSkills:
6
6
  - "dx-devops-promote"
7
- version: "1.1"
7
+ version: "1.2"
8
8
  domains: ["Developer Experience"]
9
9
  minApiVersion: "58.0"
10
10
  cliTools:
@@ -36,7 +36,7 @@ Gather or infer before proceeding:
36
36
  - **For create**: project ID (required), subject (required), description (optional)
37
37
  - **For commit**: work item name or ID (required), commit message, and either the files to commit (git path) or the components to commit (API path). Optional: **dev org alias** — the org that holds the changes. When provided, try the DevOps Center commit API first (see step 5); otherwise use git
38
38
  - **For update**: work item name (e.g., WI-000001) or work item ID (required), fields to update (subject, description, status)
39
- - **For create-review**: work item name (e.g., WI-000001) or work item ID (required)
39
+ - **For create-review**: work item name (e.g., WI-000001) or work item ID (required). Optional: **dev org alias**. When provided, try the DevOps Center review API first (see step 7); otherwise use `sf devops review create`
40
40
 
41
41
  Defaults unless specified:
42
42
  - Output format: `--json` for headless consumption
@@ -149,7 +149,18 @@ Operations use `sf devops work-item` CLI commands with `--json` output; the API
149
149
  - Parse the JSON response: `.result.name`, `.result.subject`, `.result.status` contain the updated values
150
150
  - **For status transitions specifically**: after the command completes, explicitly confirm the new status by checking `.result.status` in the response. If the status field is absent from the update response, re-query the work item via list to verify the status persisted
151
151
 
152
- 7. **Create pull request** — when the user wants to create a PR for code review:
152
+ 7. **Create pull request** — when the user wants to create a PR for code review. Choose the path first:
153
+ - **API path** — when the user gave a dev org alias and the `doceConnectionType` preflight (step 5, API path, item 1) succeeds. The call runs on the dev org and DevOps Center creates the PR with its stored VCS credentials.
154
+ - **CLI path** — everything else.
155
+
156
+ **API path** (body, errors and idempotency in `references/review-api.md`):
157
+ 1. Resolve the work item id and name on the hub (`sf devops work-item list --project-id <id> --target-org <hub>`). The work item must have a committed component list and must not be Nevered.
158
+ 2. `POST /connect/devops/createReview` on the **dev org** with `{workItemId, workItemName, workItemLink}`; the body is the inner object (no `createReview` wrapper).
159
+ 3. The call is synchronous. Errors return HTTP 200 with `status: "Error"` and `errorMessage` = `CODE:detail`. Surface it using the error table in the reference and stop.
160
+ 4. On `Success`, `reviewUrl` is the PR URL. Calling again for the same work item returns the same URL, so a repeat call is safe.
161
+ 5. Confirm on the hub that the work item is `IN_REVIEW` and `ReviewRemoteReference` holds the PR number.
162
+
163
+ **CLI path:**
153
164
  ```bash
154
165
  sf devops review create \
155
166
  --work-item-name <WI-name> \
@@ -178,7 +189,8 @@ Operations use `sf devops work-item` CLI commands with `--json` output; the API
178
189
  - **For commit (API path)**: verify the POST `status`, then `DevopsRequestInfo.Status`, are `SUCCESS`, and that a new `WorkItemComponentList` with a `CommitReference` exists on the hub. A new list with an empty `CommitReference` means nothing new was committed; report that, not a clean success.
179
190
  - **For update (general fields)**: verify the CLI returned status 0 and compare the returned JSON fields against the user's requested changes. If updating subject, confirm `.result.subject` matches the new value.
180
191
  - **For update (status transition)**: verify the CLI returned status 0, then **explicitly confirm the status transition** by checking `.result.status` in the JSON response matches the target status (e.g., "Ready to Promote"). If the response doesn't include the status field, re-run `sf devops work-item list` filtered to this work item and verify the status persisted.
181
- - **For create-review**: verify the CLI returned status 0 and the JSON output contains `.result.pullRequestUrl` (the PR URL) and `.result.status` (should be "open" or equivalent). If VCS credentials are missing, the CLI returns an error — surface this to the user.
192
+ - **For create-review (CLI path)**: verify the CLI returned status 0 and the JSON output contains `.result.pullRequestUrl` (the PR URL) and `.result.status` (should be "open" or equivalent). If VCS credentials are missing, the CLI returns an error — surface this to the user.
193
+ - **For create-review (API path)**: verify the response `status` is `Success` with a non-empty `reviewUrl`, then that the hub work item is `IN_REVIEW` with `ReviewRemoteReference` set.
182
194
 
183
195
  9. **Report results**:
184
196
  - **List**: present work items in a readable format showing work item name, subject, status, branch, and environment. If filtering by status was requested, show only matching work items.
@@ -186,7 +198,7 @@ Operations use `sf devops work-item` CLI commands with `--json` output; the API
186
198
  - **Commit**: git path — confirm which files were staged, the commit SHA (from git output), and "Changes committed and pushed to branch <branch-name>." API path — confirm the `reqId`, components committed and hub `CommitReference` (author is DevOps Center)
187
199
  - **Update (general)**: confirm which fields changed with before/after values (e.g., "Subject updated from 'X' to 'Y'").
188
200
  - **Status transition**: explicitly state the transition with old → new status (e.g., "Status updated: In Progress → Ready to Promote").
189
- - **Create-review**: return the PR URL and confirm "Pull request created successfully. Status: open. URL: <url>"
201
+ - **Create-review**: return the PR URL and confirm "Pull request created successfully. Status: open. URL: <url>". API path — report `reviewUrl`, and note when the call returned an existing PR rather than creating one
190
202
 
191
203
  ---
192
204
 
@@ -203,6 +215,7 @@ Operations use `sf devops work-item` CLI commands with `--json` output; the API
203
215
  | Commit before creating a PR | Commit first and confirm a component list exists on the hub before `review create` |
204
216
  | API commit only sends components already in the dev org | The API retrieves from the dev org, not from local disk; deploy local-only edits first (`sf project deploy start`) or use the git path |
205
217
  | Check `status` in the commit API response | Errors are returned as HTTP 200 with `status: "ERROR"` |
218
+ | Check `status` in the review API response | Errors are returned as HTTP 200 with `status: "Error"` and `errorMessage` as `CODE:detail` |
206
219
  | PR creation requires VCS credentials in org | DevOps Center API uses stored VCS credentials; no local git auth needed |
207
220
  | Never use interactive prompts | Skills run in headless environments; all inputs must be via CLI flags |
208
221
 
@@ -223,6 +236,7 @@ Operations use `sf devops work-item` CLI commands with `--json` output; the API
223
236
  | **Commit pushed while work item is New** | The hub ignores external pushes for New work items; set In Progress first and, if already pushed, re-check after the status change |
224
237
  | **API commit still in progress past the deadline** | Report it as stuck; do not retry automatically (a new request could race it) |
225
238
  | **Git push fails - no commits or branch not found** | Verify files are staged with `git status` and branch name retrieved from work item via list command |
239
+ | **Review API returns `REVIEW_VCS_AUTHENTICATION_FAILED`** | Core maps any "not found" to this code, so a missing branch looks like an auth failure; check the work item and target branches exist as well as the credential |
226
240
  | **PR creation fails - VCS credentials** | VCS credentials not configured in DevOps Center UI; instruct user to configure in Setup → DevOps Center → VCS Credentials |
227
241
 
228
242
  ---
@@ -235,9 +249,9 @@ Deliverables vary by operation:
235
249
  - **Create**: Work item name (e.g., WI-000001), ID, branch name, and environment of the newly created work item
236
250
  - **Commit**: Confirmation of git commit and push success with commit SHA, or for the API path the `reqId`, final request status and `CommitReference`
237
251
  - **Update**: Confirmation of updated fields (old value → new value for subject/description, or status change)
238
- - **Create-review**: Pull request URL, PR number, and status
252
+ - **Create-review**: Pull request URL, PR number, and status (API path: `reviewUrl` and hub `IN_REVIEW` confirmation)
239
253
 
240
- Outputs are derived from `sf devops work-item` CLI, `sf devops review create` CLI, and standard git commands.
254
+ Outputs are derived from `sf devops work-item` CLI, `sf devops review create` CLI, the DevOps Center commit and review APIs, and standard git commands.
241
255
 
242
256
  ---
243
257
 
@@ -276,7 +290,8 @@ Before reporting results to the user:
276
290
 
277
291
  ### Create-Review Operation Checks
278
292
  - [ ] Was work item identifier provided (name or ID)?
279
- - [ ] Was a PR URL returned in JSON output?
293
+ - [ ] Was a PR URL returned (`.result.pullRequestUrl` for the CLI, `reviewUrl` for the API)?
294
+ - [ ] API path: was the response `status` checked, and was the hub work item confirmed `IN_REVIEW`?
280
295
  - [ ] Was the PR creation confirmed?
281
296
 
282
297
  ---
@@ -286,5 +301,6 @@ Before reporting results to the user:
286
301
  | File | When to read |
287
302
  |------|-------------|
288
303
  | `references/commit-api.md` | When committing through the DevOps Center API: request body, response and error codes, polling, preflight |
304
+ | `references/review-api.md` | When creating a review through the DevOps Center API: request body, response and error codes, idempotency, hub confirmation |
289
305
  | `references/cli-commands.md` | When you need detailed CLI flag documentation, JSON output schemas, or error handling patterns |
290
306
  | `examples/common-workflows.md` | When the user's request matches a common pattern (bulk updates, reassignment, idempotent creation, sequential transitions) |
@@ -526,3 +526,35 @@ Real-world examples of typical work item operations in DevOps Center autonomous
526
526
  A new row with a `CommitReference` means the commit was recorded.
527
527
 
528
528
  **Fallback:** if the preflight fails, retrieve the changes with `sf project retrieve start --target-org <dev-org>` if they exist only in the dev org, set the work item to In Progress if it is New, then follow Workflow 3 and re-check the hub before creating the PR.
529
+
530
+ ---
531
+
532
+ ## Workflow 17: Create a Review Through the DevOps Center API
533
+
534
+ **User request:** "Create a PR for WI-000012. My dev org is <dev-org>."
535
+
536
+ **Steps:**
537
+
538
+ 1. **Preflight** as in the commit workflow (`doceConnectionType` on the dev org). A non-2xx response → use `sf devops review create --work-item-name WI-000012 --json`.
539
+
540
+ 2. **Look up the work item on the hub** (not Nevered, already committed):
541
+ ```bash
542
+ sf devops work-item list --project-id <project-id> --target-org <hub-org> --json
543
+ ```
544
+
545
+ 3. **Create the review** (body is the inner object, no wrapper):
546
+ ```bash
547
+ cat > review.json <<'JSON'
548
+ {"workItemId":"<work-item-id>","workItemName":"WI-000012",
549
+ "workItemLink":"https://<hub-host>/lightning/r/WorkItem/<work-item-id>/view"}
550
+ JSON
551
+ sf api request rest "/services/data/v68.0/connect/devops/createReview" --method POST --body @review.json --target-org <dev-org>
552
+ ```
553
+ Expect `{"status":"Success","reviewUrl":"https://github.com/<owner>/<repo>/pull/15",...}`. If `status` is `Error`, report the `CODE:detail` in `errorMessage` and stop.
554
+
555
+ 4. **Confirm on the hub** that WI-000012 is `IN_REVIEW` and `ReviewRemoteReference` is `15`:
556
+ ```bash
557
+ sf data query --target-org <hub-org> --json -q "SELECT Status, ReviewRemoteReference FROM WorkItem WHERE Id = '<work-item-id>'"
558
+ ```
559
+
560
+ Repeating step 3 for the same work item returns the same `reviewUrl`, so it is safe to retry.
@@ -0,0 +1,95 @@
1
+ # Create a review through the DevOps Center API
2
+
3
+ Verified against a live Core-hub setup (dev org + hub org, work item `WI-000012`, GitHub repo). Use this when the user supplies a dev org alias and the work item already has a committed component list. It is the review-side counterpart of `references/commit-api.md`; the same dev org / hub org split and preflight apply.
4
+
5
+ ## Contents
6
+
7
+ - Flow
8
+ - Preflight
9
+ - Request
10
+ - Response
11
+ - Errors
12
+ - Idempotency
13
+ - Confirming on the hub
14
+ - Known limits
15
+
16
+ ## Flow
17
+
18
+ ```text
19
+ dev org POST /connect/devops/createReview
20
+ -> hub org (ALMDevOpsCenterHub named credential) POST .../workItems/{id}/review
21
+ -> DevOps Center service -> GitHub/Bitbucket pull request
22
+ <- {status, reviewUrl, errorMessage, testingTriggeredStatus}
23
+ ```
24
+
25
+ The call is **synchronous**: the pull request exists when the response returns. There is no `DevopsRequestInfo` to poll (unlike commit). The hub server-side creates the PR using the VCS credentials stored in DevOps Center, so no local git auth is needed.
26
+
27
+ ## Preflight
28
+
29
+ Same check as commit, but at `v68.0` (the version `createReview` was verified at; the commit flow uses `v67.0`). Use the version written here; an older version such as `v63.0` returns `NOT_FOUND`, which is not evidence that the org lacks DevOps Center. `GET /services/data/v68.0/connect/devops/doceConnectionType` on the dev org must return `{"isCore": true, "isManagedPackage": false}`. Any other result means use the `sf devops review create` CLI path.
30
+
31
+ ## Request
32
+
33
+ ```bash
34
+ sf api request rest "/services/data/v68.0/connect/devops/createReview" \
35
+ --method POST --body @review.json --target-org <dev-org>
36
+ ```
37
+
38
+ ```json
39
+ {
40
+ "workItemId": "<hub work item id, 1fk...>",
41
+ "workItemName": "WI-000012",
42
+ "workItemLink": "https://<hub-host>/lightning/r/WorkItem/<workItemId>/view"
43
+ }
44
+ ```
45
+
46
+ - The body is the inner object. Wrapping it in `{"createReview": {...}}` fails with `JSON_PARSER_ERROR: Unrecognized field "createReview"`.
47
+ - Resolve `workItemId` and `workItemName` on the hub with `sf devops work-item list --project-id <id> --target-org <hub-org> --json`.
48
+ - `<hub-host>` is the hub org's instance URL (`sf org display --target-org <hub-org> --json`, `.result.instanceUrl`).
49
+ - Pass the file with the `@` prefix, as in commit.
50
+
51
+ ## Response
52
+
53
+ Success (HTTP 200):
54
+
55
+ ```json
56
+ {"status": "Success", "reviewUrl": "https://github.com/<owner>/<repo>/pull/15", "errorMessage": "", "testingTriggeredStatus": "Not Applicable"}
57
+ ```
58
+
59
+ - `reviewUrl` is the pull request URL; the PR number is its last path segment.
60
+ - `testingTriggeredStatus` is informational. Seen: `"Not Applicable"` (with a space). Source also allows `success` and `error`; report it as given and do not treat it as a failure signal.
61
+
62
+ ## Errors
63
+
64
+ Failures are HTTP 200 with `status: "Error"`, an empty `reviewUrl`, and `errorMessage` as `CODE:detail`. Always check `status`.
65
+
66
+ | Code | Meaning | Action |
67
+ |------|---------|--------|
68
+ | `WORKITEM_NEVERED` | Work item is Nevered | Stop; the work item cannot get a review |
69
+ | `REVIEW_NO_COMMITS_BETWEEN_BRANCHES` | Work item branch has no commits relative to the target branch | Commit first, then retry |
70
+ | `REVIEW_CREDENTIAL_ERROR` | VCS credential rejected ("Bad credentials") | Ask the user to fix the VCS credential in DevOps Center |
71
+ | `REVIEW_VCS_AUTHENTICATION_FAILED` | Raised for any "not found" in the VCS error, including a **missing branch** | Check both the credential and that the work item and target branches exist |
72
+ | `REVIEW_PR_ALREADY_EXISTS` | PR already open for the branch | See Idempotency |
73
+ | `REVIEW_CREATION_FAILED` | Anything else; detail follows the colon | Surface the detail. A nonexistent work item id also lands here: `Could not find WorkItem: <id>` |
74
+ | `REVIEW_UNKNOWN_ERROR`, `REVIEW_WORK_ITEM_NOT_FOUND` | Passed through unchanged | Surface the message |
75
+
76
+ Seen live: a nonexistent id returned `REVIEW_CREATION_FAILED:Failed to create review for work item <id>: Failed to get WorkItem for Id: Could not find WorkItem: <id>`. The other rows are taken from the service's error-code definitions and have not been observed live, so treat their meanings as expected, not confirmed.
77
+
78
+ ## Idempotency
79
+
80
+ Calling `createReview` again for a work item that already has a PR returned `Success` with the **same** `reviewUrl` (seen live), not `REVIEW_PR_ALREADY_EXISTS`. A repeat call is therefore safe and is the way to look up an existing PR URL. Still handle `REVIEW_PR_ALREADY_EXISTS` in case the hub returns it for a PR created outside DevOps Center.
81
+
82
+ ## Confirming on the hub
83
+
84
+ ```bash
85
+ sf data query --target-org <hub-org> --json \
86
+ -q "SELECT Name, Status, ReviewRemoteReference FROM WorkItem WHERE Id = '<id>'"
87
+ ```
88
+
89
+ After a successful review, `Status` is `IN_REVIEW` and `ReviewRemoteReference` holds the PR number. Confirm both before reporting success.
90
+
91
+ ## Known limits
92
+
93
+ - Verified live only for an In Progress work item with a committed component list, against GitHub. Bitbucket and other starting statuses were not exercised.
94
+ - The no-commits, bad-credential and missing-branch errors were not triggered live.
95
+ - `reviewUrl` may show a different owner than the project's `repoUrl`; trust the returned URL.
@@ -1,10 +1,13 @@
1
1
  ---
2
2
  name: dx-lifecycle-center
3
- description: "Lifecycle Center for DX Inspector and Builder Central. Use this skill first for four jobs: (A) list the orgs connected to DX Inspector; (B) connect a new org (sandbox or scratch, production, OrgFarm) as a deploy target; (C) connect or check the Lifecycle Center org, also written LifecycleCenter org, lifecycle-center, ALMDevOpsCenterHub, DevOps Center hub, or Hub org; (D) deploy, validate, or quick-deploy components that already exist in the user's org to a connected org, and poll a simple-deploy requestId. TRIGGER on: show, list, or pick connected orgs or environments; connect, add, log in to, or repair an org; connect the Lifecycle Center org; deploy, validate, or push components to another org, URL, org id, alias, or environment name. Short asks like \"connect a new org\", \"which orgs can I deploy to\", or \"deploy to my sandbox\" match. These deploys move components from the connected source org to another org, not local project files."
3
+ description: "Lifecycle Center for DX Inspector and Builder Central. Four jobs: (A) list the orgs connected to DX Inspector; (B) connect a new org (sandbox or scratch, production, OrgFarm) as a deploy target; (C) connect or check the Lifecycle Center org, also written LifecycleCenter, lifecycle-center, ALMDevOpsCenterHub, or Hub org; (D) deploy, validate, or quick-deploy components that already exist in the user's org to a connected org, and poll a simple-deploy requestId. TRIGGER on: show, list, or pick connected orgs or environments; connect, add, log in to, or repair an org; connect the Lifecycle Center org; deploy, validate, push, or publish components (metadata) to another org, URL, org id, alias, or environment name. Short asks like \"connect a new org\" or \"deploy to my sandbox\" match. NOT for promoting work items (dx-devops-promote), local source deploys (platform-metadata-deploy), or publishing sites or packages. Deploys move components between orgs, not local files."
4
4
  metadata:
5
5
  version: "1.0"
6
6
  domains: ["Developer Experience"]
7
7
  minApiVersion: "67.0"
8
+ relatedSkills:
9
+ - "dx-devops-promote"
10
+ - "platform-metadata-deploy"
8
11
  cliTools:
9
12
  - tool: ["jq"]
10
13
  semver: ">=1.6"
@@ -20,7 +23,7 @@ This skill manages which orgs a user can deploy to, and deploys to them. Everyth
20
23
 
21
24
  | Op | Name | What it does | Details |
22
25
  |---|---|---|---|
23
- | **A** | List orgs | Shows the orgs connected to DX Inspector (the deploy targets), or the current org's details. Also resolves a target the user names. | `references/list-orgs.md` |
26
+ | **A** | List orgs | Shows the orgs connected to DX Inspector (the deploy targets) and whether each is ready in this workspace, or the current org's details. Also resolves a target the user names. | `references/list-orgs.md` |
24
27
  | **B** | Connect an org | Connects a new sandbox or scratch, production, or OrgFarm org as a deploy target, or repairs a half-finished connection. The user signs in through a link. | `references/connect-org.md` |
25
28
  | **C** | Lifecycle Center org | Connects, repairs, or checks the Lifecycle Center org (credential `ALMDevOpsCenterHub`). | `references/hub-org.md` |
26
29
  | **D** | Deploy | Deploys, validates, or quick-deploys components from the source org to a connected target, then polls to the end. | `references/deploy.md` |
@@ -34,18 +37,18 @@ Connect (B) and deploy or quick deploy (D) change an org, so they wait for the u
34
37
  | Source org | The org the user built in. Use the alias they name, else the default org from `sf org display --json`. Components must already exist in it. |
35
38
  | DX Inspector environment | A `DevopsEnvironment` record in the source org with a Named Credential. The deploy targets are exactly these records. |
36
39
  | Deploy target | An environment in state `selectable`. An `expired` or `unauthenticated` environment is not a target. |
37
- | Lifecycle Center org | The Lifecycle Center hub. A separate connection that is never a deploy target. |
40
+ | Lifecycle Center org | The Lifecycle Center hub. A separate connection that is never a deploy target; it is shown in a list only when connected, labelled Lifecycle Center (Production Org). |
38
41
 
39
42
  ## Routing (deterministic)
40
43
 
41
- Scripts, references, and assets are paths inside this skill's folder, `<skill_dir>`: the location given for this skill when it was listed or loaded, without the trailing `/SKILL.md`. Run every script as `bash <skill_dir>/scripts/<script>` from the current folder. Do not `cd` first (the current folder sets the default org for `sf`), and never guess another folder or search the filesystem for the skill. This skill owns every request below. Pick the operation by these rules **in order; the first match wins**. Do not hand these requests to another skill, and do not answer them from general knowledge.
44
+ Scripts and references are paths inside this skill's folder (the folder that holds this file). This skill owns every request below. Pick the operation by these rules **in order; the first match wins**. Do not hand these requests to another skill, and do not answer them from general knowledge.
42
45
 
43
46
  | # | The request | Operation |
44
47
  |---|---|---|
45
48
  | 1 | Names the Lifecycle Center org, in any request, however it is spelled: "Lifecycle Center", "lifecyclecenter", "lifecycle-center", "lifecycle_center" (matching rules in `references/hub-org.md`) | **C** |
46
- | 2 | Deploy, validate, quick deploy, or push components to an org, URL, org id, alias, or environment name; or gives a `requestId` or validation id | **D** |
49
+ | 2 | Deploy, validate, quick deploy, push, or publish components (metadata) to an org, URL, org id, alias, or environment name; or gives a `requestId` or validation id | **D** |
47
50
  | 3 | Show, list, or pick connected orgs or environments; "which orgs can I deploy to"; the current org's details | **A** |
48
- | 4 | Connect, add, log in to, reconnect, or repair an org or its credential | **B** |
51
+ | 4 | Connect, add, log in to, reconnect, or repair an org or its credential; **sync**, **refresh**, or **re-sync** an org's workspace access; or a `sf` command on a connected org failed with `Session expired or invalid` / `INVALID_SESSION_ID` | **B** (the sync procedure, `references/connect-org.md`) |
49
52
  | 5 | Anything else about connected orgs or DX Inspector environments | **A** |
50
53
 
51
54
  The Lifecycle Center org rule (1) has two exclusions: "Dev Hub" is never the Lifecycle Center org, and plural phrases such as "DevOps Center orgs", "DX Inspector orgs", "environments", or "orgs connected to DX Inspector" are not the Lifecycle Center org; route them by rules 2 to 5. Details: `references/hub-org.md`.
@@ -54,7 +57,7 @@ The Lifecycle Center org rule (1) has two exclusions: "Dev Hub" is never the Lif
54
57
 
55
58
  | Operation | Action words (any form: "deploy", "deploying", "deployment") | Object words |
56
59
  |---|---|---|
57
- | **D** | deploy, deployment, validate, validation, check only, dry run, quick deploy, quickdeploy, push, send, ship, move, copy, release, add or install (when the object is a component) | components, metadata, classes, flows, objects, or a named org as the destination ("to", "into", "onto") |
60
+ | **D** | deploy, deployment, validate, validation, check only, dry run, quick deploy, quickdeploy, push, send, ship, move, copy, release, publish, add or install (when the object is a component, never a site, article or package version) | components, metadata, classes, flows, objects, or a named org as the destination ("to", "into", "onto") |
58
61
  | **B** | connect, connection, add, link, hook up, hookup, authorize, authenticate, log in, login, sign in, set up, setup, register, onboard, reconnect, repair, fix, refresh | org, environment, env, sandbox, scratch, production, prod, orgfarm, org farm |
59
62
  | **A** | show, list, see, view, display, which, what, pick, choose, available | orgs, environments, envs, targets, connections, "where can I deploy" |
60
63
 
@@ -62,28 +65,30 @@ A request with a **D** action word and a destination, or that names a component
62
65
 
63
66
  A request that mixes jobs (for example "connect my sandbox and deploy AccountService to it") takes the lowest-numbered match, here **D**, which runs **B** itself when the target is not connected.
64
67
 
65
- **Vague prompts.** If the message is only "deploy", "push my changes", "connect an org", or similar, do not guess and do not call any API. Ask exactly one question that fixes the first missing input:
68
+ **Vague prompts.** If the message is only "deploy", "push my changes", "publish my changes", "connect an org", or similar, do not guess and do not call any API. Ask exactly one question that fixes the first missing input:
66
69
 
67
70
  | Intent | Ask, in this order |
68
71
  |---|---|
69
72
  | Deploy | 1. Which components? (`references/deploy.md`, Step 1) 2. Which target org? |
70
- | Connect | 1. "Is it a sandbox or scratch org, a production org, or an OrgFarm org?" 2. What short name (letters only) should the environment have? |
73
+ | Connect | 1. "Is it a sandbox or scratch org, a production org, or an OrgFarm org?" 2. What short name should the environment have? |
71
74
  | Not clear which | "Do you want to connect an org or deploy components?" |
72
75
 
73
76
  A bare "deploy" with no DX Inspector context is a question, not a deploy.
74
77
 
75
78
  ## Rules that always apply
76
79
 
77
- - Targets come from the DX Inspector environments in the source org, never from `sf org list` or local aliases.
80
+ - Targets come from the DX Inspector environments in the source org, never from `sf org list` or local aliases. (A connect also registers the environment name as a workspace alias for the user's convenience; that does not make aliases a source of targets.)
78
81
  - Never deploy to a target that is not `selectable`, never to the source org, and never to the Lifecycle Center org.
79
- - The Lifecycle Center org never appears in a list and is not mentioned while listing. It is discussed only when the user asks about it.
80
- - Confirm before every call that changes an org: connect (`connect-org.md`, Step 1) and deploy (`deploy.md`, Step 4). `validate` is the only mode that needs no confirmation.
82
+ - The Lifecycle Center org appears in a list only when it is connected, as one labelled row, Lifecycle Center (Production Org), with no button, never a deploy target and never in Sync all. When it is not connected the list does not mention it.
83
+ - Confirm before every call that changes an org: connect (`connect-org.md`, Step 1) and deploy (`deploy.md`, Step 4). `validate` is the only mode that needs no confirmation. A click on a Sync / Refresh button, or an explicit ask to sync, is the confirmation for a workspace sync; listing never syncs by itself.
84
+ - A timeout (`TARGET_ORG_AUTHENTICATION_TIMEOUT`) is transient: retry once after about 10 seconds yourself, then stop. Only a 401 or 403 means the sign-in is stale.
81
85
  - When a connect started from a deploy and finishes, tell the user the org is connected and that you are continuing the deploy, then ask for the deploy confirmation. Connecting never deploys by itself.
82
86
  - A sandbox and a scratch org are the same type (`SANDBOX`). Treat their URLs alike.
87
+ - **Always double-quote an org alias in a shell command.** Environment names may contain spaces (`Dev 12 Org`), so write `--target-org "Dev 12 Org"`, never `--target-org Dev 12 Org`. Quote every alias, name or id taken from user input or from the resolver output, in every `sf` command and script argument.
88
+ - **Fix what can be fixed yourself.** An error a retry or a sync can clear (expired session, timeout, a missing workspace alias on an org the task needs) is handled in place: sync or retry, then carry on with the task and say what you did in one line. Do not hand the user a button or a question for it. Ask only when the fix needs them: a browser sign-in, a name clash, or an org-changing action they have not asked for.
83
89
  - Make one attempt per API call. Never retry in a loop, resubmit after a timeout, or invent an id, credential name, or status.
84
90
  - Never ask for, print, or pass an access token. Never show row ids or credential names.
85
91
  - Never say a browser was opened. Give the login link and wait for the user to reply **done**.
86
- - Pass `render_widget` only a `CARD_JSON` line that `scripts/widget.sh` printed, exactly as printed. Never write, invent, or edit a card.
87
92
  - Do not guess a missing input. Ask one question for the first missing input.
88
93
  - Ask the user to confirm an org type that the URL host does not decide. Never infer it from an environment name.
89
94
 
@@ -91,10 +96,11 @@ A bare "deploy" with no DX Inspector context is a question, not a deploy.
91
96
 
92
97
  | After | Reply with |
93
98
  |---|---|
94
- | **A** list | Only the table and the closing sentence (`list-orgs.md`, section 4). No raw JSON, no extra offers. |
99
+ | **A** list | The table of usable orgs, the action buttons (Sync / Re-sync / Refresh, plus Sync all N when two or more need it), the one left-out line when needed, and the closing sentence (`list-orgs.md`, section 4). No raw JSON, no status column, no other offers. |
100
+ | **B** sync (button click or failed `sf` command) | One line per org (synced, timed out, sign-in needed, name clash, or not available), then the list again. No sign-in link for a timeout (`connect-org.md`, *Sync workspace access*). |
95
101
  | **A** not enabled | The one-sentence message in `list-orgs.md`, section 2. Nothing else. |
96
102
  | **B** connect | The sign-in layout with a button-style link (`connect-org.md`, Step 2), then after **done** the connected layout: environment name, org host, type, and status (`connect-org.md`, Step 5). |
97
- | **C** | The exact sentences in `hub-org.md`. When connecting, the same sign-in and connected layouts as B, in hub form, or the sign-in and connected cards when the `render_widget` tool is available (`connect-org.md`, Steps 2 and 5). |
103
+ | **C** | The exact sentences in `hub-org.md`. When connecting, the same sign-in and connected layouts as B, in hub form. |
98
104
  | **D** | A plain-language report: what was deployed, from where, to where, and the outcome (`deploy.md`, Step 7). No raw JSON. If the deploy is still running after about 2 minutes: the `requestId`, a note that it is in progress, and a request to send the id back to get the status (`deploy.md`, Step 6). |
99
105
 
100
106
  ## If something fails
@@ -104,7 +110,8 @@ A bare "deploy" with no DX Inspector context is a question, not a deploy.
104
110
  | The list or target lookup fails | `references/list-orgs.md`, section 2 |
105
111
  | A connect step fails | `references/troubleshooting.md` |
106
112
  | A deploy or validate fails | `references/error-handling.md` |
107
- | The target login is stale | Reconnect that environment (`references/connect-org.md`, repair path), then ask before retrying |
113
+ | The target login is stale | Sync it first (`references/connect-org.md`, *Sync workspace access*) and retry the step yourself. Only a 401/403 that a sync cannot fix needs the user's sign-in (repair path), and after it you retry without asking |
114
+ | A `sf` command on a connected org says the session expired | Sync that org's workspace access (`references/connect-org.md`, *Sync workspace access*), then retry the command once |
108
115
 
109
116
  ## References
110
117
 
@@ -118,6 +125,5 @@ A bare "deploy" with no DX Inspector context is a question, not a deploy.
118
125
  - `references/error-handling.md`: deploy error codes.
119
126
  - `examples/workflows.md`: worked prompts for each operation.
120
127
  - `scripts/resolve-environment.sh`: read-only list and identifier resolver.
128
+ - `scripts/hub-get.sh`: read-only GET against the Lifecycle Center org through its credential (`references/hub-org.md`).
121
129
  - `scripts/poll-deploy-status.sh`: read-only status poller. Reads the Simple Deploy endpoint and `DevopsRequestInfo`, and reports component errors on failure.
122
- - `scripts/widget.sh`: Operation C, Steps 2 and 5, only when the `render_widget` tool is available. Fills a card from `assets/widgets/` with `scripts/fill-widget.jq`, checks it with `scripts/card-policy.jq`, and prints `CARD_JSON <json>` or `CARD_UNAVAILABLE <reason>`. Makes no API call.
123
- - `assets/widgets/<name>/`: the HXL chat cards (`connect-sign-in`, `connect-connected`), each a tile tree `<name>.json` and the `schema.json` of its values.