@salesforce/afv-skills 1.67.0 → 1.68.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.
- package/README.md +55 -5
- package/package.json +1 -1
- package/skills/agentforce-offline-experimentation-run/SKILL.md +14 -22
- package/skills/agentforce-offline-experimentation-run/scripts/bt_compare.py +81 -0
- package/skills/agentforce-offline-experimentation-run/scripts/bt_fetch.py +358 -0
- package/skills/agentforce-offline-experimentation-run/scripts/bt_patch_agent.py +110 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/__init__.py +34 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/agentpatch.py +483 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/agentsrc.py +565 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/cache.py +95 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/compare.py +617 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/fetch.py +1012 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/judge.py +148 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +92 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/patch.py +327 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/redact.py +40 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/results.py +288 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/scoring.py +340 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +238 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/splits.py +136 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/stdm.py +98 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/tokens.py +173 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/units.py +199 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/versions.py +194 -0
- package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +366 -378
- package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +14 -4
- package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +472 -796
- package/skills/dx-lifecycle-center/SKILL.md +5 -2
- package/skills/dx-lifecycle-center/assets/widgets/connect-connected/connect-connected.json +65 -0
- package/skills/dx-lifecycle-center/assets/widgets/connect-connected/schema.json +32 -0
- package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/connect-sign-in.json +57 -0
- package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/schema.json +21 -0
- package/skills/dx-lifecycle-center/examples/workflows.md +20 -6
- package/skills/dx-lifecycle-center/references/connect-org.md +21 -2
- package/skills/dx-lifecycle-center/references/deploy.md +2 -2
- package/skills/dx-lifecycle-center/references/list-orgs.md +1 -1
- package/skills/dx-lifecycle-center/scripts/card-policy.jq +71 -0
- package/skills/dx-lifecycle-center/scripts/fill-widget.jq +29 -0
- package/skills/dx-lifecycle-center/scripts/widget.sh +28 -0
- package/skills/dx-org-devhub-configure/SKILL.md +85 -84
- package/skills/dx-org-devhub-configure/examples/status-output.md +25 -2
- package/skills/dx-org-devhub-configure/scripts/devhub.sh +265 -140
- package/skills/dx-org-devhub-configure/scripts/test-devhub.sh +100 -15
- package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +89 -0
- package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +164 -0
- package/skills/dx-scratch-def-configure/SKILL.md +163 -0
- package/skills/dx-scratch-def-configure/examples/confirm-card.md +53 -0
- package/skills/dx-scratch-def-configure/examples/report-recipes.md +100 -0
- package/skills/dx-scratch-def-configure/references/features.json +3270 -0
- package/skills/dx-scratch-def-configure/references/project-scratch-def.schema.json +1841 -0
- package/skills/dx-scratch-def-configure/references/settings-map.json +682 -0
- package/skills/dx-scratch-def-configure/scripts/lib_scratch_def.py +1306 -0
- package/skills/dx-scratch-def-configure/scripts/requirements.txt +3 -0
- package/skills/dx-scratch-def-configure/scripts/scrape_config_values.py +848 -0
- package/skills/education-cloud-domain-configure/SKILL.md +1 -1
- package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -1
- package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +1 -1
- package/skills/experience-design-validate/SKILL.md +1 -1
- package/skills/experience-search-coordinate/SKILL.md +18 -12
- package/skills/experience-search-coordinate/references/content-route.md +79 -1
- package/skills/field-service-data-capture-migrate/SKILL.md +1 -1
- package/skills/platform-apex-generate/SKILL.md +14 -11
- package/skills/platform-apex-test-generate/SKILL.md +2 -1
- package/skills/platform-datamask-run/SKILL.md +52 -71
- package/skills/platform-datamask-run/references/api-surface.md +10 -4
- package/skills/platform-datamask-run/references/policy-authoring.md +56 -7
- package/skills/platform-datamask-run/references/run-and-abort.md +17 -10
- package/skills/platform-datamask-run/scripts/poll-job.sh +15 -25
- package/skills/platform-dataspace-access-configure/SKILL.md +19 -1
- package/skills/platform-metadata-discovery-get/SKILL.md +185 -0
- package/skills/platform-metadata-discovery-get/references/api-map.md +25 -0
- package/skills/platform-metadata-discovery-get/references/h360-routes.md +30 -0
- package/skills/platform-metadata-discovery-get/references/scoped-soql.md +52 -0
- package/skills/platform-metadata-grounding-get/SKILL.md +170 -0
- package/skills/platform-policy-rule-generate/SKILL.md +84 -232
- package/skills/platform-policy-rule-generate/references/condition-model.md +47 -0
- package/skills/platform-policy-rule-generate/references/condition-templates.md +89 -0
- package/skills/platform-policy-rule-generate/references/conjunction-compiler.md +25 -0
- package/skills/platform-policy-rule-generate/references/conjunction-expression.md +22 -0
- package/skills/platform-policy-rule-generate/references/consumer-all.md +9 -0
- package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +91 -0
- package/skills/platform-policy-rule-generate/references/deploy-errors.md +24 -36
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +6 -0
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitions/ExistsJoinRLS_Rule_1.policyRuleDefinition +91 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +6 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitions/FieldReadDeny_Rule_1.policyRuleDefinition +72 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +6 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitions/LastCharactersFieldMasking_Rule_1.policyRuleDefinition +77 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +6 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitions/PrincipalFieldMatchRLS_Rule_1.policyRuleDefinition +77 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +4 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitions/TaggedObjectAccess_Rule_1.policyRuleDefinition +65 -0
- package/skills/platform-policy-rule-generate/references/headless-transport.md +87 -0
- package/skills/platform-policy-rule-generate/references/policy-schema-full.md +17 -10
- package/skills/platform-policy-rule-generate/references/policy-shapes.md +74 -0
- package/skills/platform-policy-rule-generate/references/principal-expression.md +31 -0
- package/skills/platform-policy-rule-generate/references/reference-resolution.md +51 -0
- package/skills/platform-policy-rule-generate/references/resource-expression.md +48 -0
- package/skills/platform-policy-rule-generate/references/runtime-context.md +9 -0
- package/skills/platform-policy-rule-generate/references/templates-access.md +11 -9
- package/skills/platform-policy-rule-generate/references/templates-advanced.md +4 -2
- package/skills/platform-policy-rule-generate/references/templates-record.md +37 -22
- package/skills/platform-policy-rule-generate/references/templates-transform.md +10 -8
- package/skills/platform-policy-rule-generate/references/templates.md +2 -2
- package/skills/platform-policy-rule-generate/references/ui-compatibility.md +35 -17
- package/skills/platform-report-generate/SKILL.md +9 -4
- package/skills/platform-report-generate/references/chart-types.md +26 -2
- package/skills/platform-report-generate/references/column-names.md +43 -0
- package/skills/platform-report-generate/references/errors-and-troubleshooting.md +1 -1
- package/skills/platform-report-generate/references/verification-checklist.md +10 -2
- package/skills/service-digital-engagement-channel-configure/SKILL.md +7 -5
- package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +33 -0
- package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +110 -14
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Example confirm card (Generate)
|
|
2
|
+
|
|
3
|
+
Show this card in chat with the preview JSON. Do not put the JSON in report.md.
|
|
4
|
+
|
|
5
|
+
Intent paraphrase: Developer-edition scratch-def for a B2B Revenue Cloud
|
|
6
|
+
project. Features are what the helper mapped from the user's words — not
|
|
7
|
+
extra catalog tokens.
|
|
8
|
+
|
|
9
|
+
- Edition: Developer
|
|
10
|
+
- Features: CoreCpq
|
|
11
|
+
- Settings enriched:
|
|
12
|
+
- revenueManagementSettings.enableCoreCPQ = true
|
|
13
|
+
- Output path (after confirm): config/project-scratch-def.json
|
|
14
|
+
|
|
15
|
+
**Required in the chat reply (not in report.md):** show the schema-valid
|
|
16
|
+
helper `document` as a fenced JSON block. Example:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"edition": "Developer",
|
|
21
|
+
"features": [
|
|
22
|
+
"CoreCpq"
|
|
23
|
+
],
|
|
24
|
+
"settings": {
|
|
25
|
+
"revenueManagementSettings": {
|
|
26
|
+
"enableCoreCPQ": true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Write file?
|
|
33
|
+
|
|
34
|
+
Write only if they accept this preview unchanged. A first generate that says
|
|
35
|
+
write or skip preview still uses this card. Write + change → preview
|
|
36
|
+
again, do not apply. After they accept: apply, show the **final written JSON**
|
|
37
|
+
in chat.
|
|
38
|
+
|
|
39
|
+
Pass the user's product or cloud words in the features array as-is.
|
|
40
|
+
|
|
41
|
+
## Shape + features variant
|
|
42
|
+
|
|
43
|
+
User supplied sourceOrg (or snapshot id/name).
|
|
44
|
+
|
|
45
|
+
- sourceOrg: 00D000000000001AAA
|
|
46
|
+
- Features: Communities, API
|
|
47
|
+
- Settings: communitiesSettings.enableNetworksEnabled = true
|
|
48
|
+
- Output path (after confirm): config/project-scratch-def.json
|
|
49
|
+
|
|
50
|
+
**Required in chat:** fenced JSON of preview `document` (sourceOrg + features +
|
|
51
|
+
enriched settings).
|
|
52
|
+
|
|
53
|
+
Write file?
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Scratch Def report.md recipes
|
|
2
|
+
|
|
3
|
+
Copy the matching recipe into `report.md`. First line of every report.md:
|
|
4
|
+
|
|
5
|
+
# Scratch Def Report
|
|
6
|
+
|
|
7
|
+
Plain prose — never the backtick character. Spell skill names as plain words.
|
|
8
|
+
|
|
9
|
+
STOP recipes go on disk (Write / write_file). Chat is not a substitute. Name
|
|
10
|
+
the next skill. Never Skill() another skill. Never run `sf`.
|
|
11
|
+
|
|
12
|
+
If they change the draft (including a write request that also edits it), use
|
|
13
|
+
Happy-path draft. This turn's wording is the full draft. Do not require a
|
|
14
|
+
prior file or earlier chat. Do not apply. If they consent that this preview
|
|
15
|
+
is the draft they want written, unchanged — accepting this draft as drafted,
|
|
16
|
+
not a first generate that says write or skip preview — use Happy-path write.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Shape-only stop
|
|
21
|
+
|
|
22
|
+
- Shape-only request with no features to layer. Not writing a scratch-def.
|
|
23
|
+
- Next: dx-org-shape-manage for org shape lifecycle. Pass along any
|
|
24
|
+
source org alias, username, or shape id the user named.
|
|
25
|
+
|
|
26
|
+
## Snapshot-only stop
|
|
27
|
+
|
|
28
|
+
- Next: dx-org-snapshot-manage.
|
|
29
|
+
- Pass along Dev Hub, snapshot name/id, and create/list/get intent.
|
|
30
|
+
|
|
31
|
+
## Trial stop
|
|
32
|
+
|
|
33
|
+
- Next: platform-trial-org-create. Scratch-defs are not trial templates.
|
|
34
|
+
|
|
35
|
+
## Underspecified stop
|
|
36
|
+
|
|
37
|
+
- Need two details before drafting a scratch-def.
|
|
38
|
+
- 1. What are you building or demoing?
|
|
39
|
+
- 2. Which products or clouds should the org include?
|
|
40
|
+
- Stopping here without inventing an edition or feature set.
|
|
41
|
+
|
|
42
|
+
If `config/` is also missing, add the Missing-project question to this same
|
|
43
|
+
report. Do not invent a path.
|
|
44
|
+
|
|
45
|
+
## Other-user / no path stop
|
|
46
|
+
|
|
47
|
+
- Cannot read another user's machine or invent a seed file.
|
|
48
|
+
- Provide a readable workspace path or paste the file contents to continue.
|
|
49
|
+
|
|
50
|
+
## Shape or snapshot plus features, missing id
|
|
51
|
+
|
|
52
|
+
- Ask for a sourceOrg or snapshot id/name. Name dx-org-shape-manage /
|
|
53
|
+
dx-org-snapshot-manage to list. Resume this skill with the id.
|
|
54
|
+
|
|
55
|
+
## Missing project config stop
|
|
56
|
+
|
|
57
|
+
- Current directory has no config folder, so this is not the Salesforce DX
|
|
58
|
+
project where scratch orgs will be created.
|
|
59
|
+
- Not creating a config folder.
|
|
60
|
+
- What is the path to your Salesforce DX project (the directory that already
|
|
61
|
+
contains a config folder)?
|
|
62
|
+
|
|
63
|
+
## Batch generation stop
|
|
64
|
+
|
|
65
|
+
- Batch generation of multiple scratch-def files in one turn is not supported yet.
|
|
66
|
+
- Want me to make the first one?
|
|
67
|
+
|
|
68
|
+
## Happy-path draft (preview)
|
|
69
|
+
|
|
70
|
+
Keep the draft in chat/tool context and pass it to preview on stdin with <<'EOF'.
|
|
71
|
+
|
|
72
|
+
In chat, show the schema-valid preview document (helper result document) as a
|
|
73
|
+
fenced JSON block alongside this report.
|
|
74
|
+
|
|
75
|
+
- Paraphrase the intent.
|
|
76
|
+
- Edition (or sourceOrg / snapshot when layering).
|
|
77
|
+
- Features kept; settings enriched.
|
|
78
|
+
- Output path after confirm: config/project-scratch-def.json (or another
|
|
79
|
+
config/purpose-scratch-def.json).
|
|
80
|
+
Write file?
|
|
81
|
+
|
|
82
|
+
Do not name dx-org-manage. JSON and the card go in chat.
|
|
83
|
+
Do not mention dropped tokens, prior cache date, shipped snapshot JSON, or
|
|
84
|
+
jsonschema in this report unless the helper actually warned this turn. When
|
|
85
|
+
jsonschema is missing, also ask in chat to install it; continue if install
|
|
86
|
+
fails.
|
|
87
|
+
|
|
88
|
+
## Happy-path write (after consent to this preview)
|
|
89
|
+
|
|
90
|
+
In chat, show the final written scratch-def JSON as a fenced block alongside
|
|
91
|
+
this report.
|
|
92
|
+
|
|
93
|
+
- Applied the in-context draft (stdin quoted heredoc) to
|
|
94
|
+
config/project-scratch-def.json (or the purpose-named path used).
|
|
95
|
+
- One-line summary of edition and features.
|
|
96
|
+
- Next: dx-org-manage with that path; dx-org-devhub-configure if Dev Hub is off.
|
|
97
|
+
Do not ask Write file?.
|
|
98
|
+
|
|
99
|
+
Same helper-warnings rule as preview: include them only when the helper
|
|
100
|
+
warned this turn.
|