@salesforce/afv-skills 1.65.1 → 1.67.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/package.json +2 -4
- package/skills/agentforce-offline-experimentation-run/SKILL.md +29 -43
- package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +3 -245
- package/skills/commerce-react-storefront-create/SKILL.md +350 -0
- package/skills/consumer-goods-promotion-bo-api-deploy/SKILL.md +2 -2
- package/skills/consumer-goods-promotion-bo-api-deploy/references/generate-and-wire.md +28 -16
- package/skills/consumer-goods-promotion-bo-api-deploy/references/smoke-and-verify.md +18 -1
- package/skills/dx-devops-work-item-manage/SKILL.md +34 -17
- package/skills/dx-devops-work-item-manage/examples/common-workflows.md +49 -0
- package/skills/dx-devops-work-item-manage/references/commit-api.md +116 -0
- package/skills/education-cloud-domain-configure/SKILL.md +21 -23
- package/skills/education-cloud-domain-configure/references/dependent-features.md +9 -0
- package/skills/education-cloud-domain-configure/references/domain-features.md +15 -0
- package/skills/education-cloud-domain-configure/references/gotchas-extended.md +8 -0
- package/skills/education-cloud-domain-configure/references/setup-widgets.md +123 -0
- package/skills/experience-lwc-widget-assess/SKILL.md +79 -0
- package/skills/experience-lwc-widget-migrate/SKILL.md +50 -0
- package/skills/experience-search-coordinate/SKILL.md +2 -2
- package/skills/experience-search-coordinate/references/media-route.md +30 -4
- package/skills/experience-ui-bundle-features-generate/SKILL.md +1 -1
- package/skills/experience-ui-bundle-mfa-configure/SKILL.md +1 -1
- package/skills/platform-metadata-deploy/README.md +1 -1
- package/skills/platform-metadata-deploy/SKILL.md +114 -15
- package/skills/platform-metadata-deploy/references/agent-deployment-guide.md +3 -4
- package/skills/platform-metadata-deploy/references/orchestration.md +2 -3
- package/skills/platform-role-hierarchy-apply/SKILL.md +177 -0
- package/skills/platform-value-set-generate/SKILL.md +19 -19
- package/skills/platform-widget-generate/SKILL.md +59 -68
- package/skills/platform-widget-generate/examples/formulas.json +19 -2
- package/skills/platform-widget-generate/examples/localized-labels.json +57 -0
- package/skills/platform-widget-generate/references/widget-actions.md +29 -0
- package/skills/platform-widget-generate/references/widget-bundle-validation.md +15 -0
- package/skills/platform-widget-generate/references/widget-formulas.md +24 -7
- package/skills/platform-widget-generate/references/widget-gotchas.md +10 -0
- package/skills/platform-widget-generate/references/widget-labels.md +78 -0
- package/skills/platform-widget-generate/references/widget-styling.md +12 -0
- package/skills/sales-call-scoring-configure/SKILL.md +17 -10
- package/skills/sales-call-scoring-configure/scripts/enable-call-scoring.sh +55 -33
- package/skills/service-agentforce-contact-center-coordinate/SKILL.md +1 -1
- package/skills/service-agentforce-contact-center-coordinate/references/number_management_api.md +11 -1
- package/skills/service-agentforce-contact-center-coordinate/scripts/fetch-numbers.sh +12 -6
- package/skills/service-agentforce-contact-center-coordinate/scripts/lib.sh +16 -0
- package/skills/service-agentforce-contact-center-coordinate/scripts/procure-number.sh +2 -1
- package/skills/service-concierge-portal-generate/references/portal-deploy-runbook.md +24 -11
- package/skills/service-digital-engagement-channel-configure/SKILL.md +29 -16
- package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +13 -2
- package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +143 -0
- package/skills/service-digital-engagement-deployment-configure/SKILL.md +65 -79
- package/skills/service-digital-engagement-deployment-configure/assets/esd_web_update_template.xml +83 -8
- package/skills/service-digital-engagement-deployment-configure/examples/esd_web_prechat_fields.xml +74 -0
- package/skills/service-digital-engagement-deployment-configure/references/connect_api_creation.md +26 -7
- package/skills/service-digital-engagement-deployment-configure/references/deployment_settings.md +13 -78
- package/skills/service-digital-engagement-deployment-configure/references/onboarding_contract.md +145 -0
- package/skills/service-digital-engagement-deployment-configure/references/prechat_forms.md +245 -0
- package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +166 -112
- package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +61 -37
- package/skills/service-itsm-agentic-setup-incident-management/references/audit-tracking.md +42 -0
- package/skills/service-itsm-agentic-setup-incident-management/references/broadcast-communications.md +23 -0
- package/skills/service-itsm-agentic-setup-incident-management/references/email-to-incident.md +23 -0
- package/skills/service-itsm-agentic-setup-incident-management/references/incident-dashboards.md +25 -0
- package/skills/service-itsm-agentic-setup-incident-management/references/incident-persona-psg.md +30 -145
- package/skills/service-itsm-agentic-setup-incident-management/references/incident-preferences.md +32 -137
- package/skills/service-itsm-agentic-setup-incident-management/references/major-incident-management.md +32 -155
- package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +45 -0
- package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +32 -0
- package/skills/service-itsm-agentic-setup-incident-management/references/service-mgmt-privilege.md +30 -140
- package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +110 -0
- package/skills/service-itsm-agentic-setup-incident-sla-configure/SKILL.md +34 -25
- package/skills/service-itsm-agentic-setup-incident-sla-configure/examples/milestone-patterns.md +1 -1
- package/skills/service-itsm-agentic-setup-incident-sla-configure/references/mcp-invocation.md +90 -86
- package/skills/service-itsm-agentic-setup-incident-sla-configure/references/workflow.md +63 -38
|
@@ -37,7 +37,7 @@ For authoritative Metadata API type, field, and enum details beyond this skill,
|
|
|
37
37
|
| Root element | `<GlobalValueSet>` | `<StandardValueSet>` |
|
|
38
38
|
| Name source | filename (dev name) | `<fullName>` = fixed catalog name |
|
|
39
39
|
| Value element | `<customValue>` | `<standardValue>` |
|
|
40
|
-
| Can add NEW values? | Yes |
|
|
40
|
+
| Can add NEW values? | Yes | Yes — copy the attribute pattern of an existing value |
|
|
41
41
|
| Can create a new NAME? | Yes | No — only the fixed catalog |
|
|
42
42
|
| `*` wildcard in package.xml | Supported | Not supported |
|
|
43
43
|
|
|
@@ -50,7 +50,7 @@ For authoritative Metadata API type, field, and enum details beyond this skill,
|
|
|
50
50
|
This document defines the mandatory constraints for generating value-set metadata XML. The agent must verify these constraints before outputting XML to prevent Metadata API deployment errors.
|
|
51
51
|
|
|
52
52
|
- **GlobalValueSet** — a reusable, named set of picklist values defined once and referenced by any number of picklist/multi-select fields. Use when the same value list is shared across multiple fields.
|
|
53
|
-
- **StandardValueSet** — the value list behind a Salesforce-defined standard picklist (Industry, Lead Source, etc.). You can only
|
|
53
|
+
- **StandardValueSet** — the value list behind a Salesforce-defined standard picklist (Industry, Lead Source, etc.). You can only customize the fixed catalog of named sets, so you cannot invent a new set name, but you can modify existing values and add new ones.
|
|
54
54
|
|
|
55
55
|
---
|
|
56
56
|
|
|
@@ -142,16 +142,16 @@ In API 57.0+ orgs the platform *stores/displays* a GlobalValueSet's developer na
|
|
|
142
142
|
|
|
143
143
|
#### HARD CONSTRAINTS — read before generating
|
|
144
144
|
|
|
145
|
-
1. **
|
|
145
|
+
1. **A StandardValueSet name must come from the fixed catalog of named standard value sets.** You **cannot** create a new StandardValueSet name. You **can** add a new value to an existing standard set, but copy the full attribute pattern of an existing value in that set (for example `closed`, `forecastCategory`, `probability` and `won` on `OpportunityStage`), because omitted attributes are filled with platform defaults that can be wrong.
|
|
146
146
|
2. The root carries a `<fullName>` whose value is the **fixed enum name** (e.g. `Industry`), NOT a `masterLabel`. The filename must match this name.
|
|
147
147
|
3. Values are `<standardValue>` entries — **not** `<customValue>`.
|
|
148
|
-
4. **
|
|
148
|
+
4. **A StandardValueSet write REPLACES the whole set. Send every existing value and change only what the request names.** Read the current set first (grounding MCP or a retrieve), then include a `<standardValue>` block for every existing value, with the requested activations, deactivations, relabels or additions applied. A value you leave out is deactivated on the field: a deploy that named only `Web` in `CaseOrigin` left `Email`, `Phone` and `Agentforce` inactive. Never send only the named values, even when the set is large (for example all 30+ `Industry` entries). Request wording such as "keep *only* X active" means set X active and every other value inactive, so state that intent in the result. Verify by reading the set back and diffing it against the read taken before the write.
|
|
149
149
|
|
|
150
150
|
#### `<standardValue>` — Modifiable Sub-Elements
|
|
151
151
|
|
|
152
152
|
| Sub-element | Modifiable? | Notes |
|
|
153
153
|
|-------------|-------------|-------|
|
|
154
|
-
| `<fullName>` | Identifies the value
|
|
154
|
+
| `<fullName>` | Identifies the value | An existing value, or a new one you are adding |
|
|
155
155
|
| `<label>` | Yes | Relabel the value's UI text |
|
|
156
156
|
| `<isActive>` | Yes | `false` deactivates; omit or `true` keeps active |
|
|
157
157
|
| `<default>` | Yes | At most one value `true` |
|
|
@@ -165,7 +165,7 @@ In API 57.0+ orgs the platform *stores/displays* a GlobalValueSet's developer na
|
|
|
165
165
|
> `https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/standardvalueset_names.htm`.
|
|
166
166
|
> If the name is not in that appendix, it is **not** a StandardValueSet — it is either a GlobalValueSet or an inline CustomField picklist.
|
|
167
167
|
|
|
168
|
-
#### CORRECT — StandardValueSet (
|
|
168
|
+
#### CORRECT — StandardValueSet (the complete set, with the requested change applied)
|
|
169
169
|
|
|
170
170
|
```xml
|
|
171
171
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
@@ -183,6 +183,7 @@ In API 57.0+ orgs the platform *stores/displays* a GlobalValueSet's developer na
|
|
|
183
183
|
<label>Agriculture</label>
|
|
184
184
|
<isActive>false</isActive> <!-- deactivated, but kept in the set -->
|
|
185
185
|
</standardValue>
|
|
186
|
+
<!-- ... every other existing standardValue entry repeated unchanged ... -->
|
|
186
187
|
</StandardValueSet>
|
|
187
188
|
```
|
|
188
189
|
|
|
@@ -192,23 +193,23 @@ In API 57.0+ orgs the platform *stores/displays* a GlobalValueSet's developer na
|
|
|
192
193
|
<StandardValueSet xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
193
194
|
<masterLabel>Industry</masterLabel> <!-- WRONG: StandardValueSet uses <fullName>, not masterLabel -->
|
|
194
195
|
<customValue> <!-- WRONG: uses <standardValue>, not customValue -->
|
|
195
|
-
<fullName>Renewable Energy</fullName>
|
|
196
|
+
<fullName>Renewable Energy</fullName>
|
|
196
197
|
<label>Renewable Energy</label>
|
|
197
198
|
</customValue>
|
|
198
199
|
</StandardValueSet>
|
|
199
200
|
```
|
|
200
201
|
|
|
201
|
-
**Errors:** unknown element `masterLabel`/`customValue
|
|
202
|
+
**Errors:** unknown element `masterLabel`/`customValue` for a StandardValueSet.
|
|
202
203
|
|
|
203
204
|
---
|
|
204
205
|
|
|
205
206
|
### 4. Never Invent Values — Verify, Don't Hallucinate CRITICAL
|
|
206
207
|
|
|
207
|
-
When customizing a **StandardValueSet** (or extending a shared GlobalValueSet), **
|
|
208
|
+
When customizing a **StandardValueSet** (or extending a shared GlobalValueSet), **never invent the existing value list of a standard picklist**. Existing values must be repeated exactly as the org has them, and a new value is added only when the request names it.
|
|
208
209
|
|
|
209
|
-
For well-known standard picklists you already know the canonical values (e.g. `Industry`, `LeadSource`, `OpportunityStage`). When you are unsure
|
|
210
|
+
For well-known standard picklists you already know the canonical values (e.g. `Industry`, `LeadSource`, `OpportunityStage`). When you are unsure which values exist, you can confirm them against the live org — but treat lookup as a *confirmation* step, not a required first call:
|
|
210
211
|
|
|
211
|
-
- **Grounding MCP** (if available) exposes `search_metadata` and `query_metadata` to look up live metadata. Use them
|
|
212
|
+
- **Grounding MCP** (if available) exposes `search_metadata` and `query_metadata` to look up live metadata. Use them to read the complete current set, because a write must repeat every existing value with its exact `<fullName>`/`<label>`.
|
|
212
213
|
- **CLI fallback** — query the Tooling API directly:
|
|
213
214
|
|
|
214
215
|
```bash
|
|
@@ -216,7 +217,7 @@ sf data query --use-tooling-api \
|
|
|
216
217
|
--query "SELECT MasterLabel, Metadata FROM StandardValueSet WHERE MasterLabel = '<name>'"
|
|
217
218
|
```
|
|
218
219
|
|
|
219
|
-
> **The point is the output, not the lookup:**
|
|
220
|
+
> **The point is the output, not the lookup:** the written set must contain every existing value unchanged, plus only the changes the request names. Do not invent values the request did not ask for. (This pairs with rule 4 in §3: a write replaces the whole set.)
|
|
220
221
|
|
|
221
222
|
---
|
|
222
223
|
|
|
@@ -247,17 +248,16 @@ The agent must **reject** and explain — not silently "fix" by inventing metada
|
|
|
247
248
|
|
|
248
249
|
| Violation | Action / Message |
|
|
249
250
|
|-----------|------------------|
|
|
250
|
-
| Add a NEW value to a **StandardValueSet** | Reject. "Standard value sets cannot accept new values. Create a **GlobalValueSet** (reusable) or an inline picklist on a **CustomField** instead." |
|
|
251
251
|
| Create a NEW StandardValueSet name | Reject. The name must be in the standard catalog appendix. Otherwise it is a GlobalValueSet. |
|
|
252
252
|
| **Value set developer name** with spaces / invalid chars | Convert spaces to underscores; must start with a letter; alphanumeric + underscore only. `Priority Levels` → `Priority_Levels`. (This applies to the value SET name and the field API name — NOT to individual `<customValue><fullName>` values, which keep spaces as written.) |
|
|
253
253
|
| Duplicate value `fullName` within one set | Reject. Each `fullName` must be unique within the value set. |
|
|
254
254
|
| More than one `<default>true</default>` | Reject. At most one default value per set. |
|
|
255
255
|
|
|
256
|
-
####
|
|
256
|
+
#### Adding a value to a standard set
|
|
257
257
|
|
|
258
258
|
> "Add a `Cryptocurrency` value to the Industry picklist."
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
This is allowed. Read the complete current `Industry` set, then write it back with every existing value unchanged plus one new `<standardValue>` for `Cryptocurrency`. Copy the attribute pattern of an existing value in the set, because omitted attributes get platform defaults that can be wrong.
|
|
261
261
|
|
|
262
262
|
---
|
|
263
263
|
|
|
@@ -275,7 +275,7 @@ A value set must deploy **before** any CustomField that references it.
|
|
|
275
275
|
|
|
276
276
|
| Error / Symptom | Cause | Fix |
|
|
277
277
|
|-----------------|-------|-----|
|
|
278
|
-
|
|
|
278
|
+
| Other values of a standard picklist became inactive after a deploy | The deploy listed only some values, and a write replaces the whole set | Resend the complete set with every existing value (§3 rule 4) |
|
|
279
279
|
| `Required field missing: sorted` | GlobalValueSet missing `<sorted>` | Add `<sorted>true</sorted>` or `<sorted>false</sorted>` |
|
|
280
280
|
| Unknown element `masterLabel` (StandardValueSet) | Used `masterLabel` instead of `fullName` | StandardValueSet root uses `<fullName>` = catalog name |
|
|
281
281
|
| Unknown element `customValue` (StandardValueSet) | Used `customValue` instead of `standardValue` | Use `<standardValue>` in standard sets |
|
|
@@ -301,12 +301,12 @@ Before generating value-set XML, verify:
|
|
|
301
301
|
- [ ] When referencing from a field, is `<valueSetName>` the **bare** developer name with NO `__gvs` suffix?
|
|
302
302
|
|
|
303
303
|
### StandardValueSet Checks CRITICAL
|
|
304
|
-
- [ ]
|
|
304
|
+
- [ ] Did you read the complete current set (grounding `search_metadata`/`query_metadata` / Tooling API / retrieve) so every existing value is repeated exactly?
|
|
305
305
|
- [ ] Is the root `<StandardValueSet>` with the correct namespace?
|
|
306
306
|
- [ ] Does the root use `<fullName>` set to the fixed catalog name (NOT `masterLabel`)?
|
|
307
307
|
- [ ] Are values `<standardValue>` entries (NOT `customValue`)?
|
|
308
|
-
- [ ]
|
|
309
|
-
- [ ] Did you avoid
|
|
308
|
+
- [ ] Does the written set contain every existing value, with only the changes the request names applied?
|
|
309
|
+
- [ ] Did you avoid a new set name, and for any new value did you copy the attribute pattern of an existing value?
|
|
310
310
|
|
|
311
311
|
### Shared Checks
|
|
312
312
|
- [ ] At most one value has `<default>true</default>`?
|
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
name: platform-widget-generate
|
|
3
3
|
description: "Use this skill to author a complete HXL WidgetBundle (UEM body + schema.json + -meta.xml). TRIGGER when: user asks for a widget, mosaic, fragment, card, or rich UI surface for any subject, domain, feature, or entity noun; the prompt names only an entity or data shape without invoking Lightning Types, CLTs, or Apex-backed types. DO NOT TRIGGER when: the prompt explicitly says 'Lightning Type', 'CLT', 'Custom Lightning Type', 'Apex-backed type', or references '@apexClassType/...' (use platform-lightning-type-widget-coordinate); authoring a custom-LWC renderer for a Custom Lightning Type (use platform-custom-lightning-type-generate); or editing only an LWC component."
|
|
4
4
|
metadata:
|
|
5
|
-
version: "1.
|
|
5
|
+
version: "1.5"
|
|
6
6
|
domains: ["Platform", "Agentforce"]
|
|
7
7
|
minApiVersion: "68.0"
|
|
8
|
+
cliTools:
|
|
9
|
+
- tool: ["sf"]
|
|
10
|
+
semver: ">=2.0.0"
|
|
8
11
|
relatedSkills:
|
|
9
12
|
- "platform-apex-generate"
|
|
10
13
|
- "platform-custom-lightning-type-generate"
|
|
11
14
|
- "platform-lightning-type-widget-coordinate"
|
|
12
|
-
mcpTools:
|
|
13
|
-
metadata-experts:
|
|
14
|
-
tools: ["execute_metadata_action"]
|
|
15
|
-
semver: ">=1.0.0"
|
|
16
15
|
---
|
|
17
16
|
|
|
18
17
|
# Generating a Widget Bundle
|
|
@@ -67,23 +66,49 @@ The first child of `tile/widget.children` SHOULD be a single `tile/column`. All
|
|
|
67
66
|
|
|
68
67
|
---
|
|
69
68
|
|
|
70
|
-
## Available
|
|
69
|
+
## Available Invocable Actions
|
|
70
|
+
|
|
71
|
+
Both are standard invocable actions on the target org.
|
|
72
|
+
|
|
73
|
+
### Calling Convention
|
|
74
|
+
|
|
75
|
+
Fire each action with whichever mechanism is available: the H360 MCP `dispatch` tool (a `POST` to the endpoint path with the request body) or `sf api request rest`. Use `v{version}` = this skill's `minApiVersion`. Never use `curl`, and never extract the org's access token.
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
sf api request rest '/services/data/v{version}/actions/standard/<actionName>' --method POST --body '<request body>' --target-org <org>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Response Handling
|
|
82
|
+
|
|
83
|
+
Each response is an array with one envelope (`dispatch` nests it under `body`). Check three failure layers, in order:
|
|
84
|
+
|
|
85
|
+
| Layer | Signal | Action |
|
|
86
|
+
|---|---|---|
|
|
87
|
+
| Transport / auth | `dispatch` `status_code` is not 200, or CLI exits non-zero | Surface the error |
|
|
88
|
+
| Action | `[0].isSuccess` is `false`, or `[0].errors` is non-empty | Surface `errors[].message` |
|
|
89
|
+
| Per-entry (`getUiComponentSchemas` only) | any `componentSchemas[].success` is `false`, even when `[0].isSuccess` is `true` | Treat that block as unavailable |
|
|
90
|
+
|
|
91
|
+
On success, read `[0].outputValues`.
|
|
71
92
|
|
|
72
93
|
### discoverUiComponents
|
|
73
94
|
|
|
74
95
|
**Purpose:** Discover the palette of blocks available for composition.
|
|
75
96
|
|
|
76
|
-
**
|
|
97
|
+
**Endpoint:** `POST /services/data/v{version}/actions/standard/discoverUiComponents`
|
|
98
|
+
|
|
99
|
+
**Request body:** `{"inputs":[{"pageType":"FRAGMENT"}]}`
|
|
77
100
|
|
|
78
|
-
**Returns:** list of `{ definition, description, label
|
|
101
|
+
**Returns:** `outputValues.componentDefinitions[]` — list of `{ definition, description, label }`.
|
|
79
102
|
|
|
80
103
|
### getUiComponentSchemas
|
|
81
104
|
|
|
82
|
-
**Purpose:** Fetch
|
|
105
|
+
**Purpose:** Fetch schemas (property types, required vs optional, validation) for selected blocks.
|
|
106
|
+
|
|
107
|
+
**Endpoint:** `POST /services/data/v{version}/actions/standard/getUiComponentSchemas`
|
|
83
108
|
|
|
84
|
-
**
|
|
109
|
+
**Request body:** `{"inputs":[{"pageType":"FRAGMENT","componentDefinitions":["namespace/definition", ...]}]}`
|
|
85
110
|
|
|
86
|
-
**Returns:** `componentSchemas[]` —
|
|
111
|
+
**Returns:** `outputValues.componentSchemas[]` — list of `{ definition, success, schema }` (`schema` is a YAML string). Partial failures are supported.
|
|
87
112
|
|
|
88
113
|
> Never pass `tile/widget` to `getUiComponentSchemas` — it is a fixed wrapper, not a queryable component.
|
|
89
114
|
|
|
@@ -94,6 +119,7 @@ The first child of `tile/widget.children` SHOULD be a single `tile/column`. All
|
|
|
94
119
|
- Bind a block property to runtime data with `{!$attrs.<attrName>}`. `<attrName>` MUST match a property name in `schema.json`.
|
|
95
120
|
- Inside a `forEach`, reference the loop variable instead — e.g. `"text": "{!$item.name}"`. See `references/widget-meta-directives.md`.
|
|
96
121
|
- A binding may be a **formula expression** instead of a bare field reference. See `references/widget-formulas.md` for the full supported-function list, syntax, and gotchas.
|
|
122
|
+
- **Localization:** only when the user asks for localized or translated text (or names Custom Labels / `$Label`), write static, user-visible strings as Custom Label references — `{!$Label.c.<LabelName>}`. See `references/widget-labels.md`.
|
|
97
123
|
|
|
98
124
|
---
|
|
99
125
|
|
|
@@ -106,28 +132,7 @@ The first child of `tile/widget.children` SHOULD be a single `tile/column`. All
|
|
|
106
132
|
| `action/openLink` | synchronous | `url` (string). Optional `target` (`_blank`\|`_self`, default `_blank`) | Opens a URL |
|
|
107
133
|
| `action/sendMessage` | asynchronous | `content` (string) | Posts a new user message back to the agent and earns a fresh turn |
|
|
108
134
|
|
|
109
|
-
|
|
110
|
-
{
|
|
111
|
-
"definition": "tile/button",
|
|
112
|
-
"attributes": {
|
|
113
|
-
"label": "Button Label",
|
|
114
|
-
"variant": "primary",
|
|
115
|
-
"actions": { "click": [ { "definition": "action/sendMessage", "attributes": { "content": "content" } } ] }
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
```json
|
|
121
|
-
{
|
|
122
|
-
"definition": "tile/button",
|
|
123
|
-
"attributes": {
|
|
124
|
-
"label": "Button Label",
|
|
125
|
-
"variant": "primary",
|
|
126
|
-
"actions": { "click": [ { "definition": "action/openLink", "attributes": { "url": "https://www.example.com", "target": "_blank" } } ] }
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
```
|
|
130
|
-
|
|
135
|
+
See `references/widget-actions.md` for complete `sendMessage` and `openLink` button JSON.
|
|
131
136
|
|
|
132
137
|
**A `tile/button` with no `actions` attribute renders disabled** — a button exists to trigger an action, so always attach a `click` action to a button meant to be interactive.
|
|
133
138
|
|
|
@@ -150,16 +155,7 @@ These conventions cover widget *structure* — how blocks are grouped and stacke
|
|
|
150
155
|
|
|
151
156
|
## Styling Best Practices
|
|
152
157
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
- **Style semantically.** Use `variant`, `size`, and other enum-typed attributes (`primary`, `destructive`, `success`, `warning`). Do not pin literal colors or pixel values.
|
|
156
|
-
- **One primary action per visible group.** At most one `tile/button` with `variant: primary`. Use `secondary` or `destructive` for additional actions (see the `tile/button` schema for the full variant enum).
|
|
157
|
-
- **Every `tile/button` needs a `click` action.** See *Actions* above — an action-less button renders disabled.
|
|
158
|
-
- **One `h1` per widget.** Use `h2`/`h3` for sub-section headings, `body` for prose, `caption` for helper text.
|
|
159
|
-
- **Use semantic state variants on state-bearing blocks** (`tile/badge`, `tile/callout`).
|
|
160
|
-
- **Accept schema defaults for `gap`, `size`** unless there is a specific reason to override.
|
|
161
|
-
- **Don't pin `width`** unless a content constraint requires it.
|
|
162
|
-
- **Use the Lucide icon set.** Pass the Lucide name (`"check"`, `"alert-circle"`); other icon libraries are not supported.
|
|
158
|
+
Style semantically (variants, not literal colors or pixels), one primary button per group, one `h1` per widget, Lucide icons only. Read `references/widget-styling.md` before assigning variants, sizes, or icons.
|
|
163
159
|
|
|
164
160
|
---
|
|
165
161
|
|
|
@@ -169,11 +165,11 @@ Widgets express *intent*, not pixels. Each surface provides a default look and f
|
|
|
169
165
|
- If `lightningTypeSchema` was passed by the orchestrator → derive per `references/schema-from-lightning-type.md`.
|
|
170
166
|
- Otherwise → infer the list directly from the user prompt (pasted JSON payload, enumerated field list, or descriptive prose).
|
|
171
167
|
|
|
172
|
-
2. **Discover blocks (REQUIRED — do NOT skip).** Call the `discoverUiComponents`
|
|
168
|
+
2. **Discover blocks (REQUIRED — do NOT skip).** Call the `discoverUiComponents` invocable action (see *Available Invocable Actions*) and match widget-spec property types against the returned `label`/`description` values. **If `isSuccess` is `false`, `errors` is non-empty, or `componentDefinitions` is empty, STOP and surface the error verbatim — do not improvise block names from memory, prior runs, or training data.**
|
|
173
169
|
|
|
174
170
|
3. **Select blocks.** Choose one block per widget-spec property, plus structural primitives from *Layout Best Practices*.
|
|
175
171
|
|
|
176
|
-
4. **Get block schemas (REQUIRED — do NOT skip).** Call the `getUiComponentSchemas`
|
|
172
|
+
4. **Get block schemas (REQUIRED — do NOT skip).** Call the `getUiComponentSchemas` invocable action for the selected blocks. Review property metadata, including each property's `default` — omit any attribute whose value would equal it (see `references/widget-styling.md`). **If `isSuccess` is `false`, `componentSchemas` is empty, or any entry has `success: false`, do not use that block — re-select a different one from step 2's results; if none works, STOP and surface the error. Never improvise from existing widgets in the project.**
|
|
177
173
|
|
|
178
174
|
5. **Build the UEM tree (example reads REQUIRED — do NOT skip).** First, identify which patterns match the widget spec and read each matching example file from this skill's own `examples/` directory (`<skill-root>/examples/`):
|
|
179
175
|
|
|
@@ -182,12 +178,15 @@ Widgets express *intent*, not pixels. Each surface provides a default look and f
|
|
|
182
178
|
| Single object (no iteration) | `<skill-root>/examples/single-object.json` |
|
|
183
179
|
| Any list iteration (root-level array, nested list, or list embedded in a single-object widget) | `<skill-root>/examples/list-with-foreach.json` |
|
|
184
180
|
| Conditional rendering (`if` bound to a boolean or formula) | `<skill-root>/examples/conditional.json` |
|
|
185
|
-
| Computed values, text/number transforms, or `if` driven by a formula (not a bare boolean field) | `<skill-root>/examples/formulas.json` |
|
|
181
|
+
| Computed values, text/number transforms, locale-formatted numbers/currency/dates, or `if` driven by a formula (not a bare boolean field) | `<skill-root>/examples/formulas.json` |
|
|
182
|
+
| The user asked for localized / translated text (Custom Labels) | `<skill-root>/examples/localized-labels.json` |
|
|
186
183
|
|
|
187
184
|
A spec may match multiple patterns (e.g. a list of items where some items render conditionally reads both `list-with-foreach.json` and `conditional.json`). **Read every matching example, and only those — do not skip the read because the pattern feels familiar.**
|
|
188
185
|
|
|
189
186
|
**Before writing any formula**, read `references/widget-formulas.md` in full — it is the authoritative list of supported operators and functions; do not improvise a function name or operator that isn't documented there.
|
|
190
187
|
|
|
188
|
+
**Before writing any `$Label` reference**, read `references/widget-labels.md` in full.
|
|
189
|
+
|
|
191
190
|
Then:
|
|
192
191
|
- Map each widget-spec property to a block property; preserve spec order.
|
|
193
192
|
- **Decide root iteration:** single object → properties directly under root `tile/column`. Collection → wrap repeating block in `forEach`/`forItem`. See `references/widget-meta-directives.md`.
|
|
@@ -236,17 +235,10 @@ Widgets express *intent*, not pixels. Each surface provides a default look and f
|
|
|
236
235
|
|
|
237
236
|
Write all three before proceeding to self-validation.
|
|
238
237
|
|
|
239
|
-
9. **Self-validate.** Before reporting,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
- **`bindings-resolve`** — every `{!$attrs.X}` (or `{!$attrs.<outerField>.<innerField>}` for nested objects) in `<widgetName>.json` resolves to a property under `schema.json` `properties.attributes.properties`, and every `{!$item.X}` resolves to a `forItem` loop variable defined upstream. This applies to `$attrs`/`$item` references **inside formula expressions** too.
|
|
244
|
-
- **`formulas-supported`** — every function name used inside a `{!...}` expression appears in the *Supported functions* list in `references/widget-formulas.md`.
|
|
245
|
-
- **`body-envelope`** — `<widgetName>.json` root has `type: "lightning__agentforceWidget"` and a `contentBody` object whose `widgetBody` carries the UEM tree rooted at `tile/widget`. No node in the tree — root or non-root — carries a `type` key.
|
|
246
|
-
- **`metaxml-wellformed`** — `<widgetName>.uiwidget-meta.xml` parses as well-formed XML.
|
|
247
|
-
- **`metaxml-elements`** — `<widgetName>.uiwidget-meta.xml` has root `<UiWidgetBundle>` and contains `<masterLabel>` (non-empty), `<description>` (non-empty), and `<widgetType>JSON</widgetType>`.
|
|
248
|
-
- **`files-present`** — all three files exist at the resolved `<pkgDir>/uiWidgets/<widgetName>/` path.
|
|
249
|
-
- **`button-actions-present`** — every `tile/button` in `<widgetName>.json` has an `actions.click` action node whose `definition` is `action/openLink` or `action/sendMessage`.
|
|
238
|
+
9. **Self-validate.** Before reporting, run the checks and report each result individually (`pass` or `fail (<reason>)`). Do **not** summarize as a single "all passed" line — list every check so a reviewer can spot a silent skip.
|
|
239
|
+
Run every check in `references/widget-bundle-validation.md`.
|
|
240
|
+
|
|
241
|
+
10. **Report labels.** If the widget uses `$Label`, end the response with the label report described in `references/widget-labels.md`.
|
|
250
242
|
|
|
251
243
|
---
|
|
252
244
|
|
|
@@ -256,7 +248,7 @@ Widgets express *intent*, not pixels. Each surface provides a default look and f
|
|
|
256
248
|
|---|---|
|
|
257
249
|
| Block definitions follow `{namespace}/{blockName}` and must match `discoverUiComponents` output | Runtime resolves blocks by exact definition string |
|
|
258
250
|
| Never pass `tile/widget` to `getUiComponentSchemas` | It is a fixed wrapper, not a queryable component |
|
|
259
|
-
|
|
|
251
|
+
| Read `references/` and `examples/` files only at the step that names them | Upfront reads waste context and precede the discovery result that determines which files are needed |
|
|
260
252
|
| Every `{!$attrs.X}` in the body resolves to a property in the widget `schema.json` | No invented fields |
|
|
261
253
|
| Every `tile/button` carries an `actions.click` entry using `action/openLink` or `action/sendMessage` only | These are the only two supported tile action definitions; an action-less button renders disabled |
|
|
262
254
|
| No `$(…)`, backticks, `<(…)`, brace expansion `{a,b,c}`, or `eval`/`exec` in any Bash tool call | Vibes' safe-shell filter forces manual approval on these patterns even in Bypass mode. Emit separate commands (`mkdir -p a && mkdir -p b`) or print each value with its own command and reason about the output — do not capture into a shell variable |
|
|
@@ -265,14 +257,7 @@ Widgets express *intent*, not pixels. Each surface provides a default look and f
|
|
|
265
257
|
|
|
266
258
|
## Gotchas
|
|
267
259
|
|
|
268
|
-
|
|
269
|
-
|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
270
|
-
| `getUiComponentSchemas` returns a partial-failure entry | Pick a different block from `discoverUiComponents`; do not silently continue without a schema |
|
|
271
|
-
| Body references `{!$attrs.foo}` but `foo` is not under `schema.json` `properties.attributes.properties` | Add `foo` to `schema.json` `properties.attributes.properties` OR remove the body reference |
|
|
272
|
-
| Output written outside `<pkgDir>/uiWidgets/<widgetName>/` | `<pkgDir>` = `<packageDirectories[].path>/main/default` (see `references/widget-bundle-layout.md`). Dropping the `main/default/` segment is the common cause of widgets landing at `force-app/uiWidgets/...` instead of `force-app/main/default/uiWidgets/...` |
|
|
273
|
-
| `if` bound directly to a raw string or number relies on truthiness and is unreliable | Bind to a `lightning__booleanType` property, or use a formula comparison that evaluates to boolean |
|
|
274
|
-
| `tile/button` renders but does nothing when clicked | No `actions.click` entry was set — an action-less button renders disabled by design. Add one (see *Actions* above) |
|
|
275
|
-
| Using `action/sendMessage` for pure navigation, or `action/openLink` when the agent should respond | `action/openLink` is synchronous and does not consume a turn; `action/sendMessage` is asynchronous and earns a fresh turn. Pick the one matching the intended UX |
|
|
260
|
+
Known failure modes and fixes (partial schemas, unresolved bindings, wrong output path, `if` truthiness, dead buttons, action choice): see `references/widget-gotchas.md`.
|
|
276
261
|
|
|
277
262
|
---
|
|
278
263
|
|
|
@@ -283,8 +268,14 @@ Widgets express *intent*, not pixels. Each surface provides a default look and f
|
|
|
283
268
|
| `references/widget-meta-directives.md` | For `forEach` / `forItem` (iteration) and `if` (conditional rendering), including nested loops |
|
|
284
269
|
| `references/schema-from-lightning-type.md` | When `lightningTypeSchema` is provided; how to derive the widget `schema.json` from an Apex-backed Lightning Type |
|
|
285
270
|
| `references/widget-bundle-layout.md` | Folder layout, `-meta.xml` shape, `<pkgDir>` resolution rules |
|
|
286
|
-
| `references/widget-
|
|
271
|
+
| `references/widget-bundle-validation.md` | Step 9 — the checks to run before reporting |
|
|
272
|
+
| `references/widget-formulas.md` | Supported formula functions and operators, including locale format functions (`FORMATNUMBER`, `FORMATCURRENCY`, `FORMATDATE`, …) |
|
|
273
|
+
| `references/widget-labels.md` | Localization — `$Label` syntax, naming and reuse, allowed attributes, combining with data, creating labels, and the label report |
|
|
274
|
+
| `references/widget-actions.md` | Complete `tile/button` JSON for `action/sendMessage` and `action/openLink` |
|
|
275
|
+
| `references/widget-styling.md` | Variant, size, heading, and icon conventions |
|
|
276
|
+
| `references/widget-gotchas.md` | Known failure modes and their fixes |
|
|
287
277
|
| `examples/single-object.json` | Single-object pattern (root binding via `{!$attrs.X}`, no iteration) |
|
|
288
278
|
| `examples/list-with-foreach.json` | Any list-iteration case — root-level collections, nested lists, and lists embedded inside a single-object widget (e.g. iterating a `List<InnerClass>` inside an outer Apex payload) |
|
|
289
279
|
| `examples/conditional.json` | Conditional pattern (`if` on `meta`, including `if` + `forEach` together) |
|
|
290
|
-
| `examples/formulas.json` | Formula usage — text/arithmetic/date transforms, `IF`/`AND`/`NOT` driving both a `tile/text` and `meta.if` |
|
|
280
|
+
| `examples/formulas.json` | Formula usage — text/arithmetic/date transforms, locale format functions, `IF`/`AND`/`NOT` driving both a `tile/text` and `meta.if` |
|
|
281
|
+
| `examples/localized-labels.json` | Localization — `$Label` in a heading, caption, badge (`IF` choosing between labels), button label, and a label joined with data |
|
|
@@ -138,6 +138,23 @@
|
|
|
138
138
|
|
|
139
139
|
{ "definition": "tile/spacer", "attributes": { "size": "sm" } },
|
|
140
140
|
|
|
141
|
+
{
|
|
142
|
+
"definition": "tile/column",
|
|
143
|
+
"attributes": { "gap": "xs" },
|
|
144
|
+
"children": [
|
|
145
|
+
{ "definition": "tile/text", "attributes": { "text": "9. Locale format functions", "variant": "h3" } },
|
|
146
|
+
{ "definition": "tile/text", "attributes": { "text": "FORMATNUMBER: {!FORMATNUMBER($attrs.price)} | precision 0: {!FORMATNUMBER($attrs.price, 0)}" } },
|
|
147
|
+
{ "definition": "tile/text", "attributes": { "text": "FORMATCURRENCY: {!FORMATCURRENCY($attrs.price)}" } },
|
|
148
|
+
{ "definition": "tile/text", "attributes": { "text": "FORMATPERCENT: {!FORMATPERCENT($attrs.winProbability)} | precision 1: {!FORMATPERCENT($attrs.winProbability, 1)}" } },
|
|
149
|
+
{ "definition": "tile/text", "attributes": { "text": "FORMATDATE: {!FORMATDATE($attrs.departureDate)} | long: {!FORMATDATE($attrs.departureDate, 'long')}" } },
|
|
150
|
+
{ "definition": "tile/text", "attributes": { "text": "FORMATDATETIME: {!FORMATDATETIME($attrs.departureDateTime)} | medium: {!FORMATDATETIME($attrs.departureDateTime, 'medium')}" } },
|
|
151
|
+
{ "definition": "tile/text", "attributes": { "text": "FORMATTIME: {!FORMATTIME($attrs.departureDateTime)} | long: {!FORMATTIME($attrs.departureDateTime, 'long')}" } },
|
|
152
|
+
{ "definition": "tile/text", "attributes": { "text": "{!'Fare with tax: ' & FORMATCURRENCY($attrs.price * (1 + $attrs.taxRate))}", "variant": "h4" } }
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
{ "definition": "tile/spacer", "attributes": { "size": "sm" } },
|
|
157
|
+
|
|
141
158
|
{
|
|
142
159
|
"definition": "tile/column",
|
|
143
160
|
"meta": { "if": "{!AND($attrs.isPriority, $attrs.price > 500)}" },
|
|
@@ -147,7 +164,7 @@
|
|
|
147
164
|
"attributes": { "gap": "sm", "align": "center" },
|
|
148
165
|
"children": [
|
|
149
166
|
{ "definition": "tile/icon", "attributes": { "name": "lightning", "color": "warning" } },
|
|
150
|
-
{ "definition": "tile/text", "attributes": { "text": "
|
|
167
|
+
{ "definition": "tile/text", "attributes": { "text": "10. Formula-driven meta.if: priority fare over $500 — expedited handling" } }
|
|
151
168
|
]
|
|
152
169
|
}
|
|
153
170
|
]
|
|
@@ -160,7 +177,7 @@
|
|
|
160
177
|
"meta": { "forEach": "{!$attrs.flights}", "forItem": "$flight" },
|
|
161
178
|
"attributes": { "gap": "xs" },
|
|
162
179
|
"children": [
|
|
163
|
-
{ "definition": "tile/text", "attributes": { "text": "
|
|
180
|
+
{ "definition": "tile/text", "attributes": { "text": "11. forEach + per-row formula", "variant": "h3" } },
|
|
164
181
|
{
|
|
165
182
|
"definition": "tile/row",
|
|
166
183
|
"attributes": { "justify": "between", "align": "center" },
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "lightning__agentforceWidget",
|
|
3
|
+
"contentBody": {
|
|
4
|
+
"widgetBody": {
|
|
5
|
+
"definition": "tile/widget",
|
|
6
|
+
"children": [
|
|
7
|
+
{
|
|
8
|
+
"definition": "tile/column",
|
|
9
|
+
"attributes": { "gap": "md" },
|
|
10
|
+
"children": [
|
|
11
|
+
{
|
|
12
|
+
"definition": "tile/text",
|
|
13
|
+
"attributes": { "text": "{!$Label.c.OrderStatus_Heading}", "variant": "h1" }
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"definition": "tile/row",
|
|
17
|
+
"attributes": { "gap": "sm", "align": "center" },
|
|
18
|
+
"children": [
|
|
19
|
+
{
|
|
20
|
+
"definition": "tile/text",
|
|
21
|
+
"attributes": { "text": "{!$Label.c.OrderStatus_OrderNumberCaption}", "variant": "caption" }
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"definition": "tile/text",
|
|
25
|
+
"attributes": { "text": "{!$attrs.orderNumber}" }
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"definition": "tile/badge",
|
|
31
|
+
"attributes": {
|
|
32
|
+
"label": "{!IF($attrs.isShipped, $Label.c.OrderStatus_ShippedStatus, $Label.c.OrderStatus_ProcessingStatus)}",
|
|
33
|
+
"variant": "{!IF($attrs.isShipped, 'success', 'info')}"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"definition": "tile/text",
|
|
38
|
+
"attributes": { "text": "{!$Label.c.OrderStatus_ItemsPrefix & ' ' & TEXT($attrs.itemCount)}" }
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"definition": "tile/button",
|
|
42
|
+
"attributes": {
|
|
43
|
+
"label": "{!$Label.c.OrderStatus_TrackButton}",
|
|
44
|
+
"variant": "primary",
|
|
45
|
+
"actions": {
|
|
46
|
+
"click": [
|
|
47
|
+
{ "definition": "action/openLink", "attributes": { "url": "{!$attrs.trackingUrl}" } }
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Widget Actions
|
|
2
|
+
|
|
3
|
+
Complete `tile/button` examples for the two supported action definitions. The action table and the action-less-button rule live in SKILL.md *Actions*.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## `action/sendMessage` and `action/openLink`
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"definition": "tile/button",
|
|
12
|
+
"attributes": {
|
|
13
|
+
"label": "Button Label",
|
|
14
|
+
"variant": "primary",
|
|
15
|
+
"actions": { "click": [ { "definition": "action/sendMessage", "attributes": { "content": "content" } } ] }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"definition": "tile/button",
|
|
23
|
+
"attributes": {
|
|
24
|
+
"label": "Button Label",
|
|
25
|
+
"variant": "primary",
|
|
26
|
+
"actions": { "click": [ { "definition": "action/openLink", "attributes": { "url": "https://www.example.com" } } ] }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Widget Bundle Validation Checks
|
|
2
|
+
|
|
3
|
+
Report each check individually as `pass` or `fail (<reason>)`.
|
|
4
|
+
|
|
5
|
+
- **`schema-parses`** — `<pkgDir>/uiWidgets/<widgetName>/schema.json` parses as JSON.
|
|
6
|
+
- **`schema-root-keys`** — root has `title` (string), `type: "object"`, and `properties.attributes` (object) — where `properties.attributes` carries `lightning:type: "lightning__objectType"` and a nested `properties` map. No `unevaluatedProperties: false`.
|
|
7
|
+
- **`schema-leaf-types`** — every leaf under `properties.attributes.properties` carries a `lightning:type`. Singular nested inner-class fields carry `lightning:type` set to the inner Apex class reference (`@apexClassType/<namespace>__<OuterClass>$<InnerClass>`); the nested shape is not redeclared. `List<InnerClass>` fields carry `lightning:type: "lightning__listType"` with `items.lightning:type` set to the inner Apex class reference (`@apexClassType/<namespace>__<OuterClass>$<InnerClass>`), not a redeclared field map — see `references/schema-from-lightning-type.md`. **When the list has no Apex-backed type** (schema inferred from the prompt), `items.lightning:type: "lightning__objectType"` MUST carry an inline nested `properties` map for every item field the body binds via `{!$item.X}`.
|
|
8
|
+
- **`bindings-resolve`** — every `{!$attrs.X}` (or `{!$attrs.<outerField>.<innerField>}` for nested objects) in `<widgetName>.json` resolves to a property under `schema.json` `properties.attributes.properties`, and every `{!$item.X}` resolves to a `forItem` loop variable defined upstream. This applies to `$attrs`/`$item` references **inside formula expressions** too.
|
|
9
|
+
- **`formulas-supported`** — every function name used inside a `{!...}` expression appears in the *Supported functions* list in `references/widget-formulas.md`.
|
|
10
|
+
- **`body-envelope`** — `<widgetName>.json` root has `type: "lightning__agentforceWidget"` and a `contentBody` object whose `widgetBody` carries the UEM tree rooted at `tile/widget`. No node in the tree — root or non-root — carries a `type` key.
|
|
11
|
+
- **`metaxml-wellformed`** — `<widgetName>.uiwidget-meta.xml` parses as well-formed XML.
|
|
12
|
+
- **`metaxml-elements`** — `<widgetName>.uiwidget-meta.xml` has root `<UiWidgetBundle>` and contains `<masterLabel>` (non-empty), `<description>` (non-empty), and `<widgetType>JSON</widgetType>`.
|
|
13
|
+
- **`files-present`** — all three files exist at the resolved `<pkgDir>/uiWidgets/<widgetName>/` path.
|
|
14
|
+
- **`button-actions-present`** — every `tile/button` in `<widgetName>.json` has an `actions.click` action node whose `definition` is `action/openLink` or `action/sendMessage`.
|
|
15
|
+
- **`labels-valid`** — if the user did not ask for localization, `<widgetName>.json` contains no `$Label` (report `pass (not requested)`). Otherwise every `$Label` follows the rules in `references/widget-labels.md` and appears in the step 10 report.
|