@salesforce/afv-skills 1.68.0 → 1.69.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 (188) 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/dx-lifecycle-center/SKILL.md +24 -18
  63. package/skills/dx-lifecycle-center/examples/workflows.md +57 -34
  64. package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
  65. package/skills/dx-lifecycle-center/references/connect-org.md +59 -28
  66. package/skills/dx-lifecycle-center/references/deploy.md +3 -3
  67. package/skills/dx-lifecycle-center/references/hub-org.md +19 -3
  68. package/skills/dx-lifecycle-center/references/list-orgs.md +50 -24
  69. package/skills/dx-lifecycle-center/references/troubleshooting.md +22 -1
  70. package/skills/dx-lifecycle-center/scripts/hub-get.sh +41 -0
  71. package/skills/dx-lifecycle-center/scripts/resolve-environment.sh +151 -4
  72. package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +63 -0
  73. package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +252 -0
  74. package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +2 -3
  75. package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +10 -7
  76. package/skills/dx-packaging-push-upgrade-configure/README.md +47 -0
  77. package/skills/dx-packaging-push-upgrade-configure/SKILL.md +355 -0
  78. package/skills/dx-packaging-push-upgrade-configure/references/best-practices.md +61 -0
  79. package/skills/dx-packaging-push-upgrade-configure/references/cli-reference.md +148 -0
  80. package/skills/dx-packaging-push-upgrade-configure/references/objects.md +106 -0
  81. package/skills/dx-packaging-push-upgrade-configure/references/soql-recipes.md +144 -0
  82. package/skills/experience-afv-analytics-query/SKILL.md +239 -0
  83. package/skills/experience-afv-analytics-query/references/references.md +176 -0
  84. package/skills/experience-app-mcp-delivery-generate/SKILL.md +142 -0
  85. package/skills/experience-app-mcp-delivery-generate/references/eca-consumer-key.md +26 -0
  86. package/skills/experience-app-mcp-delivery-generate/references/mcp-config-delivery.md +38 -0
  87. package/skills/experience-app-mcp-delivery-generate/references/plugin-format-and-publishing.md +80 -0
  88. package/skills/experience-app-mcp-delivery-generate/scripts/developer_name.mjs +9 -0
  89. package/skills/experience-app-mcp-delivery-generate/scripts/discover_mcp_context.mjs +114 -0
  90. package/skills/experience-app-mcp-delivery-generate/scripts/generate_mcp_config.mjs +27 -0
  91. package/skills/experience-app-mcp-delivery-generate/scripts/generate_plugin.mjs +184 -0
  92. package/skills/experience-app-mcp-delivery-generate/scripts/mcp_config.mjs +57 -0
  93. package/skills/experience-app-mcp-delivery-generate/scripts/preflight.mjs +109 -0
  94. package/skills/experience-app-mcp-delivery-generate/scripts/retrieve_eca_consumer_key.mjs +143 -0
  95. package/skills/experience-app-mcp-generate/SKILL.md +174 -0
  96. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.eca-meta.xml +7 -0
  97. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaGlblOauth-meta.xml +15 -0
  98. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauth-meta.xml +6 -0
  99. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauthPlcy-meta.xml +12 -0
  100. package/skills/experience-app-mcp-generate/assets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xml +7 -0
  101. package/skills/experience-app-mcp-generate/assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml +5 -0
  102. package/skills/experience-app-mcp-generate/references/eca-fields.md +76 -0
  103. package/skills/experience-app-mcp-generate/references/mcp-objects.md +66 -0
  104. package/skills/experience-app-mcp-generate/references/tool-bindings.md +85 -0
  105. package/skills/experience-app-mcp-generate/references/troubleshooting.md +41 -0
  106. package/skills/experience-app-mcp-generate/references/ui-frameworks.md +19 -0
  107. package/skills/experience-app-mcp-generate/references/widget-resources.md +96 -0
  108. package/skills/experience-app-mcp-generate/scripts/activate_server.mjs +166 -0
  109. package/skills/experience-app-mcp-generate/scripts/check_setup_progress.mjs +212 -0
  110. package/skills/experience-app-mcp-generate/scripts/list_sites.mjs +211 -0
  111. package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +407 -0
  112. package/skills/experience-app-mcp-generate/scripts/preflight.mjs +127 -0
  113. package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +144 -0
  114. package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +64 -0
  115. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_prompts.mjs +145 -0
  116. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_tools.mjs +72 -0
  117. package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +195 -0
  118. package/skills/experience-app-mcp-generate/scripts/utils/callback_url.mjs +36 -0
  119. package/skills/experience-app-mcp-generate/scripts/utils/developer_name.mjs +9 -0
  120. package/skills/experience-app-mcp-generate/scripts/utils/eca_check.mjs +156 -0
  121. package/skills/experience-app-mcp-generate/scripts/utils/metadata_path.mjs +13 -0
  122. package/skills/experience-app-mcp-generate/scripts/verify_server.mjs +118 -0
  123. package/skills/experience-cms-content-type-generate/SKILL.md +1 -1
  124. package/skills/nonprofit-fundraising-configure/SKILL.md +1 -1
  125. package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +52 -4
  126. package/skills/nonprofit-fundraising-configure/references/permission-targeting.md +19 -2
  127. package/skills/platform-custom-field-generate/SKILL.md +24 -16
  128. package/skills/platform-custom-metadata-type-generate/SKILL.md +1 -0
  129. package/skills/platform-custom-setting-generate/SKILL.md +1 -0
  130. package/skills/platform-dataspace-access-configure/SKILL.md +25 -10
  131. package/skills/platform-flexipage-generate/SKILL.md +7 -10
  132. package/skills/platform-flexipage-generate/references/mcp_action_examples.md +42 -38
  133. package/skills/platform-policy-rule-generate/SKILL.md +9 -7
  134. package/skills/platform-policy-rule-generate/references/condition-model.md +3 -3
  135. package/skills/platform-policy-rule-generate/references/conjunction-expression.md +9 -1
  136. package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +9 -1
  137. package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +1 -2
  138. package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +1 -2
  139. package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +1 -2
  140. package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +1 -2
  141. package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +1 -0
  142. package/skills/platform-policy-rule-generate/references/headless-transport.md +2 -2
  143. package/skills/platform-policy-rule-generate/references/policy-schema-full.md +1 -1
  144. package/skills/platform-policy-rule-generate/references/policy-shapes.md +33 -0
  145. package/skills/platform-policy-rule-generate/references/templates-advanced.md +1 -1
  146. package/skills/platform-policy-rule-generate/references/ui-compatibility.md +5 -5
  147. package/skills/platform-report-generate/SKILL.md +20 -1
  148. package/skills/platform-report-generate/references/summary-formulas-sorting-limits.md +118 -0
  149. package/skills/platform-report-generate/references/verification-checklist.md +12 -0
  150. package/skills/service-digital-engagement-channel-configure/SKILL.md +44 -107
  151. package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +2 -0
  152. package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +2 -2
  153. package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +58 -0
  154. package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +2 -2
  155. package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
  156. package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +18 -14
  157. package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +16 -20
  158. package/skills/service-digital-engagement-channel-configure/references/prechat_params.md +10 -0
  159. package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +38 -0
  160. package/skills/service-digital-engagement-channel-configure/references/user_verification.md +9 -0
  161. package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +4 -4
  162. package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh +12 -7
  163. package/skills/service-e911-configure/SKILL.md +242 -0
  164. package/skills/service-itsm-agentic-setup-agent-runtime-access-assign/SKILL.md +1 -1
  165. package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +1 -1
  166. package/skills/service-itsm-agentic-setup-agentforce-studio-configure/SKILL.md +1 -1
  167. package/skills/service-itsm-agentic-setup-agentforce-studio-validate/SKILL.md +1 -1
  168. package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +1 -1
  169. package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +1 -1
  170. package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +47 -44
  171. package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +110 -83
  172. package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +7 -3
  173. package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +7 -5
  174. package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +2 -2
  175. package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +437 -0
  176. package/skills/service-itsm-agentic-setup-itsm-agentforce-permset-assign/SKILL.md +1 -1
  177. package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
  178. package/skills/dx-lifecycle-center/assets/widgets/connect-connected/connect-connected.json +0 -65
  179. package/skills/dx-lifecycle-center/assets/widgets/connect-connected/schema.json +0 -32
  180. package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/connect-sign-in.json +0 -57
  181. package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/schema.json +0 -21
  182. package/skills/dx-lifecycle-center/scripts/card-policy.jq +0 -71
  183. package/skills/dx-lifecycle-center/scripts/fill-widget.jq +0 -29
  184. package/skills/dx-lifecycle-center/scripts/widget.sh +0 -28
  185. package/skills/experience-content-media-image-generate/SKILL.md +0 -83
  186. package/skills/experience-content-media-image-generate/scripts/download-image.sh +0 -84
  187. package/skills/experience-content-media-stock-image-search/SKILL.md +0 -193
  188. package/skills/experience-content-media-stock-image-search/scripts/download-stock-image.py +0 -102
@@ -0,0 +1,252 @@
1
+ # Convert 1GP to 2GP Operations Reference
2
+
3
+ Operations grouped by purpose. Use these as the building blocks for the workflow in SKILL.md.
4
+
5
+ ## Summary
6
+
7
+ | Operation | Purpose | Status | Call | Depends on |
8
+ |-----------|---------|--------|------|------------|
9
+ | `collect-conversion-details` | validate | implemented | — | — |
10
+ | `validate-salesforce-cli` | validate | implemented | — | `collect-conversion-details` |
11
+ | `validate-devhub-alias` | validate | implemented | — | `validate-salesforce-cli` |
12
+ | `validate-packaging-org-alias` | validate | implemented | — | `validate-devhub-alias` |
13
+ | `validate-source-package` | validate | implemented | — | `validate-packaging-org-alias` |
14
+ | `collect-conversion-options` | validate | implemented | — | `validate-source-package` |
15
+ | `validate-project-and-namespace` | validate | implemented | — | `collect-conversion-options` |
16
+ | `collect-conversion-settings` | validate | implemented | — | `validate-project-and-namespace` |
17
+ | `confirm-conversion-preflight` | validate | implemented | — | `collect-conversion-settings` |
18
+ | `convert-package` | write | implemented | — | `confirm-conversion-preflight` |
19
+ | `verify-conversion-request` | verify | implemented | — | `convert-package` |
20
+ | `verify-code-coverage` | verify | implemented | — | `verify-conversion-request` |
21
+ | `promote-converted-version` | write | implemented | — | `verify-code-coverage` |
22
+ | `verify-promoted-version` | verify | implemented | — | `promote-converted-version` |
23
+ | `prepare-support-escalation` | validate | implemented | — | `convert-package` |
24
+
25
+ ## Dependency graph
26
+
27
+ ```mermaid
28
+ graph TD
29
+ collect_conversion_details["collect-conversion-details (validate)"]
30
+ validate_salesforce_cli["validate-salesforce-cli (validate)"]
31
+ validate_devhub_alias["validate-devhub-alias (validate)"]
32
+ validate_packaging_org_alias["validate-packaging-org-alias (validate)"]
33
+ validate_source_package["validate-source-package (validate)"]
34
+ collect_conversion_options["collect-conversion-options (validate)"]
35
+ validate_project_and_namespace["validate-project-and-namespace (validate)"]
36
+ collect_conversion_settings["collect-conversion-settings (validate)"]
37
+ confirm_conversion_preflight["confirm-conversion-preflight (validate)"]
38
+ convert_package["convert-package (write)"]
39
+ verify_conversion_request["verify-conversion-request (verify)"]
40
+ verify_code_coverage["verify-code-coverage (verify)"]
41
+ promote_converted_version["promote-converted-version (write)"]
42
+ verify_promoted_version["verify-promoted-version (verify)"]
43
+ prepare_support_escalation["prepare-support-escalation (validate)"]
44
+ collect_conversion_details --> validate_salesforce_cli
45
+ validate_salesforce_cli --> validate_devhub_alias
46
+ validate_devhub_alias --> validate_packaging_org_alias
47
+ validate_packaging_org_alias --> validate_source_package
48
+ validate_source_package --> collect_conversion_options
49
+ collect_conversion_options --> validate_project_and_namespace
50
+ validate_project_and_namespace --> collect_conversion_settings
51
+ collect_conversion_settings --> confirm_conversion_preflight
52
+ confirm_conversion_preflight --> convert_package
53
+ convert_package --> verify_conversion_request
54
+ verify_conversion_request --> verify_code_coverage
55
+ verify_code_coverage --> promote_converted_version
56
+ promote_converted_version --> verify_promoted_version
57
+ convert_package --> prepare_support_escalation
58
+ ```
59
+
60
+ ## Write operations
61
+
62
+ ### `convert-package`
63
+
64
+ Run the official Salesforce CLI package conversion from the validated DX project. Always include `--code-coverage`, the validated 033 package ID and Dev Hub alias, one installation-protection flag, and a wait duration. Salesforce CLI selects the latest released major.minor version unless the customer supplies `--patch-version major.minor.patch`. Add `--definition-file` and `--seed-metadata` only when required. Unpackaged metadata for packaged Apex tests has no flag; Salesforce CLI applies the confirmed `unpackagedMetadata` setting from sfdx-project.json.
65
+
66
+ **Status:** `implemented`
67
+
68
+ **Inputs:**
69
+
70
+ - `package_id` *(`String`)* — Validated managed 1GP package ID beginning with 033.
71
+ - `devhub_alias` *(`String`)* — Validated Dev Hub alias.
72
+ - `wait_minutes` *(`Integer`)* — Minutes for Salesforce CLI to wait before returning an in-progress request.
73
+ - `patch_version` *(`String`)* — Optional released major.minor.patch value.
74
+ - `definition_file` *(`String`)* — Source - output of collect-conversion-settings; the displayed project definition-file path only when the customer confirmed it is required.
75
+ - `seed_metadata_directory` *(`String`)* — Source - output of collect-conversion-settings; populated only after the customer confirmed seed metadata exists and supplied a validated directory path.
76
+
77
+ **Depends on:** `confirm-conversion-preflight`
78
+
79
+ **Rollback:** none. Package conversion does not alter the original 1GP package, but the association between this package and the selected Dev Hub cannot be transferred or changed. Do not attempt automatic cleanup or reassignment.
80
+
81
+ ### `promote-converted-version`
82
+
83
+ After code coverage passes and the customer explicitly says yes to the promotion question, promote the verified converted subscriber package version from beta to released. Never promote a different 04t and never infer consent from the original conversion request.
84
+
85
+ **Status:** `implemented`
86
+
87
+ **Inputs:**
88
+
89
+ - `subscriber_package_version_id` *(`String`)* — Source - output of verify-code-coverage; converted 04t whose coverage check passed.
90
+ - `devhub_alias` *(`String`)* — Validated Dev Hub alias used for conversion.
91
+ - `promotion_confirmed` *(`Boolean`)* — True only when the customer explicitly answered yes to the promotion question after conversion succeeded.
92
+
93
+ **Depends on:** `verify-code-coverage`
94
+
95
+ **Rollback:** none. Package-version promotion to Released is irreversible.
96
+
97
+ ## Verify operations
98
+
99
+ ### `verify-conversion-request`
100
+
101
+ Retrieve the Package2VersionCreateRequest identified by the 08c conversion request ID. Confirm it reached Success and returned the Package2, Package2Version, SubscriberPackageVersion, and converted-from identifiers. If the request is still pending, repeat this same report command approximately every two minutes, give the customer a status update after each report, and never start another conversion.
102
+
103
+ **Status:** `implemented`
104
+
105
+ **Inputs:**
106
+
107
+ - `request_id` *(`String`)* — Package version creation request ID beginning with 08c.
108
+ - `devhub_alias` *(`String`)* — Validated Dev Hub alias.
109
+
110
+ **Depends on:** `convert-package`
111
+
112
+ ### `verify-code-coverage`
113
+
114
+ Retrieve the converted subscriber package version and verify that code coverage was calculated and passed. HasPassedCodeCoverageCheck must be true for the converted beta version to qualify for promotion. Also confirm ConvertedFromVersionId is populated, proving this is a converted version.
115
+
116
+ **Status:** `implemented`
117
+
118
+ **Inputs:**
119
+
120
+ - `subscriber_package_version_id` *(`String`)* — Converted subscriber package version ID beginning with 04t.
121
+ - `devhub_alias` *(`String`)* — Validated Dev Hub alias.
122
+
123
+ **Depends on:** `verify-conversion-request`
124
+
125
+ ### `verify-promoted-version`
126
+
127
+ Re-read the promoted subscriber package version and require IsReleased to be true. Then present the complete package details again with the release state shown as Released.
128
+
129
+ **Status:** `implemented`
130
+
131
+ **Inputs:**
132
+
133
+ - `subscriber_package_version_id` *(`String`)* — Source - output of promote-converted-version.
134
+ - `devhub_alias` *(`String`)* — Validated Dev Hub alias used for promotion.
135
+
136
+ **Depends on:** `promote-converted-version`
137
+
138
+ ## Other operations
139
+
140
+ ### `collect-conversion-details`
141
+
142
+ Collect only the non-secret identity and package inputs needed for initial discovery: Dev Hub alias, 1GP packaging-org alias, 033 package ID, and package namespace. Defer every configurable conversion option until released versions have been queried.
143
+
144
+ **Status:** `implemented`
145
+
146
+ ### `validate-salesforce-cli`
147
+
148
+ Silently confirm Salesforce CLI is installed before using it. Do not make the customer confirm the CLI version or narrate this check unless the CLI is missing or a command fails because an update is required.
149
+
150
+ **Status:** `implemented`
151
+
152
+ **Depends on:** `collect-conversion-details`
153
+
154
+ ### `validate-devhub-alias`
155
+
156
+ Resolve the customer-provided Dev Hub alias and display its authenticated org identity. Confirm the alias points to the intended PBO/Dev Hub before package conversion permanently associates the converted package with it.
157
+
158
+ **Status:** `implemented`
159
+
160
+ **Inputs:**
161
+
162
+ - `devhub_alias` *(`String`)* — Dev Hub alias supplied during collect-conversion-details.
163
+
164
+ **Depends on:** `validate-salesforce-cli`
165
+
166
+ ### `validate-packaging-org-alias`
167
+
168
+ Resolve the customer-provided 1GP packaging-org alias and display its authenticated org identity. Confirm it is the source packaging org for the 033 package.
169
+
170
+ **Status:** `implemented`
171
+
172
+ **Inputs:**
173
+
174
+ - `packaging_org_alias` *(`String`)* — Packaging-org alias supplied during collect-conversion-details.
175
+
176
+ **Depends on:** `validate-devhub-alias`
177
+
178
+ ### `validate-source-package`
179
+
180
+ Query the 1GP packaging org through Salesforce CLI Tooling API to confirm the 033 package has at least one managed-released version and to identify the released versions available for conversion. For the default path, Salesforce CLI converts the latest released major.minor. For patch mode, confirm the requested major.minor.patch appears in this result before conversion.
181
+
182
+ **Status:** `implemented`
183
+
184
+ **Inputs:**
185
+
186
+ - `packaging_org_alias` *(`String`)* — Source - output of validate-packaging-org-alias.
187
+ - `package_id` *(`String`)* — Source - output of collect-conversion-details.
188
+
189
+ **Depends on:** `validate-packaging-org-alias`
190
+
191
+ ### `collect-conversion-options`
192
+
193
+ After released versions are known, collect the source-version choice and DX-project choice. Ask each option separately. Every option question displays its own default, and `default` applies only to that one question. Never silently reuse a DX project.
194
+
195
+ **Status:** `implemented`
196
+
197
+ **Inputs:**
198
+
199
+ - `released_versions` *(`List<Object>`)* — Source - output of validate-source-package.
200
+
201
+ **Depends on:** `validate-source-package`
202
+
203
+ ### `validate-project-and-namespace`
204
+
205
+ Confirm the working directory is a Salesforce DX project and its sfdx-project.json contains the 1GP namespace. When the customer selected a new project, create it with the official Salesforce CLI project-generation command, then update sfdx-project.json before conversion. The namespace must already be linked to the selected Dev Hub.
206
+
207
+ **Status:** `implemented`
208
+
209
+ **Inputs:**
210
+
211
+ - `project_directory` *(`String`)* — Source - output of collect-conversion-options.
212
+ - `namespace` *(`String`)* — Source - output of collect-conversion-details; namespace registered by the 1GP package and linked to the Dev Hub.
213
+
214
+ **Depends on:** `collect-conversion-options`
215
+
216
+ ### `collect-conversion-settings`
217
+
218
+ After the DX project and its default definition file are available, ask each remaining conversion-setting question separately. Show the actual definition-file path instead of asking the customer to discover it. Ask for a seed-metadata directory only when the customer confirms that seed metadata exists, and for an unpackaged-metadata directory only when the customer confirms that packaged Apex tests need it.
219
+
220
+ **Status:** `implemented`
221
+
222
+ **Inputs:**
223
+
224
+ - `definition_file_path` *(`String`)* — Source - output of validate-project-and-namespace; exact path to the project's default config/project-scratch-def.json.
225
+
226
+ **Depends on:** `validate-project-and-namespace`
227
+
228
+ ### `confirm-conversion-preflight`
229
+
230
+ Present the final preflight summary and require explicit confirmation of the permanent Dev Hub association, mandatory code coverage, installation-protection choice, and optional conversion inputs.
231
+
232
+ **Status:** `implemented`
233
+
234
+ **Inputs:**
235
+
236
+ - `devhub_org_id` *(`String`)* — Validated Dev Hub org ID.
237
+ - `packaging_org_id` *(`String`)* — Validated 1GP packaging-org ID.
238
+ - `package_id` *(`String`)* — Managed 1GP package ID beginning with 033.
239
+
240
+ **Depends on:** `collect-conversion-settings`
241
+
242
+ ### `prepare-support-escalation`
243
+
244
+ For an unresolved, internal, or repeatedly failing conversion, assemble a sanitized Partner Support bundle without using internal Salesforce systems. Include complete CLI output and stack traces, exact commands with secrets removed, error identifiers, package and request IDs, both org IDs and instance URLs, CLI version, timestamp with time zone, reproduction steps, relevant project configuration, business impact, and customer expectations.
245
+
246
+ **Status:** `implemented`
247
+
248
+ **Inputs:**
249
+
250
+ - `conversion_errors` *(`List<String>`)* — Sanitized errors from the conversion or request report.
251
+
252
+ **Depends on:** `convert-package`
@@ -6,7 +6,7 @@ metadata:
6
6
  - dx-org-devhub-configure
7
7
  - dx-pkg-post-install-configure
8
8
  - experience-ui-bundle-2gp-deploy
9
- version: "1.0"
9
+ version: "1.1"
10
10
  accessCheck: "UserPermissions.CreatePackaging"
11
11
  cliTools:
12
12
  - tool:
@@ -83,7 +83,6 @@ Only the 1GP DE (packaging) org is required for the finalize dispatch + wire-ver
83
83
 
84
84
  After every write operation, confirm the effect by re-reading state:
85
85
 
86
- - After `finalize-move-to-2gp`: call `verify-finalize-by-user-confirmation`
87
- - After `verify-finalize-by-user-confirmation`: call `verify-finalize-on-packaging-org`
86
+ - After `finalize-move-to-2gp`: call `verify-finalize-on-packaging-org` directly (normal 266+ path) OR `verify-finalize-by-user-confirmation` then `verify-finalize-on-packaging-org` (pre-266 manual fallback only).
88
87
 
89
88
  Read [Operations reference](references/api-operations.md) before executing this workflow. It contains the original operation definitions, dependencies, inputs, and verification instructions.
@@ -13,7 +13,7 @@ Operations grouped by purpose. Use these as the building blocks for the workflow
13
13
  | `confirm-affirmations` | validate | implemented | — | `check-already-done` |
14
14
  | `finalize-move-to-2gp` | write | implemented | `finalizeMoveTo2gp` | `confirm-affirmations` |
15
15
  | `verify-finalize-by-user-confirmation` | verify | implemented | — | `finalize-move-to-2gp` |
16
- | `verify-finalize-on-packaging-org` | verify | implemented | `queryPackageConversion` | `verify-finalize-by-user-confirmation` |
16
+ | `verify-finalize-on-packaging-org` | verify | implemented | `queryPackageConversion` | `finalize-move-to-2gp` |
17
17
 
18
18
  ### Dependency graph
19
19
 
@@ -33,7 +33,7 @@ graph TD
33
33
  check_already_done --> confirm_affirmations
34
34
  confirm_affirmations --> finalize_move_to_2gp
35
35
  finalize_move_to_2gp --> verify_finalize_by_user_confirmation
36
- verify_finalize_by_user_confirmation --> verify_finalize_on_packaging_org
36
+ finalize_move_to_2gp --> verify_finalize_on_packaging_org
37
37
  ```
38
38
 
39
39
  ### Read operations
@@ -47,7 +47,10 @@ Look up the 2GP Package2 record on DevHub for the 1GP package the user wants to
47
47
  **Inputs:**
48
48
 
49
49
  - `devhub_alias` *(`String`)* — Source: user_input. The `sf` alias of the user's DevHub org. Captured at skill start (see agent_guidance "AT START").
50
- - `subscriber_package_id` *(`String`)* — The 1GP package's SubscriberPackageId (033... key prefix). User provides this directly, or agent obtains it via a MetadataPackage name lookup on the 1GP DE org (see agent_guidance).
50
+ - `subscriber_package_id` *(`String`)* — The 1GP package's SubscriberPackageId (033... key prefix). User provides this directly, or agent obtains it via a MetadataPackage name lookup on the 1GP DE org (see agent_guidance). Validate it against the `validation` pattern before substituting it into any query or URL path; if it does not match, stop and ask the user for the correct Id.
51
+ - **Validation:** Must match `/^033[A-Za-z0-9]{12}([A-Za-z0-9]{3})?$/` (a 15- or 18-character 033-prefix Id). Reject any value containing single quotes, backslashes, or whitespace.
52
+
53
+ **Name lookup:** if the user only knows the package name, query `SELECT Id, Name, NamespacePrefix FROM MetadataPackage` on the 1GP DE org and filter the results client-side by Name. Do not interpolate user input into SOQL literals.
51
54
 
52
55
  ### Write operations
53
56
 
@@ -86,18 +89,18 @@ Human cross-check for the pre-266 manual fallback path ONLY: ask the user what t
86
89
 
87
90
  #### `verify-finalize-on-packaging-org`
88
91
 
89
- The canonical wire-verification: re-query the PackageConversion record on the 1GP DE org to confirm EndDate is populated (non-null). EndDate is set by the package-conversion finalization service as part of finalize and is the reliable post-finalize wire signal. Uses the read-only PackageConversion Tooling exposure shipped in 264 (1GP DE org auth is already a hard precondition for this skill, so no auth-state branching needed). This is the canonical wire-verify and supplements (rather than replaces) the optional user attestation in verify-finalize-by-user-confirmation. Note: the finalize step's own 266 response also returns finalizedAt + conversionId directly, so this step is a durable cross-check rather than the sole success signal.
92
+ The canonical wire-verification: re-query the PackageConversion record on the 1GP DE org to confirm EndDate is populated (non-null). EndDate is set by the package-conversion finalization service as part of finalize and is the reliable post-finalize wire signal. Uses the read-only PackageConversion Tooling exposure shipped in 264 (1GP DE org auth is already a hard precondition for this skill, so no auth-state branching needed). This is the canonical wire-verify and runs directly after finalize-move-to-2gp; on the pre-266 manual fallback it also follows the user attestation in verify-finalize-by-user-confirmation. Note: the finalize step's own 266 response also returns finalizedAt + conversionId directly, so this step is a durable cross-check rather than the sole success signal.
90
93
 
91
94
  **Call:** `queryPackageConversion` — status: `implemented`
92
95
 
93
96
  **Inputs:**
94
97
 
95
- - `packaging_org_alias` *(`String`)* — Source - output of verify-finalize-by-user-confirmation (transitively from check-eligibility-1gp-released.packaging_org_alias).
98
+ - `packaging_org_alias` *(`String`)* — Source - output of finalize-move-to-2gp (transitively from check-eligibility-1gp-released.packaging_org_alias).
96
99
  - **Source:** output of `check-eligibility-1gp-released`
97
- - `subscriber_package_id` *(`String`)* — Source - output of verify-finalize-by-user-confirmation (transitively from discover-package-on-devhub.subscriber_package_id).
100
+ - `subscriber_package_id` *(`String`)* — Source - output of finalize-move-to-2gp (transitively from discover-package-on-devhub.subscriber_package_id).
98
101
  - **Source:** output of `discover-package-on-devhub`
99
102
 
100
- **Depends on:** `verify-finalize-by-user-confirmation`
103
+ **Depends on:** `finalize-move-to-2gp`
101
104
 
102
105
  **Notes:** 264 shipped the read-only public Tooling exposure of PackageConversion (available when packaging is enabled for the org). The fields queried here — Id, EndDate, FinalizedVersionId (FK → SubscriberPackageVersion), FinalizedVersionNumber, and the WHERE key ConvertedFromPackageId (FK → SubscriberPackage) — are all exposed read-only. EndDate non-null means finalize completed. Move-to-2GP does NOT auto-create native Package2Version records on DevHub (native creation is a separate user-driven step), so there is no Package2Version-based wire-verify; EndDate is the reliable signal.
103
106
 
@@ -0,0 +1,47 @@
1
+ # dx-packaging-push-upgrade-configure
2
+
3
+ A Salesforce agent skill that plans, schedules, and monitors **package push upgrades** from a
4
+ Dev Hub — end-to-end.
5
+
6
+ Push upgrades change a package **in the customer's org without their action**, so the skill's
7
+ default posture is **generate → preview → confirm → run**: it never calls `schedule` or `abort`
8
+ until the user has seen the batch plan and org list and said go.
9
+
10
+ ## What it does
11
+
12
+ - **Resolves** the package (`033`) and a valid target version (`04t`) against the Dev Hub.
13
+ - **Finds subscribers** via `PackageSubscriber`, then applies eligibility filters (installed only,
14
+ below target, production vs sandbox, org status, subscriber restrictions).
15
+ - **Batches a schedule** per best practices — pilot in sandboxes, stagger production, off-peak by
16
+ time zone, avoid risky windows — and generates the per-batch org CSVs.
17
+ - **Runs** the `sf package push-upgrade schedule` commands after explicit confirmation.
18
+ - **Monitors** results via CLI and `PackagePushRequest` / `PackagePushJob` / `PackagePushError`,
19
+ and verifies the upgrade actually landed.
20
+
21
+ Supports 2GP managed, unlocked, and 1GP→2GP push migrations (`--migrate-to-2gp`).
22
+
23
+ ## Inputs
24
+
25
+ The skill reads these from the request; provide whichever you have:
26
+
27
+ - `033…` → package ID
28
+ - `04t…` → target package version ID
29
+ - `0DV…` → existing push request ID (jumps straight to monitoring)
30
+ - a Dev Hub alias/username → the package-owning org (defaults to the configured `target-dev-hub`)
31
+
32
+ ### Prerequisites
33
+
34
+ - Salesforce CLI (`sf`) authenticated to the Dev Hub / package-owning org.
35
+ - 2GP managed packages must have passed AppExchange security review and have push upgrades enabled
36
+ via a Partner Support case. Unlocked packages have them enabled by default.
37
+ - The *Create and Update Second-Generation Packages* user permission on the Dev Hub.
38
+
39
+ ## Layout
40
+
41
+ | File | Purpose |
42
+ | --- | --- |
43
+ | `SKILL.md` | The skill definition and the phase-by-phase workflow. |
44
+ | `references/cli-reference.md` | Verified `sf package push-upgrade` subcommands and flags. |
45
+ | `references/objects.md` | Field reference for the push-upgrade objects. |
46
+ | `references/soql-recipes.md` | Ready-to-run subscriber and monitoring queries. |
47
+ | `references/best-practices.md` | Timing, testing, staggering, and communication guidance. |