@retailcrm/embed-ui-v1-endpoint 0.9.23-alpha.2 → 0.9.23
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/bin/embed-ui-v1-endpoint.mjs +44 -3
- package/docs/targets/customer-card-communications-after.yml +15 -0
- package/docs/targets/customer-card-inwork-after.yml +15 -0
- package/docs/targets/customer-card-inwork-before.yml +15 -0
- package/docs/targets/customer-card-phone.yml +17 -0
- package/docs/targets/order-card-comment-manager-before.yml +19 -0
- package/docs/targets/order-card-common-after.yml +19 -0
- package/docs/targets/order-card-common-before.yml +19 -0
- package/docs/targets/order-card-customer-after.yml +19 -0
- package/docs/targets/order-card-customer-before.yml +19 -0
- package/docs/targets/order-card-customer-email.yml +19 -0
- package/docs/targets/order-card-customer-phone.yml +19 -0
- package/docs/targets/order-card-delivery-address.yml +19 -0
- package/docs/targets/order-card-delivery-after.yml +19 -0
- package/docs/targets/order-card-delivery-before.yml +19 -0
- package/docs/targets/order-card-dimensions-before.yml +19 -0
- package/docs/targets/order-card-list-after.yml +19 -0
- package/docs/targets/order-card-list-before.yml +19 -0
- package/docs/targets/order-card-payment-before.yml +19 -0
- package/docs/targets/order-card-store-before.yml +19 -0
- package/docs/targets/order-mg-delivery-after.yml +19 -0
- package/docs/targets/order-mg-delivery-before.yml +19 -0
- package/docs/targets/order-mg-list-after.yml +19 -0
- package/docs/targets/order-mg-list-before.yml +19 -0
- package/docs/targets/order-mg-payment-after.yml +19 -0
- package/docs/targets/order-mg-payment-before.yml +19 -0
- package/package.json +6 -6
|
@@ -7,7 +7,10 @@ import process from 'node:process'
|
|
|
7
7
|
const PACKAGE_NAME = '@retailcrm/embed-ui-v1-endpoint'
|
|
8
8
|
const DEFAULT_NEWLINE = '\n'
|
|
9
9
|
const AGENTS_SECTION_HEADER = '## @retailcrm/embed-ui-v1-endpoint'
|
|
10
|
-
const
|
|
10
|
+
const AGENTS_SECTION_START = '<!-- embed-ui-agents:@retailcrm/embed-ui-v1-endpoint:start -->'
|
|
11
|
+
const AGENTS_SECTION_END = '<!-- embed-ui-agents:@retailcrm/embed-ui-v1-endpoint:end -->'
|
|
12
|
+
const README_MCP_SECTION_HEADER = '## MCP For AI Assistants: @retailcrm/embed-ui-v1-endpoint'
|
|
13
|
+
const LEGACY_README_MCP_SECTION_HEADER = '## MCP For AI Assistants'
|
|
11
14
|
const README_MCP_MARKER = 'embed-ui-v1-endpoint://targets'
|
|
12
15
|
const MCP_SERVER_NAME = 'retailcrm-embed-ui-v1-endpoint'
|
|
13
16
|
const MCP_BIN_NAME = process.platform === 'win32' ? 'embed-ui-v1-endpoint-mcp.cmd' : 'embed-ui-v1-endpoint-mcp'
|
|
@@ -140,7 +143,8 @@ const parseArgs = (argv) => {
|
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
const createAgentsSection = () => {
|
|
143
|
-
return `${
|
|
146
|
+
return `${AGENTS_SECTION_START}
|
|
147
|
+
${AGENTS_SECTION_HEADER}
|
|
144
148
|
|
|
145
149
|
When working with \`${PACKAGE_NAME}\` in this project:
|
|
146
150
|
|
|
@@ -164,6 +168,7 @@ Suggested MCP stdio server configuration:
|
|
|
164
168
|
"command": "${CLAUDE_PROJECT_MCP_BIN_PATH}"
|
|
165
169
|
}
|
|
166
170
|
\`\`\`
|
|
171
|
+
${AGENTS_SECTION_END}
|
|
167
172
|
`
|
|
168
173
|
}
|
|
169
174
|
|
|
@@ -258,7 +263,26 @@ const createAgentsTemplate = () => {
|
|
|
258
263
|
${createAgentsSection()}` + DEFAULT_NEWLINE
|
|
259
264
|
}
|
|
260
265
|
|
|
261
|
-
const
|
|
266
|
+
const findMarkedSectionRange = (content) => {
|
|
267
|
+
const start = content.indexOf(AGENTS_SECTION_START)
|
|
268
|
+
const end = content.indexOf(AGENTS_SECTION_END, start + AGENTS_SECTION_START.length)
|
|
269
|
+
|
|
270
|
+
if (start === -1 && end === -1) {
|
|
271
|
+
return null
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (start === -1 || end === -1) {
|
|
275
|
+
throw new Error(`AGENTS.md contains an incomplete ${PACKAGE_NAME} managed section marker pair`)
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
return {
|
|
279
|
+
start,
|
|
280
|
+
end: end + AGENTS_SECTION_END.length,
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
const hasPackageSection = (content) =>
|
|
285
|
+
content.includes(AGENTS_SECTION_START) || content.includes(AGENTS_SECTION_HEADER)
|
|
262
286
|
|
|
263
287
|
const appendSection = (content, section) => {
|
|
264
288
|
const trimmed = content.replace(/\s+$/u, '')
|
|
@@ -271,6 +295,13 @@ const appendSection = (content, section) => {
|
|
|
271
295
|
}
|
|
272
296
|
|
|
273
297
|
const replaceSection = (content, section) => {
|
|
298
|
+
const markedRange = findMarkedSectionRange(content)
|
|
299
|
+
|
|
300
|
+
if (markedRange) {
|
|
301
|
+
return `${content.slice(0, markedRange.start)}${section.trimEnd()}${content.slice(markedRange.end)}`
|
|
302
|
+
.replace(/\s+$/u, '') + DEFAULT_NEWLINE
|
|
303
|
+
}
|
|
304
|
+
|
|
274
305
|
const escapedHeader = AGENTS_SECTION_HEADER.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
|
275
306
|
const sectionPattern = new RegExp(`${escapedHeader}[\\s\\S]*?(?=\\n##\\s|$)`, 'u')
|
|
276
307
|
|
|
@@ -288,6 +319,16 @@ const replaceReadmeMcpSection = (content, section) => {
|
|
|
288
319
|
const sectionPattern = new RegExp(`${escapedHeader}[\\s\\S]*?(?=\\n##\\s|$)`, 'u')
|
|
289
320
|
|
|
290
321
|
if (!sectionPattern.test(content)) {
|
|
322
|
+
const escapedLegacyHeader = LEGACY_README_MCP_SECTION_HEADER.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
|
323
|
+
const escapedMarker = README_MCP_MARKER.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
|
324
|
+
const legacySectionPattern = new RegExp(`(^|\\n)${escapedLegacyHeader}\\n[\\s\\S]*?${escapedMarker}[\\s\\S]*?(?=\\n##\\s|$)`, 'u')
|
|
325
|
+
|
|
326
|
+
if (legacySectionPattern.test(content)) {
|
|
327
|
+
return content
|
|
328
|
+
.replace(legacySectionPattern, (match, prefix) => `${prefix}${section.trimEnd()}`)
|
|
329
|
+
.replace(/\s+$/u, '') + DEFAULT_NEWLINE
|
|
330
|
+
}
|
|
331
|
+
|
|
291
332
|
return appendSection(content, section)
|
|
292
333
|
}
|
|
293
334
|
|
|
@@ -33,6 +33,18 @@ target_config:
|
|
|
33
33
|
- "customer"
|
|
34
34
|
action_scopes: []
|
|
35
35
|
|
|
36
|
+
context_resources:
|
|
37
|
+
- id: "customer/card"
|
|
38
|
+
uri: "embed-ui-v1-contexts://contexts/customer%2Fcard"
|
|
39
|
+
- id: "user/current"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
41
|
+
- id: "settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
43
|
+
custom_context_resources:
|
|
44
|
+
- id: "customer"
|
|
45
|
+
uri: "embed-ui-v1-contexts://custom-contexts/customer"
|
|
46
|
+
action_resources: []
|
|
47
|
+
|
|
36
48
|
use_when:
|
|
37
49
|
- "Place a widget exactly at customer/card:communications.after."
|
|
38
50
|
- "The widget belongs to the customer card and should appear at this location: Right below the short summary, in the communication section."
|
|
@@ -45,4 +57,7 @@ avoid_when:
|
|
|
45
57
|
ai_notes:
|
|
46
58
|
- "Use the target id as the runner registration key."
|
|
47
59
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
60
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
61
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
62
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
48
63
|
- "Do not duplicate target context lists in generated widget code."
|
|
@@ -33,6 +33,18 @@ target_config:
|
|
|
33
33
|
- "customer"
|
|
34
34
|
action_scopes: []
|
|
35
35
|
|
|
36
|
+
context_resources:
|
|
37
|
+
- id: "customer/card"
|
|
38
|
+
uri: "embed-ui-v1-contexts://contexts/customer%2Fcard"
|
|
39
|
+
- id: "user/current"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
41
|
+
- id: "settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
43
|
+
custom_context_resources:
|
|
44
|
+
- id: "customer"
|
|
45
|
+
uri: "embed-ui-v1-contexts://custom-contexts/customer"
|
|
46
|
+
action_resources: []
|
|
47
|
+
|
|
36
48
|
use_when:
|
|
37
49
|
- "Place a widget exactly at customer/card:inWork.after."
|
|
38
50
|
- "The widget belongs to the customer card and should appear at this location: At the end of the \"In progress\" block in the client card."
|
|
@@ -45,4 +57,7 @@ avoid_when:
|
|
|
45
57
|
ai_notes:
|
|
46
58
|
- "Use the target id as the runner registration key."
|
|
47
59
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
60
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
61
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
62
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
48
63
|
- "Do not duplicate target context lists in generated widget code."
|
|
@@ -33,6 +33,18 @@ target_config:
|
|
|
33
33
|
- "customer"
|
|
34
34
|
action_scopes: []
|
|
35
35
|
|
|
36
|
+
context_resources:
|
|
37
|
+
- id: "customer/card"
|
|
38
|
+
uri: "embed-ui-v1-contexts://contexts/customer%2Fcard"
|
|
39
|
+
- id: "user/current"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
41
|
+
- id: "settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
43
|
+
custom_context_resources:
|
|
44
|
+
- id: "customer"
|
|
45
|
+
uri: "embed-ui-v1-contexts://custom-contexts/customer"
|
|
46
|
+
action_resources: []
|
|
47
|
+
|
|
36
48
|
use_when:
|
|
37
49
|
- "Place a widget exactly at customer/card:inWork.before."
|
|
38
50
|
- "The widget belongs to the customer card and should appear at this location: At the beginning of the \"In Progress\" block in the client card."
|
|
@@ -45,4 +57,7 @@ avoid_when:
|
|
|
45
57
|
ai_notes:
|
|
46
58
|
- "Use the target id as the runner registration key."
|
|
47
59
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
60
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
61
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
62
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
48
63
|
- "Do not duplicate target context lists in generated widget code."
|
|
@@ -34,6 +34,20 @@ target_config:
|
|
|
34
34
|
- "customer"
|
|
35
35
|
action_scopes: []
|
|
36
36
|
|
|
37
|
+
context_resources:
|
|
38
|
+
- id: "customer/card"
|
|
39
|
+
uri: "embed-ui-v1-contexts://contexts/customer%2Fcard"
|
|
40
|
+
- id: "customer/card:phone"
|
|
41
|
+
uri: "embed-ui-v1-contexts://contexts/customer%2Fcard%3Aphone"
|
|
42
|
+
- id: "user/current"
|
|
43
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
44
|
+
- id: "settings"
|
|
45
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
46
|
+
custom_context_resources:
|
|
47
|
+
- id: "customer"
|
|
48
|
+
uri: "embed-ui-v1-contexts://custom-contexts/customer"
|
|
49
|
+
action_resources: []
|
|
50
|
+
|
|
37
51
|
use_when:
|
|
38
52
|
- "Place a widget exactly at customer/card:phone."
|
|
39
53
|
- "The widget belongs to the customer card and should appear at this location: Right after the phone number in the list."
|
|
@@ -46,4 +60,7 @@ avoid_when:
|
|
|
46
60
|
ai_notes:
|
|
47
61
|
- "Use the target id as the runner registration key."
|
|
48
62
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
63
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
64
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
65
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
49
66
|
- "Do not duplicate target context lists in generated widget code."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:comment.manager.before."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section start, right above the input field."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:common.after."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section end, right under the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:common.before."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section start, right above the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:customer.after."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section end, right under the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:customer.before."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section start, right above the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:customer.email."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Right after the input field."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:customer.phone."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Right after the input field."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:delivery.address."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Right under the input field."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:delivery.after."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section end, right under the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:delivery.before."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section start, right above the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:dimensions.before."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section start, right above the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:list.after."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section start, right under the list."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:list.before."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section start, right above the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:payment.before."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section start, right above the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/card:store.before."
|
|
40
56
|
- "The widget belongs to the full order form and should appear at this location: Section start, right above the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/mg:delivery.after."
|
|
40
56
|
- "The widget belongs to the chat order form and should appear at this location: Section end, right under the input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/mg:delivery.before."
|
|
40
56
|
- "The widget belongs to the chat order form and should appear at this location: Section start, right above the input field."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/mg:list.after."
|
|
40
56
|
- "The widget belongs to the chat order form and should appear at this location: Section end, right after the list of order items and before the discount, privilege selection, etc. input fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/mg:list.before."
|
|
40
56
|
- "The widget belongs to the chat order form and should appear at this location: Section start, right above the list of order items."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/mg:payment.after."
|
|
40
56
|
- "The widget belongs to the chat order form and should appear at this location: Section end, after the list of payments, controls, and custom fields."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
|
@@ -35,6 +35,22 @@ target_config:
|
|
|
35
35
|
action_scopes:
|
|
36
36
|
- "order/card"
|
|
37
37
|
|
|
38
|
+
context_resources:
|
|
39
|
+
- id: "order/card"
|
|
40
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard"
|
|
41
|
+
- id: "order/card:settings"
|
|
42
|
+
uri: "embed-ui-v1-contexts://contexts/order%2Fcard%3Asettings"
|
|
43
|
+
- id: "user/current"
|
|
44
|
+
uri: "embed-ui-v1-contexts://contexts/user%2Fcurrent"
|
|
45
|
+
- id: "settings"
|
|
46
|
+
uri: "embed-ui-v1-contexts://contexts/settings"
|
|
47
|
+
custom_context_resources:
|
|
48
|
+
- id: "order"
|
|
49
|
+
uri: "embed-ui-v1-contexts://custom-contexts/order"
|
|
50
|
+
action_resources:
|
|
51
|
+
- id: "order/card"
|
|
52
|
+
uri: "embed-ui-v1-contexts://actions/order%2Fcard"
|
|
53
|
+
|
|
38
54
|
use_when:
|
|
39
55
|
- "Place a widget exactly at order/mg:payment.before."
|
|
40
56
|
- "The widget belongs to the chat order form and should appear at this location: Section start, right above the input field."
|
|
@@ -47,5 +63,8 @@ avoid_when:
|
|
|
47
63
|
ai_notes:
|
|
48
64
|
- "Use the target id as the runner registration key."
|
|
49
65
|
- "Use targets[target].contexts as the source of truth for context availability."
|
|
66
|
+
- "Read linked context_resources, action_resources, and custom_context_resources before reasoning about fields, mutations, or custom data."
|
|
67
|
+
- "Do not infer context field shape from the target id, page name, or widget placement."
|
|
68
|
+
- "For mutation scenarios, check the linked action profile before writing fields directly."
|
|
50
69
|
- "Do not duplicate target context lists in generated widget code."
|
|
51
70
|
- "Order card and chat order form targets share the same order form data contract."
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"embed-ui-v1-endpoint-mcp": "bin/embed-ui-v1-endpoint-mcp.mjs"
|
|
6
6
|
},
|
|
7
7
|
"type": "module",
|
|
8
|
-
"version": "0.9.23
|
|
8
|
+
"version": "0.9.23",
|
|
9
9
|
"description": "Endpoint API for integrations in RetailCRM",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"author": "RetailDriverLLC <integration@retailcrm.ru>",
|
|
@@ -100,17 +100,17 @@
|
|
|
100
100
|
"peerDependencies": {
|
|
101
101
|
"@omnicajs/vue-remote": "^0.2.24",
|
|
102
102
|
"@remote-ui/rpc": "^1.4",
|
|
103
|
-
"@retailcrm/embed-ui-v1-contexts": "^0.9.23
|
|
104
|
-
"@retailcrm/embed-ui-v1-types": "^0.9.23
|
|
103
|
+
"@retailcrm/embed-ui-v1-contexts": "^0.9.23",
|
|
104
|
+
"@retailcrm/embed-ui-v1-types": "^0.9.23",
|
|
105
105
|
"pinia": "^2.2",
|
|
106
106
|
"vue": "^3.5"
|
|
107
107
|
},
|
|
108
108
|
"dependencies": {
|
|
109
109
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
110
110
|
"@remote-ui/rpc": "^1.4.7",
|
|
111
|
-
"@retailcrm/embed-ui-v1-components": "^0.9.23
|
|
112
|
-
"@retailcrm/embed-ui-v1-contexts": "^0.9.23
|
|
113
|
-
"@retailcrm/embed-ui-v1-types": "^0.9.23
|
|
111
|
+
"@retailcrm/embed-ui-v1-components": "^0.9.23",
|
|
112
|
+
"@retailcrm/embed-ui-v1-contexts": "^0.9.23",
|
|
113
|
+
"@retailcrm/embed-ui-v1-types": "^0.9.23"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@retailcrm/image-preview": "^1.0.2",
|